Skip to content

fix(sidebar): keep selected agent row visually distinct from its project card#685

Merged
svenmalvik merged 1 commit into
mainfrom
fix-sidebar-selected-agent-merge
Jun 12, 2026
Merged

fix(sidebar): keep selected agent row visually distinct from its project card#685
svenmalvik merged 1 commit into
mainfrom
fix-sidebar-selected-agent-merge

Conversation

@svenmalvik

Copy link
Copy Markdown
Collaborator

Summary

In the sidebar's WITH AGENTS section, the always-active project header and the selected agent row both used the same --sidebar-active-bg fill plus a 2px accent left bar at the same x-position, separated by ~2px — the two highlights read as one merged surface (see #682).

Two CSS rules in theme.css: when any non-header row inside a --has-agents card is active, the header drops its fill and accent bar (border-left-color: transparent keeps layout stable). The elevated card still marks the active project; the filled row marks the selection. A companion :hover rule preserves hover feedback on the quieted header, which the higher-specificity transparent rule would otherwise suppress.

The selector also covers workspace cards (WorkspaceList) and draft rows, which share the same classes. The header keeps its --active class, so its action buttons and the behind-origin fetch badge stay visible.

Testing

  • Full suite: 303 files / 2195 tests pass; typecheck:web clean
  • Verified in the built app (clean-room profile, project + agent via IPC): with an agent selected, header computes to transparent bg/bar while the agent row keeps the accent fill and bar; removing the agent's active state restores the header's full treatment
  • Probed hover on the quieted header (hover fill appears) and a light-theme sweep (treatment holds across themes)

Closes #682

🤖 Generated with Claude Code

…tion

In the WITH AGENTS card, the always-active project header and the
selected agent row both used the same --sidebar-active-bg fill and a
2px accent left bar at the same x-position, so the two highlights read
as one merged surface. When any non-header row in the card is active,
the header now drops its fill and bar — the elevated card still marks
the active project, and the filled row marks the selection. Hover
feedback on the header is preserved.

Closes #682

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@svenmalvik svenmalvik requested a review from a team June 12, 2026 16:22
@svenmalvik svenmalvik merged commit b57355c into main Jun 12, 2026
@svenmalvik svenmalvik deleted the fix-sidebar-selected-agent-merge branch June 12, 2026 16:50
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.

[agent][test] Sidebar agent row visually merges with parent project card

1 participant