feat(app): polish workspace tabs and changes
Size tabs from rendered labels and switch to horizontal overflow once minimum click targets are reached, keeping the add-tab action adjacent until it must remain fixed. Make Changes an always-expanded document with an optional desktop navigation tree, keep Git actions in their platform-owned headers, remove pinned and inline split shortcuts, and place review tabs beside Changes.
This commit is contained in:
@@ -183,6 +183,7 @@ export const PanelPersistedStateSchema = z.strictObject({
|
||||
explorerTab: ExplorerTabSchema.optional(),
|
||||
explorerTabByCheckout: z.record(z.string(), ExplorerTabSchema).optional(),
|
||||
expandedPathsByWorkspace: z.record(z.string(), z.array(z.string())).optional(),
|
||||
// Accepted only so migration can discard the former per-file diff expansion state.
|
||||
diffExpandedPathsByWorkspace: z.record(z.string(), z.array(z.string())).optional(),
|
||||
diffCollapsedFoldersByWorkspace: z.record(z.string(), z.array(z.string())).optional(),
|
||||
sidebarWidth: z.number().optional(),
|
||||
@@ -290,13 +291,7 @@ export function migratePanelState(
|
||||
) {
|
||||
state.expandedPathsByWorkspace = {};
|
||||
}
|
||||
if (
|
||||
version < 10 ||
|
||||
typeof state.diffExpandedPathsByWorkspace !== "object" ||
|
||||
!state.diffExpandedPathsByWorkspace
|
||||
) {
|
||||
state.diffExpandedPathsByWorkspace = {};
|
||||
}
|
||||
delete state.diffExpandedPathsByWorkspace;
|
||||
if (
|
||||
version < 12 ||
|
||||
typeof state.diffCollapsedFoldersByWorkspace !== "object" ||
|
||||
|
||||
Reference in New Issue
Block a user