Skip to content

fix: update branch - #475

Merged
bdjulbic merged 10 commits into
cursor/sonner-toast-integration-8256from
cursor/sonner-toast-integration-8256-update
Mar 19, 2026
Merged

bdjulbic merged 10 commits into
cursor/sonner-toast-integration-8256from
cursor/sonner-toast-integration-8256-update

Conversation

@bdjulbic

Copy link
Copy Markdown
Collaborator

No description provided.

@coderabbitai

coderabbitai Bot commented Mar 17, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8b2f4b6f-0306-495c-949c-54f9f0e95a67

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/sonner-toast-integration-8256-update
📝 Coding Plan
  • Generate coding plan for human review comments

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@bdjulbic
bdjulbic marked this pull request as ready for review March 17, 2026 11:21
@bdjulbic bdjulbic changed the title update branch fix: update branch Mar 17, 2026
@bdjulbic
bdjulbic requested a review from Copilot March 17, 2026 11:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 useToast hook that wraps sonner toast helpers with a default duration.
  • Update the Sonner Toaster to enable a close button and adjust toast theming variables/classnames.
  • Re-export useToast from 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.

Comment thread packages/ui/src/components/sonner.tsx Outdated
Comment thread packages/ui/src/components/sonner.tsx Outdated
Comment thread packages/ui/src/hooks/useToast.ts Outdated
Comment on lines +15 to +16
closeButton
swipeDirections={['bottom']}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this locks the card swiping to only bottom direction
close button shows the close button on top left corner

@bdjulbic
bdjulbic merged commit 4773b0d into cursor/sonner-toast-integration-8256 Mar 19, 2026
3 checks passed
@bdjulbic
bdjulbic deleted the cursor/sonner-toast-integration-8256-update branch March 19, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants