Repository navigation
fix(bots): use the blue Projects unread dot on folded Bots avatars - #47122
Conversation
The folded Bots bar drew unread as an 8px bg-foreground dot (white in the dark theme) with a 1px ring, while Projects marks unread with a 6px bg-unread (blue) dot ringed in the sidebar colour. Share the Projects class so the same state reads the same in both sections, and render the folded Bots fixture on the worktree sidebar surface it sits on in the app. Fixes #47099 Co-authored-by: Claude <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Low Merge Risk:
|
ELI5
When a folded bot has something new for you, Orca puts a little dot on its avatar. In the Bots bar that dot was white; in Projects the same "unread" dot is blue. Now both are the same blue dot.
What Changed
bg-foregrounddot (white in dark theme, near-black in light) with a 1pxring-sidebarring, so it read as a different state from the Projects unread dot.bg-unread(blue) with a 2pxring-worktree-sidebarring, at the same corner.WorktreeCardStatusSlot.tsxis exported asunreadAlertDotClassName(renamed from the privatenewCardUnreadAlertClassName) andPreviewPipinBotCollapsedPreview.tsxreuses it, adding onlyz-10so the dot stays above the stacked avatars. The folded-header fixture now renders onbg-worktree-sidebar, the surface the Bots section actually sits on in the app.Why
The same state should look the same in both sidebar sections. Sharing one class is better than copying the values: the two dots can't drift apart again.
Linked Issue
Fixes #47099
Visual Proof
Folded Bots bar, dark theme. The second avatar is unread.
Folded Bots bar, light theme:
For reference, the Projects unread dots, which this change leaves as they were:
Testing
Repro: fold the Bots section while a bot has unread activity. Before this change the avatar showed a white dot (dark theme). After it, the avatar shows the blue dot that Projects uses. Screenshots above come from the
bots/BotCollapsedPreviewcomponent fixtures (foldedHeader), captured before and after the change.vitest run --config config/vitest.config.ts src/renderer/src/components/bots/ src/renderer/src/components/sidebar/workspace-card/: 10 files and 22 tests pass.oxlint, oxfmt, the anti-slop and code-quality oxlint configs, ast-grep and the changed-code quality gate all pass on the touched files.
Platforms: macOS (fixture rendering). The change is CSS only, so it behaves the same on Linux, Windows and SSH.
I manually tested these changes locally
Automated tests added/updated, or explained why not below: none added. This is a class-name change with no logic, and the fixture screenshots cover it.
Every added test fails without this change and avoids the test anti-patterns
Performance
None, because this only swaps a static Tailwind class string on a span that already rendered. It adds no state, effects, subscriptions or work per render.
Risk
Level: Low
The only shared surface is the Projects unread dot class, which is renamed and exported with its value unchanged, so Projects renders exactly as before. If the dot looks wrong, a plain revert undoes it. No saved data, settings, IPC or remote protocol is involved.
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)Reported by @mmarabel