Closed lukevella closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
app | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 8, 2024 8:22pm |
landing | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 8, 2024 8:22pm |
The pull request introduces a new component, OptimizedAvatarImage
, replacing the existing avatar rendering logic in the login and current user components. It enhances the avatar display by optimizing image loading and layout adjustments. Additionally, the user router is updated to include the image
field in user queries, and the Avatar
component is modified to accept a new size
prop, allowing for flexible avatar dimensions.
File Path | Change Summary |
---|---|
apps/web/src/app/[locale]/auth/login/login-page.tsx |
Replaced UserAvatar with OptimizedAvatarImage , adjusted layout for avatar and button spacing. |
apps/web/src/components/current-user-avatar.tsx |
Removed getAvatarUrl function, simplified avatar rendering using OptimizedAvatarImage . |
apps/web/src/components/optimized-avatar-image.tsx |
Introduced OptimizedAvatarImage component with props for optimized avatar rendering. |
apps/web/src/trpc/routers/user.ts |
Added image field to the user router's query structure for enhanced user data retrieval. |
packages/ui/src/avatar.tsx |
Added optional size prop to Avatar component for flexible dimensions. |
login-page.tsx
.🐰 In a world of avatars bright,
A new image takes flight,
With optimized grace,
It finds its place,
In the login's warm light!
Hooray for the change, let's hop with delight! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
OptimizedAvatarImage
component for improved user avatar rendering.Improvements
Avatar
component with a new optionalsize
property.Bug Fixes