Repository navigation
fix(sidebar): show the project name on ungrouped compact cards - #28890
Conversation
Compact and new-card layouts kept the project in an icon chip, with the name only in a tooltip. The chip now shows the project name when the sidebar is not grouped by project.
…3-ungrouped-project-identity
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: 🔵 Low · up to
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
d4768bc1-dda5-473a-808f-b58eba81c5f0
📒 Files selected for processing: 4
src/renderer/src/components/sidebar/WorktreeCard.pinned-repo-icon.test.tsxsrc/renderer/src/components/sidebar/worktree-card-header.tsxsrc/renderer/src/components/sidebar/worktree-card-presentation.tsxsrc/shared/worktree/card-properties.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Review loop status: ready for Brennan's reviewProblem. With sidebar grouping off, Compact cards and Settings → Experimental → New card style identified the project only by a small icon. The default icon is the same folder for every project unless someone sets one per project, so two workspaces both named What changes for users. The project chip on each card now shows the icon plus the project name, in small muted lowercase text matching the project name on Detailed cards:
Brennan ruled on showing the name by default (the name shows for everyone, no setting), including pinned cards and the muted lowercase style. Fixed during review
Deferred (not in this PR)
Verified
Not verified: Windows and Linux live UI (the change is renderer-only, with no platform-specific code), SSH-hosted projects live (the chip uses the display name the host already publishes), and a long workspace name next to a long project name at 220px. For Brennan's reviewCompact, Group by None (four projects, each with a workspace named New card style, Group by None Pinned section, Detailed layout, Group by None Pinned section, Compact layout, Group by None (branch): Emoji and image icons, 6x zoom Emoji before the fix in this PR, painting over the border: Emoji on the final head, inside the chip: Sidebar at its 220px minimum width, Compact (branch, taken before the emoji fix; layout is unchanged by it): Places where a human judgment matters:
|












ELI5
With sidebar grouping turned off, Compact cards and the experimental new card style showed only a small project icon. Unless you had set a different icon on every project, two workspaces both named
mainlooked identical. The project name now sits next to that icon, in small grey lowercase text.What Changed
Before: Compact layout and Settings → Experimental → New card style showed the workspace name plus a project icon. The project name was only in a tooltip, and the default icon is the same folder for every project without a custom icon. Pinned cards showed the same icon-only chip in every layout. Detailed layout (the default) already printed the project name on the line under the workspace name.
After:
Mechanism: the shared title-row project chip (
RepoIdentityChipinworktree-card-header.tsx) now always draws the name next to the icon. Pinned and inline cards both use that chip, so they stay alike. When the chip appears is unchanged. Two comments that described the chip as icon-only were reworded.Why
People reported that with grouping off, only the workspace or branch name is shown, and that the icon only helps once you have set one up on every project. Pull request #3982 (May 2026) took the visible project name off dense cards, and #5673 (June 2026) replaced the color dot that was left with a per-project icon, which is the same folder unless customised.
Showing the name in the chip those cards already reserve for the project is the smallest fix that works in every mixed-project list. A separate "Project" card property was considered and not used: it would add a setting for something the default Detailed layout already shows automatically. The common pattern also shows a muted project label automatically, on the same line, in lists that mix projects. One intended difference: our label is capped in width so the workspace name stays readable in a narrow sidebar.
Linked Issue
Linear STA-10383. Related reports: tracked in #24304, #13828, #13937.
Visual Proof
Compact, Group by None, before:
Compact, Group by None, after:
New card style, Group by None, before:
New card style, Group by None, after:
Main vs branch screenshots from the final head are in the review status comment.
Testing
WorktreeCard.pinned-repo-icon.test.tsxchecks three cases: a pinned card shows the project name, an ungrouped Compact card shows it, and grouping by project hides it.WorktreeCard.quick-actions,WorktreeCard.host-badge-toggleandcard-propertiestests pass after the merge with main. Live QA results are in the status comment.AI Disclosure
Review
Agent skill upstream boundary
Notes
Author: @BrennanKB5
Phone parity (the phone's Compact row still shows the icon only) is a separate follow-up and not part of this PR.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)