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 9, 2024 3:37pm |
The pull request introduces significant changes across multiple files, primarily focusing on user profile management, including the removal of certain image configurations and localization strings, the addition of new components for handling profile pictures, and enhancements to user session management. The changes streamline how user avatars are processed and displayed, improve error handling, and introduce new hooks for feature flag management.
Files | Change Summary |
---|---|
apps/web/next.config.js |
Removed image configuration block; added experimental server components for AWS SDK integration. |
apps/web/public/locales/en/app.json |
Removed localization strings for unavailable features; added strings for upload error messaging. |
apps/web/src/app/[locale]/(admin)/settings/profile/profile-page.tsx |
Updated import path for ProfileSettings component. |
apps/web/src/app/[locale]/(admin)/settings/profile/profile-picture.tsx |
Introduced functionality for managing profile pictures, including upload and removal buttons, with error handling and validation. |
apps/web/src/app/[locale]/(admin)/settings/profile/profile-settings.tsx |
Added ProfileSettings component for managing user profile settings with form validation. |
apps/web/src/app/api/storage/[...key]/route.ts |
Removed Sentry integration for error tracking; replaced with console error logging. |
apps/web/src/components/optimized-avatar-image.tsx |
Simplified avatar image handling by integrating URL generation into the component logic; added loading state. |
apps/web/src/features/avatars.ts |
Introduced useAvatarsEnabled hook to manage avatar feature flag status. |
apps/web/src/trpc/routers/user.ts |
Added MIME type validation for avatar uploads; improved error handling for S3 client availability; updated avatar image key generation logic. |
apps/web/src/utils/auth.ts |
Modified session management to prioritize session data over user data; enhanced dynamic retrieval of user information. |
OptimizedAvatarImage
component for displaying avatars, related to avatar management features.🐰 Hopping through the code, what a delightful sight,
Profile pictures and settings, all coming to light!
With errors now clearer, and features in play,
Our users will smile, come what may!
So here's to the changes, let's give them a cheer,
A fluffy new future is finally here! 🎉
[!TIP]
New features
Walkthrough comment now includes: - Possibly related PRs: A list of potentially related PRs to help you recall past context. - Suggested labels: CodeRabbit can now suggest labels by learning from your past PRs. You can also provide custom labeling instructions in the UI or configuration file. Notes: - Please share any feedback in the [discussion post](https://discordapp.com/channels/1134356397673414807/1282535539299323995) on our Discord. - Possibly related PRs, automatic label suggestions based on past PRs, learnings, and possibly related issues require data opt-in (enabled by default).
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
Bug Fixes
Refactor
Chores