You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(sidebar): option to show the project name on workspace cards - #50066
Project names were hidden completely from workspace cards in #44653
Add a setting to show/hide the project's name.
What Changed
Added an optional “Project name” card property (off by default) for desktop and phone workspace options. When on, the name sits inside the project badge as the same bordered chip used before v1.4.277 (badge flush to the chip's left edge, capped at 96px). It follows existing badge visibility rules, including the compact agent line.
Why
The project-name chip was replaced by an icon/letters badge in v1.4.277. This option restores the display name for users who want it.
Rendered in an isolated component fixture (light theme), not the full running app. "Off" is the default.
Menu
Cards
Classic Off
Classic On
Experimental Off
Experimental On
Mobile
The phone workspace row, rendered through react-native-web in a throwaway harness (not on a device or the real app). Row icons are not drawn in this harness, so the chips show the name only. Cases: Classic and Compact cards with Project name off/on, and a pinned folder workspace in Compact with it on.
Reviewer executed compiled card template across 96 combinations; ProjectName renders exactly when enabled and the badge renders.
Card rendered in an isolated component fixture in both card styles. Not verified in the full running app.
Mobile rows rendered in a react-native-web harness (see Mobile above). Not verified on a device.
Manual steps: desktop, Workspace options → Card properties → Project name on, check Classic, Compact and Pinned cards. Phone, Workspace options → Project name on, check the same.
Performance
None, because the display is an optional card property.
Risk
Level: Low. The property is off by default. Revert this PR to remove it.
Review
Cross-platform, SSH/remote, mobile, integration compatibility, performance, UI quality, and security were considered. The change only adds a card display option; visual behavior was checked only in an isolated card fixture, not the full running app.
Agent skill upstream boundary
Not applicable.
Notes
No platform-specific or remote-host behavior was added.
Checklist
This PR is small and focused
I explained what changed and why
Before/after screenshots attached
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (on Node 24: lint, typecheck and build pass; pnpm test passes except 3 tests in bash-prompt-command-composition.test.ts, which fail on this machine's bash 5.3.9 and touch no file in this PR)
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
Adds a Project name choice to workspace-card property and display options. When selected, card options enable projectName, and renderer repository chips receive that setting. The renderer and mobile chips display the repository name beside its mark when enabled. On mobile, pinned worktrees retain a visible repository label in the specified grouping condition. English labels are added to renderer and mobile option menus.
Severity of issue fixed: Medium
Merge Risk: Moderate · up to fdae6
Folder workspaces lose their project chip in compact and new card styles on desktop, and a likely test failure goes with it. Pinned folder workspaces on mobile can show no project name when the option is on. Fix the folder chip condition before merging.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "feat(sidebar): option to show the project name on workspace cards" matches the main change. The PR adds an optional, off-by-default "Project name" card property that shows the project name …
Linked Issues check
Issue #49657 asks that project names be readable on workspace cards, including pinned cards, without hover or click. It accepts restoring the name by default or adding an option that shows it. This PR…
Out of Scope Changes check
Every changed file serves the 'project-name' card option. The changes cover the shared type and constants, card facts and template wiring, the repo chip rendering, desktop and mobile property menu lab…
Description check
The description follows the repository template closely. It covers ELI5, What Changed, Why, Linked Issue (Fixes #49657), Visual Proof with before/after images for desktop and mobile, Testing, Performa…
Full details: Title check
Explanation
The title "feat(sidebar): option to show the project name on workspace cards" matches the main change. The PR adds an optional, off-by-default "Project name" card property that shows the project name on sidebar workspace cards and mobile workspace rows. The title is specific, short, and in a conventional commit format. It does not claim the change is default-on, and it does not mention the mobile scope, which is a minor omission.
Full details: Linked Issues check
Explanation
Issue #49657 asks that project names be readable on workspace cards, including pinned cards, without hover or click. It accepts restoring the name by default or adding an option that shows it. This PR uses the option approach, with 'project-name' off by default.
Evidence at head (whole-PR diff from merge base 3952fe6):
src/shared/shared types and card-properties.ts add 'project-name' and WorktreeCardDetails.projectName. build-workspace-card-facts.ts sets show.projectName from the card properties.
default-workspace-card.json passes options.show.projectName as showName to both RepoChip instances. card-identity-parts.tsx forwards showName. worktree-card-header-items.tsx renders the repo name when showName is true.
Pinned desktop cards: the pinnedRepo var is 'place.inPinnedSection && repo != null && !place.showProjectName'. The chip shows in the Pinned section unless place.showProjectName is set. When the option is on, the chip therefore renders with its name in pinned cards. This resolves the open question from the previous review.
Mobile: WorktreeListRow.tsx and worktree-list-row-styles.ts render a named repo chip when cardDetails.projectName is true. host-workspace-list.tsx no longer hides the repo name for pinned rows when projectName is on.
Not established: the running app was not checked. The fixture renders in the PR description are not evidence of runtime behavior. Non-coding checks (manual verification, CI status, local bash test failures) are not assessed.
Full details: Out of Scope Changes check
Explanation
Every changed file serves the 'project-name' card option. The changes cover the shared type and constants, card facts and template wiring, the repo chip rendering, desktop and mobile property menu labels, the mobile named-chip styles and row rendering, the mobile pinned-row repo label, and English locale strings.
One change needs note. In default-workspace-card.json, inlineRepo now permits the repo chip for folder workspaces when the style is classic. This applies whether or not 'project-name' is enabled, so classic folder cards may show a repo chip by default. The PR description does not mention this. It is closely tied to the card identity display, so it does not show unrelated work. A reviewer should confirm that this default visual change is intended.
Full details: Description check
Explanation
The description follows the repository template closely. It covers ELI5, What Changed, Why, Linked Issue (Fixes #49657), Visual Proof with before/after images for desktop and mobile, Testing, Performance, Risk with level, Review, and the checklist. The author discloses that visuals come from an isolated fixture and not the full running app, and that three bash tests fail on the author's machine. The AI Disclosure section was left blank, which the template says is for internal contributors to skip, so that is acceptable here. Minor gaps: the Testing checklist items ('I manually tested', 'Automated tests added/updated', and the test anti-pattern item) are unchecked, and the Risk section does not explicitly name the riskiest part. Neither gap is critical.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Files skipped from review as they are similar to previous changes: 2
mobile/src/i18n/locales/en.json
src/renderer/src/i18n/locales/en.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
…hip on compact folder rows
Addresses CodeRabbit threads PRRT_kwDORpCz1s6-N_7X, PRRT_kwDORpCz1s6-N_7b
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
Project names were hidden completely from workspace cards in #44653
Add a setting to show/hide the project's name.
What Changed
Added an optional “Project name” card property (off by default) for desktop and phone workspace options. When on, the name sits inside the project badge as the same bordered chip used before v1.4.277 (badge flush to the chip's left edge, capped at 96px). It follows existing badge visibility rules, including the compact agent line.
Why
The project-name chip was replaced by an icon/letters badge in v1.4.277. This option restores the display name for users who want it.
Linked Issue
Fixes #49657
Visual Proof
Rendered in an isolated component fixture (light theme), not the full running app. "Off" is the default.
Mobile
The phone workspace row, rendered through
react-native-webin a throwaway harness (not on a device or the real app). Row icons are not drawn in this harness, so the chips show the name only. Cases: Classic and Compact cards with Project name off/on, and a pinned folder workspace in Compact with it on.Testing
timeout 900 pnpm check:changed --base=HEADpassed (41 checks).react-native-webharness (see Mobile above). Not verified on a device.Performance
None, because the display is an optional card property.
Risk
Level: Low. The property is off by default. Revert this PR to remove it.
Review
Cross-platform, SSH/remote, mobile, integration compatibility, performance, UI quality, and security were considered. The change only adds a card display option; visual behavior was checked only in an isolated card fixture, not the full running app.
Agent skill upstream boundary
Notes
No platform-specific or remote-host behavior was added.
Checklist
pnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (on Node 24: lint, typecheck and build pass;pnpm testpasses except 3 tests inbash-prompt-command-composition.test.ts, which fail on this machine's bash 5.3.9 and touch no file in this PR)