Skip to content

fix(bots): use the blue Projects unread dot on folded Bots avatars - #47122

Merged
nwparker merged 1 commit into
mainfrom
bugbash/issue-47099
Nov 22, 2026
Merged

nwparker merged 1 commit into
mainfrom
bugbash/issue-47099

Conversation

@nwparker

@nwparker nwparker commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

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.

Files Added Deleted Net
Test 0 0 0 0
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3

What Changed

  • Before: the folded Bots bar marked an unread bot with an 8px bg-foreground dot (white in dark theme, near-black in light) with a 1px ring-sidebar ring, so it read as a different state from the Projects unread dot.
  • After: it uses the exact Projects unread dot: 6px bg-unread (blue) with a 2px ring-worktree-sidebar ring, at the same corner.
  • Mechanism: the Projects class in WorktreeCardStatusSlot.tsx is exported as unreadAlertDotClassName (renamed from the private newCardUnreadAlertClassName) and PreviewPip in BotCollapsedPreview.tsx reuses it, adding only z-10 so the dot stays above the stacked avatars. The folded-header fixture now renders on bg-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.

Before After
Folded Bots dark before Folded Bots dark after

Folded Bots bar, light theme:

Before After
Folded Bots light before Folded Bots light after

For reference, the Projects unread dots, which this change leaves as they were:

Dark Light
Projects unread dark Projects unread light

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/BotCollapsedPreview component 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

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Reported by @mmarabel

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>
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The folded bot preview now uses the unread-dot class exported by the worktree status slot. The fixture’s sidebar container now uses worktree-specific background and foreground classes.

Severity of issue fixed: Low

Merge Risk: Minimal · up to f8e16

This updates the folded Bots unread dot to match the blue Projects style. It is a CSS-only change with no data or protocol impact and no evident risk to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: folded Bots avatars now use the blue Projects unread dot. The raw summary confirms the shared unread dot class, and the objectives confirm the same intent. The title i…
Description check Passed The description follows the repository template. It includes ELI5, What Changed, Why, Linked Issue (Fixes #47099), Visual Proof with before and after images for dark and light themes, Testing, Perform…
Linked Issues check Passed [#47099] requires the folded Bots unread dot to match the Projects unread dot: 6px, bg-unread, and a sidebar-coloured ring. At head, WorktreeCardStatusSlot.tsx exports unreadAlertDotClassName = 'point…
Out of Scope Changes check Passed Changes are limited to the three files named in the PR: WorktreeCardStatusSlot.tsx (constant renamed and exported, value unchanged), BotCollapsedPreview.tsx (PreviewPip reuses the shared class), and B…
Full details: Title check

Explanation

The title names the main change: folded Bots avatars now use the blue Projects unread dot. The raw summary confirms the shared unread dot class, and the objectives confirm the same intent. The title is specific and follows the conventional prefix style. It is 66 characters, within a typical limit.

Full details: Description check

Explanation

The description follows the repository template. It includes ELI5, What Changed, Why, Linked Issue (Fixes #47099), Visual Proof with before and after images for dark and light themes, Testing, Performance, Risk with level, Agent skill boundary, Notes, and Checklist. The AI Disclosure section is left as template text, which is acceptable for an internal contributor. The Review section is empty. The Performance and Risk sections are substantive. The description gives a clear mechanism and rationale. The visual proof is given for both themes.

Full details: Linked Issues check

Explanation

[#47099] requires the folded Bots unread dot to match the Projects unread dot: 6px, bg-unread, and a sidebar-coloured ring. At head, WorktreeCardStatusSlot.tsx exports unreadAlertDotClassName = 'pointer-events-none absolute right-0 bottom-0 size-[6px] rounded-full bg-unread ring-2 ring-worktree-sidebar'. BotCollapsedPreview.tsx imports this constant and PreviewPip renders the unread case as <span className={cn(unreadAlertDotClassName, 'z-10')} aria-hidden="true" />. The Bots dot therefore uses the Projects classes, with z-10 added for stacking. The unread dot is a CSS class only, so no automated test covers it. The PR relies on fixture screenshots for visual evidence. The requirement is a styling requirement, and the code shows the expected classes. #47100 (unfolded rows) is out of scope and was not assessed as a requirement.

Full details: Out of Scope Changes check

Explanation

Changes are limited to the three files named in the PR: WorktreeCardStatusSlot.tsx (constant renamed and exported, value unchanged), BotCollapsedPreview.tsx (PreviewPip reuses the shared class), and BotCollapsedPreview.fixture.tsx (foldedHeader fixture background changed to bg-worktree-sidebar). The rename and export support the shared-class design. The fixture change supports the before/after screenshots. No unrelated behaviour change was found. The diff tool could not read changed blobs, so the fixture and the prior class value were checked from head file contents and the PR summary only.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 615abdb6-b89e-4b70-8e3e-c590a22552e0
Commits

Reviewing files that changed from the base of the PR and between 70db292 and f8e1634.

Files selected for processing: 3

  • src/renderer/src/components/bots/BotCollapsedPreview.fixture.tsx
  • src/renderer/src/components/bots/BotCollapsedPreview.tsx
  • src/renderer/src/components/sidebar/workspace-card/surface/WorktreeCardStatusSlot.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@nwparker
nwparker merged commit 490ec49 into main Nov 22, 2026
32 checks passed
@nwparker
nwparker deleted the bugbash/issue-47099 branch November 22, 2026 21:29
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.

[Bug]: Folded Bots bar marks unread with a white dot instead of the blue Projects dot

1 participant