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:
Yasin Kavakli
2026-05-03 15:55:43 -07:00
committed by GitHub
co-authored by Orca Jinwoo-H
parent 66d596fe11
commit 7edcdca699
10 changed files with 444 additions and 14 deletions
+1
View File
@@ -239,6 +239,7 @@ export function getDefaultUIState(): PersistedUIState {
groupBy: 'none',
sortBy: 'recent',
showActiveOnly: false,
hideDefaultBranchWorkspace: false,
filterRepoIds: [],
collapsedGroups: [],
uiZoomLevel: 0,
+6
View File
@@ -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