Skip to content

feat(staged): show project tags beside repos in the sidebar and grid - #1065

Merged
matt2e merged 1 commit into
mainfrom
show-tags-more
Nov 13, 2026
Merged

matt2e merged 1 commit into
mainfrom
show-tags-more

Conversation

@matt2e

@matt2e matt2e commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Tags were easy to miss: sidebar rows showed none, and grid cards put them on a row of their own, apart from the repos. A project's tags now sit as chips in the same cluster as its repo names.

  • Sidebar rows (ProjectRowContent, so also the move-branch and note-transfer pickers): chips follow the repo short-name badges on the meta line, before any activity text. Up to two chips, then "+N" with a tooltip naming the rest. A new xs TagChip size matches the small repo badge so the row keeps its height. While no badge has landed, the chips follow the repo count instead.
  • Grid cards: chips wrap with the repos in the footer's repo cluster. Up to three chips, then "+N", as before.
  • Board cards share that cluster and still leave out the tag their column stands for (the card's tag in the board's group, now excludeTagGroupId). Cards under "No ‹group›" show every chip.
  • The icon group's tag is still not repeated as a chip anywhere; the status icon already shows it.

Refactor

  • ProjectCardTagChips → ProjectTagChips: bare chips with max and size props, no wrapper, so they wrap and shrink like the badges beside them.
  • ProjectRepoBadges → ProjectCardLabels: renders the repos and then the chips.

Tests

  • Sidebar row and card-label component tests: chips beside the repos, no tags, multiple repos, overflow, and the icon group.
  • Board tests: column-implied tags left off cards while other tags stay, including after a move and under "No ‹group›".

🤖 Generated with Claude Code

Tags were easy to miss: sidebar rows showed none (only the icon group's
tag, as the status icon), and grid cards put them on a row of their own,
apart from the repos.

A project's tags now sit as chips in the same cluster as its repo names:

- Sidebar rows (ProjectRowContent, so also the move-branch and
  note-transfer pickers): after the repo short-name badges on the meta
  line, before any activity text. Up to two chips, then "+N" whose
  tooltip names the rest. A new `xs` TagChip size matches the small repo
  badge, so the row keeps its height. In a tight row a long tag name
  ellipsizes first; past that the line clips at the row's edge, as the
  repo badges already do. While no badge has landed, the chips follow
  the repo count instead.
- Grid cards: in the footer's repo cluster, wrapping with the repos. Up
  to three chips, then "+N", as before.

Both reuse the existing chip component and lookup, generalized:
ProjectCardTagChips becomes ProjectTagChips (bare chips, with `max` and
`size`), and ProjectRepoBadges becomes ProjectCardLabels, which renders
the repos and then the chips. A project with no tags renders nothing
extra.

Board cards share that cluster and leave out the tag their column
stands for. Readings chosen where the code differed from the request:

- A board's columns are the tags of one tag group plus "No <group>",
  and a group is single choice, so the tag a column implies is the
  card's tag in the board's group. Cards already skipped that group's
  chip; that rule is kept (now `excludeTagGroupId`) and covered by
  tests. Cards under "No <group>" have no tag in the group and show
  every chip, as do tags from other groups in any column.
- The icon group's tag is still not repeated as a chip anywhere: the
  project's status icon already shows it on every row and card.
- The grid shows full repo paths rather than short names, so there the
  chips sit beside those.

Tests: sidebar row and card-label component tests for chips beside the
repos, no tags, multiple repos, overflow and the icon group; board
tests for column-implied tags left off cards while other tags stay,
including after a move and under "No <group>".

Signed-off-by: Matt Toohey <contact@matttoohey.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T02:27:05.280602Z 1703f88 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@matt2e
matt2e merged commit 89b934e into main Nov 13, 2026
8 checks passed
@matt2e
matt2e deleted the show-tags-more branch November 13, 2026 02: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.

1 participant