Closed lukevella closed 3 weeks 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 2:45pm |
[!WARNING]
Rate limit exceeded
@lukevella has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 3 minutes and 35 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between 65a07c03d2144f1aca35390514f23ee83d936d19 and 92fb93818e3e7db10417f04c8492937419d4b4ea.
This pull request introduces enhancements to the web application, focusing on AWS S3 integration for avatar management, localization updates, and various component modifications to support new functionalities. New dependencies for the AWS SDK are added, along with updated API routes for avatar management. User preferences are now managed through context-based methods, and several components have been refactored for improved user experience and maintainability.
File | Change Summary |
---|---|
apps/web/package.json |
Added @aws-sdk/client-s3 and @aws-sdk/s3-request-presigner dependencies. |
apps/web/public/locales/en/app.json |
Added new localization keys for user interface messages related to avatar management. |
apps/web/src/app/api/storage/[...key]/route.ts |
Introduced an API route for fetching avatar images from S3, handling responses and errors. |
apps/web/src/components/current-user-avatar.tsx |
Refactored to include a size prop and improved avatar URL retrieval logic. |
apps/web/src/components/settings/language-preference.tsx |
Refactored to use context for updating user preferences, removing session dependency. |
apps/web/src/components/settings/profile-settings.tsx |
Added ChangeAvatarButton and RemoveAvatarButton for avatar management. |
apps/web/src/components/user-dropdown.tsx |
Updated CurrentUserAvatar usage to specify size directly instead of using class names. |
apps/web/src/components/user-provider.tsx |
Introduced mutation for updating user preferences via trpc . |
apps/web/src/contexts/preferences.tsx |
Modified updatePreferences method to handle asynchronous updates. |
apps/web/src/env.ts |
Added optional environment variables for S3 configuration. |
apps/web/src/trpc/routers/user.ts |
Added new mutations for avatar management: getAvatarUploadUrl , updateAvatar , and removeAvatar . |
apps/web/src/utils/s3.ts |
Introduced a utility function to create an S3 client based on environment variables. |
turbo.json |
Added S3-related environment variables for configuration. |
🐇 In the meadow where the code does play,
New avatars hop in a cheerful array.
With S3 clouds and toasts that delight,
User preferences shine ever so bright.
So let’s celebrate with a joyful cheer,
These changes make our app a treasure dear! 🌼
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
Documentation
Chores