Document folder identity gating

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
brennanb2025
2026-06-23 15:09:13 -07:00
co-authored by Orca
parent 9d13a7441a
commit 2b74ee3273
2 changed files with 4 additions and 0 deletions
@@ -362,6 +362,8 @@ const WorktreeCard = React.memo(function WorktreeCard({
const folderWorkspaceId =
workspaceScope?.type === 'folder' ? workspaceScope.folderWorkspaceId : null
const isFolder = repo ? isFolderRepo(repo) : folderWorkspaceId !== null
// Why: project groups are the product gate for folder workspaces, so folder
// paths stay hidden from identity surfaces until that capability exists.
const hasProjectGroups = projectGroups.length > 0
const branchIdentityDisplay = !isFolder && branch.length > 0 ? branch : undefined
const folderPathIdentityDisplay =
@@ -172,6 +172,8 @@ export function getWorktreeCardPropertyOptions({
id: 'branch',
properties: ['branch'],
get label() {
// Why: new-card project groups can contain folder workspaces, so the
// branch setting copy must describe both repo and folder identity.
return newCardStyle && hasProjectGroups
? translate(
'auto.components.sidebar.SidebarWorkspaceOptionsMenu.folderPathIdentity',