Skip to content

feat(web): sprint and coordinator icons on their sidebar labels and headers - #574

Merged
NoahHendrickson merged 2 commits into
customfrom
t3/sidebar-coordinator-section-icon
Nov 29, 2026
Merged

NoahHendrickson merged 2 commits into
customfrom
t3/sidebar-coordinator-section-icon

Conversation

@NoahHendrickson

@NoahHendrickson NoahHendrickson commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

The sidebar's Sprints section label starts with an icon (Package04, from #569), but the Coordinators label had none. The chat header also showed no icon before a sprint's or a coordinator's title.

Sidebar. The Coordinators label now passes icon={WorkflowSquare10Icon} to the same SidebarV2ListSection prop that Sprints uses. It's the icon the draft's Coordinator toggle already shows (custom/coordinator/CoordinatorDraftToggle.tsx), and the only coordinator icon in the app. Both labels draw their icon through SidebarV2SectionLabel, so they match: I measured both in light and dark in a browser, and each has a 16×16 icon, a 6px gap, the same ink in each theme and the same icon-to-text offset.

Chat header. BotHeaderMascot already sits right before the header title (ChatHeader.tsx, where Petals show their mascot). It now returns Package04 for a sprint and workflow-square-10 for a coordinator, at the sidebar labels' size and gap (size-4, mr-1.5). I measured both in light and dark: the icon is 16×16, centred on the title, 6px from it, and in the title's color. Petals keep their mascot and other threads still show no icon, so ChatHeader.tsx itself doesn't change.

One difference stays: Package04 is a themed icon that fills under the fork palettes, and workflow-square-10 is a stroke icon, so it stays an outline. I left that alone.

The PR also adds guard assertions in forkCoordinatorThreads.test.ts and lines in the fork-coordinator-threads and fork-bots manifest entries.

Checks: vp run check:changed, node .fork/design-lint.mjs --check and node .fork/lint-owned.mjs all pass.

Reviewed with sol-loop: 2 rounds with GPT-6.1 Sol. Sol verdict: approved


🤖 Signed: Claude Opus 5.5 (claude-opus-5-5) via Claude Code (T3 Code)
Review: GPT-6.1 Sol (gpt-6.1-sol, high effort) via Codex, two sol-loop rounds (sidebar label, then header), both approved with no findings

🤖 Generated with Claude Code

The Coordinators section label now starts with workflow-square-10, the icon the
draft's Coordinator toggle uses, the way the Sprints label leads with Package04.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Nov 29, 2026
@NoahHendrickson

Copy link
Copy Markdown
Owner Author

Code-quality review of 09cb070405687bd5800dc8e101e32db30581ad9a: no major structural issues found.

The change is as small as it can be. It passes one prop through the existing SidebarV2ListSection icon slot, the same way SidebarV2SprintsSection passes Package04Icon, and it reuses the WorkflowSquare10Icon export that CoordinatorDraftToggle already imports. It adds no branches, wrappers or casts, and the file is still 28 lines. The guard assertion follows the string-contains style the file already uses, and the manifest line sits in the entry that owns the section.

One cosmetic note, not a blocker: the manifest reflow leaves a short orphan line ("folds per device with the other list sections") in the middle of the paragraph. Rewrapping it would keep the YAML prose tidy.


🤖 Reviewed by Claude Opus 5.5 (claude-opus-5-5) via Claude Code (T3 Code)

@NoahHendrickson NoahHendrickson left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review: 09cb070405687bd5800dc8e101e32db30581ad9a

Verdict: no correctness issues found. Not approving (review-only run).

What I checked:

  • SidebarV2CoordinatorsSection.tsx: icon={WorkflowSquare10Icon} matches SidebarV2ListSection's icon?: ComponentType<{ className?: string }> prop. That prop passes through to SidebarV2SectionLabel, which already renders the icon at size-4 shrink-0 and keeps the words on the baseline (self-baseline). This is the same path SidebarV2SprintsSection uses with Package04Icon, so the label, caret, fold and test-id behaviour are unchanged.
  • The import comes from custom/icons/lucide-hugeicons, the module CoordinatorDraftToggle.tsx already uses for this icon. Nothing new reaches upstream files, so no fence is needed.
  • The guard in forkCoordinatorThreads.test.ts reads the file once and asserts both strings. Same string-contains style as the rest of the guard.
  • The .fork/customizations.yaml change only adds prose to the existing fork-coordinator-threads entry. The YAML block scalar stays valid.

Not a defect: the PR body already notes that workflow-square-10 is a stroke icon, so it stays an outline under the fork palettes while Package04 (themed) fills. That's a design choice for the maintainer.


🤖 Reviewed by Claude Opus 5.5 (claude-opus-5-5) via Claude Code (T3 Code)

The chat header's title starts with Package04 for a sprint and workflow-square-10
for a coordinator, in the slot a Petal's mascot uses, at the sidebar labels' size
and gap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@NoahHendrickson NoahHendrickson changed the title feat(web): Coordinators sidebar label leads with the coordinator icon feat(web): sprint and coordinator icons on their sidebar labels and headers Nov 29, 2026
@github-actions github-actions Bot added size:S and removed size:XS labels Nov 29, 2026
@NoahHendrickson
NoahHendrickson merged commit 544038c into custom Nov 29, 2026
33 checks passed
@NoahHendrickson
NoahHendrickson deleted the t3/sidebar-coordinator-section-icon branch November 29, 2026 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants