Skip to content

feat(tray): unread badge until the window is looked at - #11

Merged
eJosR-Coding merged 1 commit into
mainfrom
feat/unread-dot
Sep 12, 2026
Merged

eJosR-Coding merged 1 commit into
mainfrom
feat/unread-dot

Conversation

@eJosR-Coding

Copy link
Copy Markdown
Owner

What

Red dot on the tray icon when notices arrive and the window isn't in front of you; tooltip shows the count. Cleared on focus or when opened from the tray. Survives the bell animation.

Verified

  • With the window unfocused, gitbell notify leaves the tray PNG with the badge pixel at rgb(255,59,48) after the animation.
  • With the window focused, the same notice sets no badge (correct: you were looking).
  • cargo test (6), tsc.

Notices that arrive while the window isn't visible and focused count as
unread: the tray swaps to the logo with a red dot and the tooltip shows
the count. Opening the window from the tray, or it gaining focus, clears
it. The bell animation ends on whichever resting icon applies, so the
badge survives a ring. Rust owns the state; the frontend only reports
how many notices landed.
@eJosR-Coding
eJosR-Coding merged commit ab24be3 into main Sep 12, 2026
1 check passed
@eJosR-Coding
eJosR-Coding deleted the feat/unread-dot branch September 12, 2026 21:15
eJosR-Coding added a commit that referenced this pull request Sep 13, 2026
Notices that arrive while the window isn't visible and focused count as
unread: the tray swaps to the logo with a red dot and the tooltip shows
the count. Opening the window from the tray, or it gaining focus, clears
it. The bell animation ends on whichever resting icon applies, so the
badge survives a ring. Rust owns the state; the frontend only reports
how many notices landed.
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.

1 participant