feat: hide default branch workspace (#1249)
Co-authored-by: Orca <help@stably.ai> Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
This commit is contained in:
co-authored by
Orca
Jinwoo-H
parent
66d596fe11
commit
7edcdca699
@@ -239,6 +239,7 @@ export function getDefaultUIState(): PersistedUIState {
|
||||
groupBy: 'none',
|
||||
sortBy: 'recent',
|
||||
showActiveOnly: false,
|
||||
hideDefaultBranchWorkspace: false,
|
||||
filterRepoIds: [],
|
||||
collapsedGroups: [],
|
||||
uiZoomLevel: 0,
|
||||
|
||||
@@ -1231,6 +1231,12 @@ export type PersistedUIState = {
|
||||
groupBy: 'none' | 'repo' | 'pr-status'
|
||||
sortBy: 'name' | 'smart' | 'recent' | 'repo'
|
||||
showActiveOnly: boolean
|
||||
/** Hide the repo's original checked-out branch from workspace navigation
|
||||
* (sidebar and Cmd+J jump palette). Folder-mode repos are unaffected —
|
||||
* the predicate in visible-worktrees.ts excludes worktrees with an empty
|
||||
* branch. Lives alongside showActiveOnly because both are user-facing
|
||||
* sidebar filters reached through the same dropdown. */
|
||||
hideDefaultBranchWorkspace: boolean
|
||||
filterRepoIds: string[]
|
||||
collapsedGroups: string[]
|
||||
uiZoomLevel: number
|
||||
|
||||
Reference in New Issue
Block a user