Skip to content

TUI - Improve notifications#2931

Merged
krissetto merged 1 commit into
docker:mainfrom
krissetto:improved-notification-component
May 29, 2026
Merged

TUI - Improve notifications#2931
krissetto merged 1 commit into
docker:mainfrom
krissetto:improved-notification-component

Conversation

@krissetto
Copy link
Copy Markdown
Contributor

@krissetto krissetto commented May 29, 2026

Misc improvements to the TUI notifications:

  • don't auto remove notifications if the mouse is hovering them
  • clicking the notification will copy its contents
  • use a glyph for the x to close, and make it red when hovered
  • show action hint text in the top left of the notification border

Screenshots:

Screenshot From 2026-05-29 14-45-53
Screenshot From 2026-05-29 14-46-25
Screenshot From 2026-05-29 14-46-13
Screenshot From 2026-05-29 14-46-18

@krissetto krissetto requested a review from a team as a code owner May 29, 2026 12:48
rumpl
rumpl previously approved these changes May 29, 2026
Copy link
Copy Markdown

@docker-agent docker-agent left a comment

Choose a reason for hiding this comment

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

Assessment: 🟡 NEEDS ATTENTION

Two medium-severity issues found in the new notification interaction code.

Summary of changes reviewed: Mouse-hover-aware auto-hide suppression, click-to-copy clipboard integration, close-button glyph overlay, and border hint text injection — all in the TUI notification component.

Comment thread pkg/tui/components/notification/notification.go
Comment thread pkg/tui/tui.go
@krissetto krissetto force-pushed the improved-notification-component branch from 1fe12a6 to b00c5a5 Compare May 29, 2026 12:59
@aheritier aheritier added area/tui For features/issues/fixes related to the TUI kind/feat PR adds a new feature (maps to feat: commit prefix) labels May 29, 2026
- don't auto remove them is mouse is hovering
- clicking the notification will copy its contents
- use a gliph for the x to close, and make it red when hovered
- show action hint text in the top left of the notification border

Signed-off-by: Christopher Petito <chrisjpetito@gmail.com>
@krissetto krissetto force-pushed the improved-notification-component branch from b00c5a5 to a694221 Compare May 29, 2026 13:08
@krissetto krissetto merged commit 0ca3c88 into docker:main May 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tui For features/issues/fixes related to the TUI kind/feat PR adds a new feature (maps to feat: commit prefix)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants