Repository navigation
Commit ef0c035
committed
refactor(web): branch toolbar, git actions and pickers derive state
The branch toolbar and pickers, git actions, open-in picker, device
panel, project content search and worktree setup derive defaults and
measure from ref callbacks. Terminal focus becomes an explicit request
that handlers make, and VCS status reads come from a revisioned atom.
Effect categories removed:
- branch toolbar label overflow and FLIP run from the strip's ref
callback and resize/mutation observers, not a per-commit measure
- picker scroll fades, search result scrolling and dialog focus moved
to ref callbacks and dialog initialFocus
- a draft's branch derived with selectEffectiveDraftBranch instead of a
default written into the draft, and no git branch mirror for drafts
- git action elapsed labels and inline success use shared clocks and
deadlines; copy timers drop their unmount cleanup
- editor.openFavorite moved from a window keydown effect to a
dispatcher capture scope
- terminal focus counter props replaced by focusTerminal requests that a
viewport consumes when it attaches or is shown
- VCS status read through a revisioned atom that records whether the
checkout is a repository, replacing the remember effect
- reconnect grace generalized to a held-for deadline
Bugs fixed:
- Opening an empty server thread no longer sends a background metadata
update just to persist a default branch.
- Closing the device panel, or a panel terminal, now focuses the
terminal the panel falls back to.
- Add-project-to-machine requests no longer leave a stale hidden request
behind for a project that is gone.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent ca5a59a commit ef0c035
27 files changed
Lines changed: 746 additions & 540 deletions
File tree
- apps/web/src
- components
- chat
- device
- search
- hooks
- lib
- state
- terminal/ghostty
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
74 | | - | |
| 78 | + | |
| 79 | + | |
75 | 80 | | |
76 | 81 | | |
77 | 82 | | |
| |||
128 | 133 | | |
129 | 134 | | |
130 | 135 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| |||
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
199 | | - | |
| 200 | + | |
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
203 | 209 | | |
204 | 210 | | |
205 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 3 | + | |
12 | 4 | | |
13 | 5 | | |
| 6 | + | |
14 | 7 | | |
15 | 8 | | |
16 | 9 | | |
| |||
32 | 25 | | |
33 | 26 | | |
34 | 27 | | |
35 | | - | |
36 | 28 | | |
37 | 29 | | |
38 | 30 | | |
| |||
51 | 43 | | |
52 | 44 | | |
53 | 45 | | |
54 | | - | |
55 | 46 | | |
56 | 47 | | |
57 | 48 | | |
| |||
121 | 112 | | |
122 | 113 | | |
123 | 114 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
134 | 126 | | |
135 | | - | |
136 | | - | |
| 127 | + | |
| 128 | + | |
137 | 129 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 130 | + | |
150 | 131 | | |
151 | 132 | | |
152 | 133 | | |
| |||
173 | 154 | | |
174 | 155 | | |
175 | 156 | | |
176 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
177 | 161 | | |
178 | 162 | | |
179 | 163 | | |
| |||
193 | 177 | | |
194 | 178 | | |
195 | 179 | | |
196 | | - | |
| 180 | + | |
197 | 181 | | |
198 | 182 | | |
199 | 183 | | |
| |||
0 commit comments