Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(site): move PR icon to diff line, add subagent status icons, persist kebab on active chat - #28317

Closed
tracyjohnsonux wants to merge 3 commits into
mainfrom
tracy/chats-sidebar-status-icons
Closed

feat(site): move PR icon to diff line, add subagent status icons, persist kebab on active chat#28317
tracyjohnsonux wants to merge 3 commits into
mainfrom
tracy/chats-sidebar-status-icons

Conversation

@tracyjohnsonux

@tracyjohnsonux tracyjohnsonux commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Updates the agents chat sidebar rows in three ways, per design mocks:

  • PR icon moved to the diff line. The linked pull request icon (open / draft / merged / closed) no longer replaces the status icon on the first line. It now renders on the second line next to the +additions -deletions stats, in both the sidebar tree and the chat search results. It also shows regardless of chat status instead of only when idle.
  • Subagent variants for status icons. When a chat has subagents, the idle check becomes a double check (CheckCheck) and the working spinner becomes a new double-arc SubagentsLoaderIcon drawn on the lucide 24x24 grid, whose inner arc counter-rotates at a slower speed so the motion reads as concurrent work. The unread blue dot is unchanged. Status and PR icons now carry role="img" with accessible labels ("Idle", "Working, has subagents", "Pull request merged", ...).
  • Persistent kebab on the active chat. The row actions trigger stays visible on the selected chat instead of only appearing on hover (which also makes it reachable on touch devices); the timestamp stays hidden there. Other rows keep the hover swap.

Storybook: updated WithPRStateIcons to assert the PR icon labels, and added WithSubagentStatusIcons and ActiveChatKebabPersistent stories with play assertions.

Implementation notes and decisions

Approach

  • statusConfig.ts: getChatDisplayConfig(chat, hasSubagents) now returns the pure status icon plus a separate prIcon config (icon, className, accessible label) instead of letting the PR icon take precedence over the waiting state. Subagent icon variants live in a subagentsStatusConfig overlay for the waiting and running states.
  • SubagentsLoaderIcon.tsx: feature-local SVG (lucide LoaderCircle arc plus a scaled inner arc; each arc animates independently via origin-center [transform-box:view-box]) rather than a shared site/src/components primitive, per the guideline to keep feature-specific variants local until a shared design lands.
  • ChatTreeNode.tsx / ChatSearchResults.tsx: render prIcon on the second line before the line stats; pass hasChildren (same condition as the subagent count badge) for the icon variants. Search results always use the single-agent variants since subagent relationships are not available there.
  • Kebab persistence uses the existing isActiveChat value: opacity-100 on the trigger and hidden on the timestamp for the active row.

Decisions

  • "Subagents present" means the chat has child chats in the tree, not specifically running ones, matching the subagent count badge condition.
  • ActiveChatKebabPersistent asserts getComputedStyle(...).opacity because the reveal is opacity-based; toBeVisible() ignores opacity and there is no semantic query for it.

Validation

  • pnpm lint (biome, tsc, circular deps, knip, compiler): pass
  • Unit suite: 3348 passed
  • Story tests: 54 sidebar + 31 search dialog, all pass
  • make pre-commit: pass

🤖 Generated by Coder Agents on behalf of @tracyjohnsonux

@tracyjohnsonux tracyjohnsonux added the experimental Changes that might not necessarily be merged, until its approved to proceed with. label Aug 19, 2026 — with Coder
tracyjohnsonux added a commit that referenced this pull request Aug 19, 2026
… to diff line, center unread dot, persist kebab (#28326)

Three chat-sidebar row updates cherry-picked from #28317 (that PR stays
open as the full riff), plus one removal:

- **PR icon moves to the diff line.** The linked pull request icon (open
/ draft / merged / closed) no longer replaces the status icon when the
chat is idle. It renders on the second line next to the `+additions
-deletions` stats, in both the sidebar tree and the chat search results,
regardless of chat status.
- **Unread dot alignment.** The unread dot is centered in a box matching
the kebab's width, so it sits on the same axis as the actions trigger
instead of shifting when the hover swap happens.
- **Persistent kebab on the selected chat.** The row actions trigger
stays visible on the active chat (no hover required, reachable on touch
devices); the timestamp is hidden there. Other rows keep the hover swap.
- **Subagent count badge removed.** The `N` + bot icon added to the
metadata line in #28234 no longer renders, making room for the PR icon
and diff stats. The "Show subagents" menu toggle and expand behavior are
unchanged.

Status and PR icons carry `role="img"` with accessible labels ("Idle",
"Pull request merged", ...).

<details>
<summary>Implementation notes</summary>

- `statusConfig.ts`: `getChatDisplayConfig(chat)` now returns the status
icon plus a separate `prIcon` config (icon, className, accessible label)
instead of letting the PR icon take precedence over the status. Labels
added for all status and PR states.
- `ChatTreeNode.tsx` / `ChatSearchResults.tsx`: render `prIcon` on the
second line before the line stats.
- Kebab persistence reuses the existing `isActiveChat` value:
`opacity-100` on the trigger, `hidden` on the timestamp for the active
row.
- `ChatTreeNode.tsx`: the on-row subagent count badge (`childIDs.length`
+ `BotIcon`) is removed; the `SubagentsMenuToggle` story only asserts
the menu toggle, so it still passes.
- Not included from #28317: the subagent status icon variants
(`CheckCheckIcon` / `SubagentsLoaderIcon`, the `hasSubagents` param, and
the `WithSubagentStatusIcons` story).

Validation:

- `pnpm run lint` (biome, tsc, knip, circular deps, compiler): pass
- Story tests: 96 passed (4 files) including the updated
`WithPRStateIcons` label assertions and the new
`ActiveChatKebabPersistent` story
- Unit suite for the sidebar area: 65 passed
- `make pre-commit` (via git hook): pass

</details>

_Generated by Coder Agents on behalf of @tracyjohnsonux._
@tracyjohnsonux
tracyjohnsonux marked this pull request as ready for review August 20, 2026 19:10
@tracyjohnsonux tracyjohnsonux removed the experimental Changes that might not necessarily be merged, until its approved to proceed with. label Aug 20, 2026
@github-actions github-actions Bot added the stale This issue is like stale bread. label Sep 9, 2026
@github-actions github-actions Bot closed this Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale This issue is like stale bread.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant