Skip to content

Commit 337f620

Browse files
committed
Refactor: Split up the two biggest files
- Tab operations (363 lines) → tab-operations.ts - Rename flow (274 lines) → rename-flow.svelte.ts - DualPaneExplorer: 2514 → 2284 lines - FilePane: 1887 → 1667 lines
1 parent 9f623c2 commit 337f620

6 files changed

Lines changed: 741 additions & 550 deletions

File tree

apps/desktop/coverage-allowlist.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
"file-explorer/pane/FilePane.svelte": { "reason": "Tested in integration.test.ts, complex component" },
3333
"file-explorer/pane/MtpConnectionView.svelte": { "reason": "MTP connection UI, depends on Tauri APIs" },
3434
"file-explorer/pane/NetworkMountView.svelte": { "reason": "Network mount UI, depends on Tauri APIs" },
35+
"file-explorer/pane/rename-flow.svelte.ts": {
36+
"reason": "Extracted from FilePane, depends on Tauri commands and rename operations"
37+
},
3538
"file-explorer/pane/selection-state.svelte.ts": {
3639
"reason": "Reactive selection state, tested via FilePane integration"
3740
},
@@ -166,6 +169,9 @@
166169
"file-explorer/tabs/TabBar.svelte": {
167170
"reason": "UI component, tab interactions tested via DualPaneExplorer integration"
168171
},
172+
"file-explorer/pane/tab-operations.ts": {
173+
"reason": "Extracted from DualPaneExplorer, depends on Tauri commands and confirmDialog"
174+
},
169175
"tauri-commands/tab.ts": {
170176
"reason": "Tauri command wrappers, tested via integration"
171177
}

apps/desktop/src/lib/file-explorer/CLAUDE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ Core explorer UI components:
116116
- **PaneResizer.svelte** — Drag handle between the two panes
117117
- **PermissionDeniedPane.svelte** — Shown when a directory can't be read
118118
- **selection-state.svelte.ts** — Reactive selection set (indices) with range/toggle helpers
119-
- **sorting-handlers.ts** / **transfer-operations.ts** — Pure logic extracted from DualPaneExplorer
119+
- **sorting-handlers.ts** / **transfer-operations.ts** / **tab-operations.ts** — Pure logic extracted from DualPaneExplorer
120+
- **rename-flow.svelte.ts** — Rename flow logic (validation, conflict/extension dialogs) extracted from FilePane
120121

121122
## Tabs (`tabs/`)
122123

0 commit comments

Comments
 (0)