Skip to content

fix(desktop): keep Inbox dot for viewed mentions - #7665

Draft
danielblazevski-square wants to merge 0 commit into
block:mainfrom
squareup:dblazevski/active-thread-mention-dot-v2
Draft

danielblazevski-square wants to merge 0 commit into
block:mainfrom
squareup:dblazevski/active-thread-mention-dot-v2

Conversation

@danielblazevski-square

Copy link
Copy Markdown

Why

Buzz marks a mention as read when it arrives in the conversation a person is viewing. The Inbox count stays unchanged, but the sidebar gives no strong signal that the mention arrived.

What

Keep a separate attention dot on Inbox until the person opens Inbox. Keep the numeric unread count unchanged.

Rename “Home badge” to “Inbox badge” so Settings matches the sidebar.

How

Store the mention IDs already seen in Inbox. Show the dot when the feed contains a newer mention, then clear it when Inbox opens.

Risk

The change affects desktop sidebar presentation and local notification state. It does not change relay events or unread-count semantics.

Testing

pnpm exec playwright test tests/e2e/badge.spec.ts --project=smoke --grep 'mention in the open thread keeps an attention dot on Inbox' — 1 passed.

Bigger picture

This builds on the read-state behavior in #6153.

Originating Buzz thread: buzz://message?channel=3a4eadf6-64ee-4bde-9f50-36d665f5cfc2&id=03b47c0dd13164ef44e96475b617688fef09e7a6e6b4f32059533040251b4117&thread=03b47c0dd13164ef44e96475b617688fef09e7a6e6b4f32059533040251b4117

Generated with Codex

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