Skip to content

Commit 3ecfae5

Browse files
committed
refactor: replace task-specific panel store with centralized layout store
- Create centralized panelLayoutStore managing layouts for multiple tasks - Add comprehensive unit tests - Extract panel manipulation logic into helpers - Add constants for default panel IDs and sizes - Enhance panelTree utilities for tree manipulation
1 parent a907b24 commit 3ecfae5

File tree

9 files changed

+1698
-2
lines changed

9 files changed

+1698
-2
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
export const PANEL_SIZES = {
2+
MIN_PANEL_SIZE: 15,
3+
DEFAULT_SPLIT: [70, 30] as const,
4+
EVEN_SPLIT: [50, 50] as const,
5+
SIZE_DIFF_THRESHOLD: 0.1,
6+
} as const;
7+
8+
export const UI_SIZES = {
9+
TAB_HEIGHT: 40,
10+
TAB_LABEL_MAX_WIDTH: 200,
11+
DROP_ZONE_SIZE: "20%",
12+
} as const;
13+
14+
export const DEFAULT_PANEL_IDS = {
15+
ROOT: "root",
16+
MAIN_PANEL: "main-panel",
17+
RIGHT_GROUP: "right-group",
18+
DETAILS_PANEL: "details-panel",
19+
FILES_PANEL: "files-panel",
20+
} as const;
21+
22+
export const DEFAULT_TAB_IDS = {
23+
LOGS: "logs",
24+
SHELL: "shell",
25+
DETAILS: "details",
26+
FILES: "files",
27+
} as const;

0 commit comments

Comments
 (0)