Commit ba13455
authored
🤖 refactor: remove file explorer (#3208)
Summary
Removes the right sidebar file explorer and its file viewer tab flow
wholesale. The sidebar now keeps only the remaining static tabs plus
terminal tabs, and persisted runtime layouts and saved layout presets
sanitize legacy explorer/file tabs instead of re-injecting or discarding
them.
Implementation
- Deleted Explorer/FileViewer components, tests, stories, cache, and
file-explorer utilities.
- Removed explorer/file tabs from sidebar tab types, tab
registry/labels, layout defaults, layout preset schemas, stories, CSS
theme tokens, and e2e split-layout expectations.
- Preserved legacy saved layout presets by stripping removed
explorer/file tabs during preset normalization.
- Kept a small file-read utility for immersive review's existing
file-content overlay path.
Validation
- `make static-check`
- `bun test src/common/types/uiLayouts.test.ts`
- `bun test src/browser/utils/fileRead.test.ts`
- `bun test src/browser/utils/rightSidebarLayout.test.ts`
- `bun test src/browser/contexts/WorkspaceContext.test.tsx`
- `make fmt-check`
- `make typecheck`
- `make lint`
Risks
Medium risk around persisted right-sidebar layout compatibility; legacy
explorer/file tabs are stripped at parse/normalization time and
removed-only tabsets fall back to Stats.
---
_Generated with `mux` • Model: `openai:gpt-5.5` • Thinking: `high` •
Cost: `536175{MUX_COSTS_USD:-0}`_
<!-- mux-attribution: model=openai:gpt-5.5 thinking=high costs=15.74 -->1 parent 6b361ff commit ba13455
34 files changed
Lines changed: 388 additions & 3748 deletions
File tree
- src
- browser
- contexts
- features/RightSidebar
- CodeReview
- FileViewer
- Tabs
- stories/helpers
- styles
- types
- utils
- common
- orpc/schemas
- types
- tests/e2e/scenarios
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
736 | | - | |
| 736 | + | |
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
| |||
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
762 | | - | |
| 762 | + | |
763 | 763 | | |
764 | | - | |
765 | | - | |
| 764 | + | |
| 765 | + | |
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
| |||
Lines changed: 2 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
| |||
128 | 126 | | |
129 | 127 | | |
130 | 128 | | |
131 | | - | |
132 | 129 | | |
133 | 130 | | |
134 | 131 | | |
| |||
192 | 189 | | |
193 | 190 | | |
194 | 191 | | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | 192 | | |
204 | 193 | | |
205 | 194 | | |
| |||
337 | 326 | | |
338 | 327 | | |
339 | 328 | | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
| 329 | + | |
355 | 330 | | |
356 | | - | |
| 331 | + | |
357 | 332 | | |
358 | 333 | | |
359 | 334 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | 110 | | |
113 | 111 | | |
114 | 112 | | |
| |||
344 | 342 | | |
345 | 343 | | |
346 | 344 | | |
347 | | - | |
348 | 345 | | |
349 | 346 | | |
350 | 347 | | |
| |||
1733 | 1730 | | |
1734 | 1731 | | |
1735 | 1732 | | |
1736 | | - | |
1737 | 1733 | | |
1738 | 1734 | | |
1739 | 1735 | | |
| |||
This file was deleted.
0 commit comments