Revert "Hide branch names behind workspace card property" (#2740)

This commit is contained in:
Neil
2026-05-23 23:04:59 -07:00
committed by GitHub
parent 28ba9151a5
commit bea744b7e4
12 changed files with 29 additions and 119 deletions
+1 -11
View File
@@ -1,9 +1,5 @@
import { describe, expect, it } from 'vitest'
import {
getDefaultPrimarySelectionMiddleClickPaste,
getDefaultSettings,
getDefaultUIState
} from './constants'
import { getDefaultPrimarySelectionMiddleClickPaste, getDefaultSettings } from './constants'
describe('getDefaultSettings', () => {
it('enables gitignored file decorations by default', () => {
@@ -40,9 +36,3 @@ describe('getDefaultPrimarySelectionMiddleClickPaste', () => {
expect(getDefaultPrimarySelectionMiddleClickPaste('win32')).toBe(false)
})
})
describe('getDefaultUIState', () => {
it('keeps branch names hidden from workspace cards by default', () => {
expect(getDefaultUIState().worktreeCardProperties).not.toContain('branch')
})
})
-3
View File
@@ -2025,9 +2025,6 @@ export type NotificationPermissionStatusResult = {
export type WorktreeCardProperty =
| 'status'
| 'unread'
// Git branch metadata shown on workspace cards. Hidden by default because
// workspace names already carry the primary identity for most lists.
| 'branch'
// Legacy persisted preference. CI status is now represented by linked PR metadata.
| 'ci'
// GitHub issue metadata shown on workspace cards.
-1
View File
@@ -18,7 +18,6 @@ export const DEFAULT_WORKTREE_CARD_PROPERTIES: WorktreeCardProperty[] = [
const WORKTREE_CARD_PROPERTY_ORDER: WorktreeCardProperty[] = [
'status',
'unread',
'branch',
'ci',
'issue',
'linear-issue',