feat: add success feedback for todo create/edit operations#23
feat: add success feedback for todo create/edit operations#23jezweb wants to merge 1 commit intoifindev:mainfrom
Conversation
- Import react-hot-toast and useRouter - Use toast.promise to show loading/success/error states - Show 'Creating/Updating todo...' during operation - Show success message before redirect - Provides clear user feedback for save operations Enhances UX by confirming successful todo creation/updates before redirect happens.
|
Warning Rate limit exceeded@jezweb has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 9 minutes and 4 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the 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 for further information. 📒 Files selected for processing (1)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Filter out NEXT_REDIRECT errors in toast.promise error handler - NEXT_REDIRECT is Next.js flow control, not an actual error - Fixes interaction issue between PR ifindev#19 and PR ifindev#23
Summary
Adds clear user feedback during todo creation and editing using toast notifications.
Changes
react-hot-toastanduseRouterin todo-form componenttoast.promise()to show loading, success, and error statesBenefits
User Experience
Before: Form submits → redirect happens → no feedback
After: Form submits → "Creating todo..." → "Todo created successfully!" → redirect
Testing
Addresses missing success feedback identified in UX improvement audit.