Add close button to all toast notifications by Rhoahndur · Pull Request #886 · humanlayer/humanlayer · GitHub
Skip to content

Add close button to all toast notifications#886

Open
Rhoahndur wants to merge 1 commit intohumanlayer:mainfrom
Rhoahndur:feature/notification-close-buttons
Open

Add close button to all toast notifications#886
Rhoahndur wants to merge 1 commit intohumanlayer:mainfrom
Rhoahndur:feature/notification-close-buttons

Conversation

@Rhoahndur
Copy link
Copy Markdown

@Rhoahndur Rhoahndur commented Dec 4, 2025

What problem(s) was I solving?

Toast notifications couldn't be dismissed manually - users had to wait for them to auto-dismiss.

What user-facing changes did I ship?

All toast notifications now have a close button (X) in the top-left corner.

How I implemented it

Added closeButton: true to the global Sonner Toaster config in CodeLayerToaster.tsx.

How to verify it

  • I have ensured make check test passes
  1. Trigger any toast (clipboard operation, settings change, etc.)
  2. Verify the X button appears
  3. Click X to dismiss immediately

Description for the changelog

Added close button to all toast notifications for easier dismissal.


Important

Add close button to toast notifications in CodeLayerToaster for manual dismissal.

  • Behavior:
    • Added closeButton: true to toastOptions in CodeLayerToaster to enable manual dismissal of toast notifications.
  • User Interface:
    • All toast notifications now display a close button (X) in the top-left corner for immediate dismissal.

This description was created by Ellipsis for 712f31a. You can customize this summary. It will automatically update as commits are pushed.

… the global Sonner Toaster config so all toasts have a dismissible X button by default.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

@ellipsis-dev ellipsis-dev Bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed everything up to 712f31a in 25 seconds. Click for details.
  • Reviewed 12 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. humanlayer-wui/src/components/internal/CodeLayerToaster.tsx:21
  • Draft comment:
    ✔️ Adding 'closeButton: true' globally ensures all toasts include a manual dismiss button. Consider verifying that the Sonner library provides proper ARIA labels for accessibility on the close button, or adding them if needed.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_MMJzZ1YP6EgWLqZ3

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

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.

2 participants