Revert "Hide branch names behind workspace card property" (#2740)
This commit is contained in:
@@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -18,7 +18,6 @@ export const DEFAULT_WORKTREE_CARD_PROPERTIES: WorktreeCardProperty[] = [
|
||||
const WORKTREE_CARD_PROPERTY_ORDER: WorktreeCardProperty[] = [
|
||||
'status',
|
||||
'unread',
|
||||
'branch',
|
||||
'ci',
|
||||
'issue',
|
||||
'linear-issue',
|
||||
|
||||
Reference in New Issue
Block a user