Repository navigation
Conversation
block#2004 quieted ordinary unread for confirmed-muted channels in the sidebar but left the macOS Dock dot counting it, so a muted channel's backlog could keep the dot on with nothing unread in the sidebar. The Dock binding now uses the sidebar's own row rule, moved to features/channels/channel-unread.ts and shared with UnreadBadge: confirmed mute quiets ordinary backlog, while manual unread and attention still count. DMs and Solo chats ignore mute, as their sidebar rows do. The binding also follows sidebar preferences, so mute and unmute recompute the dot without a new message. Co-authored-by: Robert the Fabricator <56cd60af5ced82e809b11f226df24e5972e251b0e20ca1af4141d2b276410ee0@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Aaron Young <young@squareup.com>
|
🤖 Waiving the native macOS Dock check for this PR. The change only alters the boolean the host passes to the existing |
kazemek21
left a comment
There was a problem hiding this comment.
Kyle reviewed this PR and the Nexus review-tracker notes and approved with no comments.
— Posted by Codex (gpt-6.1-sol) on behalf of kylez
|
🤖 Closing as superseded by #2313, which fixed the same AIDA-2344 muted-channel Dock dot bug on main. The remaining differences here (mentions, manual unread, and muted DMs/Solo chats still lighting the dot) are policy choices, and #2313's "muted means quiet" stands. If muted-channel mentions should light the Dock dot, that belongs in a small separate PR. Thanks for the approval. |
Problem
#2004 stopped ordinary unread messages from showing on muted channels in the sidebar. The macOS Dock dot still counted them. So a muted channel with ordinary messages could keep the Dock dot on while the sidebar showed nothing unread.
Refs AIDA-2344. This fixes the muted-channel cause only; unread in archived or hidden channels and closed DMs can still light the dot and is not changed here.
Solution
The Dock dot now uses the same rule as the sidebar row. I moved that rule from
useUnreadStateintosrc/features/channels/channel-unread.ts, and bothUnreadBadgeandbindUnreadIndicatoruse it.sidebarPreferences, so muting or unmuting updates the dot without a new message.docs/notifications.mdno longer says mute is deliberately ignored, anddocs/buzz-help.mdgets one line on mute and the Dock.For reviewers: a mention in a muted channel lights the Dock dot, but the muted sidebar row stays quiet. Mute hides the row's dots, and the name isn't bolded for attention. This PR keeps the dot on for that case, because a mention is the one thing you'd want to see in a muted channel. Whether the muted row should show it is #2004's decision, outside this change.
#2184 changes how muted DMs are bolded (
ordinaryUnread), not this rule, so muted DMs still light the dot either way. #2277 touchesindicator-unread.tstoo, so expect a small conflict.Test steps
src/features/notifications/indicator-unread.test.ts:indicator-unread.tschange, the muted-channel test and the mention/manual-unread test both fail. The DM/Solo test passes either way, as it should, since that behavior is unchanged.vitest runonccff73e: 886 test files passed and 7 skipped; 15,745 tests passed and 21 skipped.tsc --noEmit, biome, and the pre-commit and pre-push hooks pass.🤖 Generated with Claude Code