Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
There was a problem hiding this comment.
Pull request overview
This PR updates the UI package’s toast ergonomics and theming by introducing a useToast helper hook and refining the Sonner Toaster configuration/styles.
Changes:
- Export a new
useToasthook that wrapssonnertoast helpers with a default duration. - Update the Sonner
Toasterto enable a close button and adjust toast theming variables/classnames. - Re-export
useToastfrom the UI package entrypoint.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| packages/ui/src/index.ts | Re-exports the new useToast hook from the UI package. |
| packages/ui/src/hooks/useToast.ts | Adds a wrapper around sonner toast APIs with a default duration. |
| packages/ui/src/components/sonner.tsx | Adjusts toaster styling/theme variables and enables/stylizes the close button. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Signed-off-by: bdjulbic <[email protected]>
…r-toast-integration-8256-update
| closeButton | ||
| swipeDirections={['bottom']} |
There was a problem hiding this comment.
this locks the card swiping to only bottom direction
close button shows the close button on top left corner
4773b0d
into
cursor/sonner-toast-integration-8256
No description provided.