Repository navigation
Keep project names short and show their machine - #28250
Conversation
Only add parent path segments when project names collide on the same host. Reuse execution host normalization and keep existing label-map keys and path disambiguation rules unchanged. Co-authored-by: KAPUIST <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to
|
Show quiet inline host icons and names on host-owned project headers in mixed-host sidebars. Reuse the host registry and omit redundant context under host sections or on logical projects spanning multiple hosts. Co-authored-by: KAPUIST <[email protected]>
Keep the host label at its bounded width so long project names cannot shrink it below the host icon. Co-authored-by: KAPUIST <[email protected]>
Keep full project and host names readable without splitting words in the header tooltip. Co-authored-by: KAPUIST <[email protected]>
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:
820d0057-1d6d-4079-857f-a1fdb74f111c
📒 Files selected for processing: 9
src/renderer/src/components/sidebar/worktree-list-groups-host-name-collisions.test.tssrc/renderer/src/components/sidebar/worktree-list/rows/ProjectHeaderHostLabel.tsxsrc/renderer/src/components/sidebar/worktree-list/rows/SectionHeader.tsxsrc/renderer/src/components/sidebar/worktree-list/rows/project-header-host-context.test.tssrc/renderer/src/components/sidebar/worktree-list/rows/project-header-host-context.tssrc/renderer/src/components/sidebar/worktree-list/viewport/VirtualizedWorktreeViewport.tsxsrc/renderer/src/components/sidebar/worktree-list/viewport/virtual-row-context.tssrc/shared/repo-display-labels.test.tssrc/shared/repo-display-labels.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
Reuse listing host options without reading the selected host, keep authoritative host aliases, and preserve child action tooltips. Update cross-host parity expectations for host-local project names. Co-authored-by: KAPUIST <[email protected]>
Reuse the row plan membership before collapse so hidden checkouts do not add redundant host labels to a filtered sidebar. Keep full project ownership when deciding whether a header can claim one host. Co-authored-by: KAPUIST <[email protected]>
ELI5
Projects called
appon different computers keep their short names. In a view containing multiple machines, a small machine icon and name sit beside each project header, including when its workspaces are collapsed.What Changed
The name generator distinguishes same-name projects within each execution host, so a project on another computer cannot make a short name expand to a full path.
Project headers now show a plain host icon and name using the existing machine identities and user-defined labels. The label stays visible when workspace cards are compact or their host property is hidden. Ordinary single-host sidebars and explicit host sections avoid repeated machine labels. A logical project spanning multiple machines never claims a single machine owns all its workspaces.
The header keeps the existing folder/project icon, aligns its contents, and reserves space for hover actions so they cannot cover host text. Long labels truncate, with full context available from the existing tooltip behavior.
Why
A machine icon alone cannot distinguish two remote Macs. Icon plus name supplies that context while keeping the project name readable, and follows the existing run-target picker style. Keeping this display change in the sidebar reuses existing machine identities and avoids changing the remote protocol.
Thanks to @KAPUIST for the community diagnosis and regression cases; their existing co-author credit is preserved.
Linked Issue
Fixes #27700
Visual Proof
These are actual sidebar captures from a hidden macOS Electron renderer, using identical seeded data and Orca’s standard gray folder icon. Before is the integrated PR before the header follow-up; it already has short
appnames, but collapsed headers have no visible machine identity. After implements approved design A.The label also remains when expanded, with compact cards, or when the workspace-card host property is hidden. Workspace-card badges retain their existing appearance.
Narrow sidebar, 234px: long project and machine names truncate while the hover actions keep their own space. The tooltip exposes the full text and machine detail.
Keyboard focus: the focused header exposes the same full project and machine label.
Captured from commit
10d677a0202247c0a67f34999691dc6b62aa3285; the before state substitutes only the nine header-follow-up product modules from integrated baseline32cb22073768f211448db6f9f60a622327011211. This is seeded UI evidence, not a live remote connection. Native windows remained hidden and unfocused.Filtered project review follow-up
A shared project has local and Home checkouts. After filtering out Home, every listed checkout is local. The old version still showed unnecessary
Local Macmetadata besideLocal tools; the fix removes it. Global ownership remains intact, soShared appdoes not claim a single machine owns it.10d677a)117c4d7)Clearing the filter restores the Home checkout and useful machine context:
These captures use the actual production sidebar and its repository and host filters. Twelve hidden Electron states passed: repository-filtered, local-host-scoped, and unfiltered views, each expanded and collapsed, before and after. Data is seeded; live remote transport was not exercised.
Testing
10d677a: 141 focused desktop/shared tests across 18 files passed: host names, aliases, logical project ownership, empty folders, same-host path disambiguation, host sections, header actions, drag behavior and sticky headers.10d677a: 55 mobile tests across two files passed, including explicit desktop-parity and older-feed fallback expectations.117c4d7: 92 focused tests across eight files passed, including populated/empty, expanded/collapsed, repository and host filters, aliases, and unfiltered positive controls.117c4d7bfaa45e4e7bcdfd5bcd79df12bd51a8c0.pnpm tc:web, changed-code quality (zero findings), lint/format and commit hooks passed.CI is green on final commit
117c4d7bfaa45e4e7bcdfd5bcd79df12bd51a8c0: 19 successful checks, 18 skipped by workflow selection, zero failed or pending. Static analysis/typecheck, all five unit-test shards, mobile verification/web bundle, relay checks, macOS/Windows packaging, WSL and evidence aggregators pass. E2E and layout-oracle were skipped by policy and were not executed. No retries were needed. The latest bot review covers this commit with zero actionable findings; the filtered-project review thread is resolved. This PR remains open for review.Review
Root and independent source reviews found no remaining correctness blocker. Actual 240px rendering exposed host text over-shrinking behind a long project name; retaining its bounded width fixes that case. The existing folder icon remains, and project/host icons and text use the same vertical alignment.
A logical project spanning multiple machines receives no misleading single-machine label. The sidebar uses its existing filtered section membership to decide whether more than one machine is visible, including while collapsed. Filtering out a remote checkout therefore removes unnecessary machine labels from the remaining local projects. Global project ownership stays separate, so a shared project never acquires a misleading single-machine label. Existing identical custom machine names remain identical, with host detail available in the tooltip; this PR does not introduce a new app-wide naming policy.
Keyboard focus and pointer hover expose the full header identity. Regression tests cover nested action focus, hover, pending tooltip cancellation, and returning to project text. Existing listing host options supply the labels without adding a selected-server read; authoritative host aliases are preserved.
This PR remains open for review.
Agent skill upstream boundary
Notes
Extra host metadata uses some horizontal space in mixed-host project views. Long names can truncate; the full label remains available. Existing same-host path disambiguation remains in effect. This PR does not change host execution, status ownership, persistence, Git commands, provider support, or remote wire contracts.
Checklist