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 | 🔄 Building (Inspect) | Visit Preview | 💬 Add feedback | Aug 31, 2024 8:56am |
landing | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 31, 2024 8:56am |
The changes involve updates to error handling in the NewParticipantForm
component, specifically altering how TRPCClientError
messages are accessed and adding Sentry for error reporting. Additionally, the error message for rate limiting in the participants
router has been modified for clarity. These adjustments aim to improve error management and user communication.
File Path | Change Summary |
---|---|
apps/web/src/components/new-participant-modal.tsx |
Updated error handling in NewParticipantForm to access error messages differently and added Sentry for error reporting. |
packages/backend/trpc/routers/polls/participants.ts |
Changed the rate limit error message for better clarity while keeping the overall logic unchanged. |
sequenceDiagram
participant User
participant NewParticipantForm
participant Sentry
participant ParticipantsRouter
User->>NewParticipantForm: Submit new participant
NewParticipantForm->>ParticipantsRouter: Process request
ParticipantsRouter-->>NewParticipantForm: Return error (rate limit exceeded)
NewParticipantForm->>Sentry: Capture exception
Sentry-->>NewParticipantForm: Log error
NewParticipantForm-->>User: Display error message
🐰 "In the meadow, I hop with glee,
Errors caught, as clear as can be!
With Sentry's watch, we're safe and sound,
No more confusion, just joy all around!
Rate limits now, with messages bright,
Hooray for the changes, all feels just right!" 🐇
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
Bug Fixes
New Features