Repository navigation
fix(board): show project name on Workspace board cards - #13830
PannenetsF wants to merge 2 commits into
Conversation
Board lanes group by workspace status and mix projects, so each card is the only place its project is identified. In the new/compact card styles the repo shows as an icon-only chip (name in a hover tooltip), so cards whose title falls back to the branch — every project's primary reads `main`/`master` — are indistinguishable across projects. Add a board-only `showProjectName` prop, set from WorkspaceKanbanCard, that renders the repo display name as a muted inline label in the title row. The sidebar keeps the chip-only treatment. Scoped so it only fires in the icon-only title styles where the name text is otherwise absent. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
📝 WalkthroughWalkthroughKanban cards now pass 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 87f2aa91-ed2f-4505-8214-1479eafce78b
📥 Commits
Reviewing files that changed from the base of the PR and between a0a654c and cb05b784e580781ece045b07815127efa479c979.
📒 Files selected for processing (6)
src/renderer/src/components/sidebar/WorkspaceKanbanCard.tsxsrc/renderer/src/components/sidebar/WorktreeCard.project-name.test.tsxsrc/renderer/src/components/sidebar/WorktreeCard.tsxsrc/renderer/src/components/sidebar/worktree-card-header.tsxsrc/renderer/src/components/sidebar/worktree-card-model.tssrc/renderer/src/components/sidebar/worktree-card-presentation.tsx
The folder-workspace case passed repo={undefined}, which short-circuits
at !!repo before the !isFolder guard runs — so it tested missing-repo
behavior, not folder behavior. Pass a repo with kind:'folder' so the
inline project label is gated off through the actual folder path.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
@coderabbitai review |
|
07a0620 to
2bb584a
Compare
Extends the board fix (stablyai#13830) to the sidebar. When grouped by workspace-status or pr-status (or ungrouped), cards from different projects interleave in one group; in the new/compact card styles the repo is an icon-only chip and the title falls back to the branch (main/master for every primary), so cards are indistinguishable across projects. Wire the existing showProjectName lever at the sidebar render site for groupBy !== 'repo' (repo-grouped views use the group header). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
@brennanb2025 Gentle bump 🙏 — open ~7 days with no review yet. Could you take a look when you have a chance? Thanks! |
|
Thanks for the contribution! This is covered by merged #28890: project names now appear on the shared cards used by the board, pinned workspaces and mixed-project sidebar lists. Closing this PR as superseded. |
Closes #13828
Summary
On the Workspace board, cards with no descriptive title didn't show which project they belong to. Board lanes group by workspace status and mix projects, so each card is the only place its project is identified — but in the new/compact card styles the repo shows as an icon-only chip (name in a hover tooltip). A project's primary worktree with no session keeps its default branch title, so every one reads
main/masterand they're indistinguishable across projects.This adds a board-only
showProjectNameflag (set fromWorkspaceKanbanCard) that renders the repo display name as a muted inline label in the card's title row, in the icon-only card styles where the name text is otherwise absent. The sidebar is unchanged — it keeps the chip-only treatment since it can already group by project.Screenshots
I don't have a running app build in this environment, so no screenshot is attached. The change is small and self-contained: in each board card's title row, a muted
text-[11px] text-muted-foregroundproject label (repo display name) now appears between the repo icon chip and the workspace title, e.g.[icon] orca main. It only renders on the board (not the sidebar) and only in the icon-only card styles; layout is otherwise unchanged (the label isshrink-0 truncate max-w-[8rem]).Testing
pnpm lint—oxlinton changed files clean; pre-commit hook (oxlint + react-doctor + oxfmt) passed on both commits.pnpm typecheck—tsc --noEmit -p config/tsconfig.tc.web.jsonclean.pnpm test— newWorktreeCard.project-name.test.tsx(3 tests) + related card/lane suites green.pnpm build— not run in this environment (no full Electron build available here).showProjectName; is absent without it (sidebar); is absent for a folder workspace (repo present withkind:'folder', exercising the!isFoldergate).AI Review Report
Reviewed with an AI coding agent (Claude Code). Focus areas and findings:
WorkspaceKanbanCardis rendered only by the board's lane list (WorkspaceKanbanLaneCardList), so theshowProjectNameflag cannot reach the sidebar. The gateshowProjectNameLabel = showProjectName && showInlineRepoBadgefurther limits it to the icon-only title styles where the repo name text is otherwise missing.WorktreeCardcall sites (sidebar, pinned, lineage) are unaffected. Existing card/lane test suites pass unchanged.shrink-0 truncate max-w-[8rem]; the title keepsmin-w-0 truncate, so overflow behavior is preserved and the full name remains available via the adjacent chip's tooltip.Security Audit
Renderer-only, presentational change. No new input handling, command execution, path handling, auth, secrets, dependency, or IPC surface. The only new runtime value rendered is
repo.displayName, an existing trusted field already shown elsewhere (repo chip tooltip, legacy meta-row badge) and rendered as React text (nodangerouslySetInnerHTML). No follow-up required.Notes
🤖 Generated with Claude Code