Commit 19d5b07
committed
Git browser: M4 polish
- Add **Settings > General > Git** section (`GitSection.svelte`) with three live toggles for repo chip, status column, and virtual portal. Refresh the helper text per the M4 spec; the existing chip/column descriptions get clearer wording too.
- Wire `fileExplorer.git.showVirtualGitPortal` end-to-end: new Tauri command `set_show_virtual_git_portal` flips a process-global `AtomicBool` consulted on every git volume hook, so toggling makes `cd .git` switch instantly between virtual portal and raw on-disk listing. Seeded at startup from `Settings::show_virtual_git_portal`.
- Plumb `FriendlyGitError` end-to-end. Three new variants (`ShallowBoundary`, `MissingObject`, `GitDirPermissionDenied`) plus the existing seven each map to the right `ErrorCategory` and carry warm copy. New `to_friendly_error()` builds a `volume::FriendlyError`; `encode_for_volume_error()` + `try_decode_git_friendly()` carry the structured payload through `VolumeError::IoError` so the streaming pipeline rebuilds it on the way out, and `ErrorPane` renders it directly.
- Extend the existing `error_messages_never_contain_error_or_failed` rule to every git variant.
- Add a Playwright spec (`git-portal.spec.ts`) that synthesizes a tiny git repo at test time and exercises the four key scenarios from the plan: `.git` shows virtual entries, `branches/main/` browses tree at HEAD, history-pane file preserves executable bit on disk, and toggling the portal off reveals raw `.git` contents.
- Refactor `settings-applier.ts` to keep the cyclomatic complexity under the 15 cap by table-driving the passthrough handlers.
- Update `CHANGELOG.md`: replace the M1-M3 stubs with a single user-facing block under `[Unreleased]` describing the five new things users can do.
- Update every git-touching `CLAUDE.md` (`file_system/git/`, `file_system/volume/`, `file-explorer/git/`) and mark the git module complete in `docs/architecture.md`.
`./scripts/check.sh` clean (Rust + Svelte + scripts + website + API). 1545 Svelte tests + 1465 Rust unit tests + 26 Rust integration tests pass; the new portal-toggle test and friendly-error sentinel round-trip test pass too.1 parent 1ebcfa1 commit 19d5b07
20 files changed
Lines changed: 892 additions & 198 deletions
File tree
- apps/desktop
- src-tauri/src
- commands
- file_system
- git
- volume
- settings
- src/lib
- file-explorer/git
- settings
- components
- sections
- tauri-commands
- test/e2e-playwright
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
111 | 120 | | |
112 | 121 | | |
113 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
30 | | - | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| |||
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
113 | 143 | | |
114 | 144 | | |
115 | 145 | | |
| |||
0 commit comments