mirror of
https://github.com/stablyai/orca.git
synced 2026-10-16 16:03:26 +00:00
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user