Skip to content

feat(sidebar): option to show the project name on workspace cards - #50066

Open
nanstey wants to merge 6 commits into
stablyai:mainfrom
nanstey:feat/card-project-name-option
Open

nanstey wants to merge 6 commits into
stablyai:mainfrom
nanstey:feat/card-project-name-option

Conversation

@nanstey

@nanstey nanstey commented Nov 26, 2026 •

Copy link
Copy Markdown

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.

Menu Cards
Classic Off menu-project-name-first-classic cards-classic-project-name-off
Classic On menu-classic-project-name-on cards-classic-project-name-on
Experimental Off menu-project-name-first cards-experimental-project-name-off
Experimental On menu-experimental-project-name-on cards-experimental-project-name-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.

Light Dark
mobile-cards-light mobile-cards-dark

Testing

  • timeout 900 pnpm check:changed --base=HEAD passed (41 checks).
  • 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)

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

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.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review
Walkthrough

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed 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 Passed 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.

Share

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ba95a11a-84b5-422c-aac2-3fc12359dd3a
Commits

Reviewing files that changed from the base of the PR and between dff9da6 and f58d873.

Files selected for processing: 12

  • mobile/src/host-screen/workspace-options/workspace-option-controls-copy.ts
  • mobile/src/i18n/locales/en.json
  • src/renderer/src/components/sidebar/workspace-card/identity/worktree-card-header-items.tsx
  • src/renderer/src/components/sidebar/workspace-card/template/build-workspace-card-facts.ts
  • src/renderer/src/components/sidebar/workspace-card/template/card-identity-parts.tsx
  • src/renderer/src/components/sidebar/workspace-card/template/default-workspace-card.json
  • src/renderer/src/components/sidebar/worktree-list/controls/sidebar-workspace-option-items.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/ui-chrome/ui-chrome-types.ts
  • src/shared/workspace-cards/workspace-card-facts.ts
  • src/shared/workspace-view/workspace-view-options.ts
  • src/shared/worktree/row-display/card-properties.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ed3804e2-d599-4531-bba9-2ed8995acfd6
Commits

Reviewing files that changed from the base of the PR and between f58d873 and 6513676.

Files selected for processing: 4

  • mobile/src/worktree/row-presentation/WorktreeListRow.tsx
  • mobile/src/worktree/row-presentation/worktree-list-row-styles.ts
  • src/renderer/src/components/sidebar/workspace-card/identity/worktree-card-header-items.tsx
  • src/shared/worktree/row-display/card-properties.ts
Files skipped from review as they are similar to previous changes: 1

  • src/renderer/src/components/sidebar/workspace-card/identity/worktree-card-header-items.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@nanstey
nanstey marked this pull request as draft November 26, 2026 22:42
@nanstey
nanstey marked this pull request as ready for review November 26, 2026 22:42
onegaop added a commit to onegaop/orca that referenced this pull request Nov 27, 2026
@nanstey
nanstey marked this pull request as draft November 27, 2026 17:58
@nanstey
nanstey marked this pull request as ready for review November 27, 2026 18:03
@nanstey
nanstey marked this pull request as draft November 27, 2026 18:03
@nanstey
nanstey force-pushed the feat/card-project-name-option branch from ef138dc to 61fc548 Compare November 27, 2026 18:04
@nanstey
nanstey marked this pull request as ready for review November 27, 2026 18:04
@nanstey
nanstey marked this pull request as draft December 1, 2026 17:47
@nanstey
nanstey force-pushed the feat/card-project-name-option branch from 61fc548 to fdae645 Compare December 1, 2026 18:13
@nanstey
nanstey marked this pull request as ready for review December 1, 2026 18:17

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted (2)

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d6db4538-6729-4d60-b663-3cfb4cf2129f
Commits

Reviewing files that changed from the base of the PR and between 61fc548 and fdae645.

Files selected for processing: 5

  • mobile/src/host-screen/workspace-list/host-workspace-list.tsx
  • mobile/src/i18n/locales/en.json
  • src/renderer/src/components/sidebar/workspace-card/template/card-identity-parts.tsx
  • src/renderer/src/components/sidebar/workspace-card/template/default-workspace-card.json
  • src/renderer/src/i18n/locales/en.json
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.

@nanstey

nanstey commented Dec 1, 2026

Copy link
Copy Markdown
Author

Related: this is being tracked in a central discussion about bringing the Project Name back on workspace cards as an optional property: #54241

…hip on compact folder rows

Addresses CodeRabbit threads PRRT_kwDORpCz1s6-N_7X, PRRT_kwDORpCz1s6-N_7b

This branch has not been deployed

No deployments
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.

[Feature]: Show the project name on sidebar workspace cards again

1 participant