Repository navigation
Commit f109eed
refactor(web): drop the redundant diff stat wrapper and comment-file ref
DiffStatLabel is already memoized on its two numbers, so the
DiffFileHeaderStat wrapper added nothing. beginComment now reads the
file diff and path from the viewer item it is handed, which removes the
filesByKey ref and its layout effect while keeping the callback stable.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent f71ec89 commit f109eed
2 files changed
Lines changed: 7 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | 189 | | |
195 | 190 | | |
196 | 191 | | |
| |||
1175 | 1170 | | |
1176 | 1171 | | |
1177 | 1172 | | |
1178 | | - | |
| 1173 | + | |
1179 | 1174 | | |
1180 | 1175 | | |
1181 | 1176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 11 | + | |
20 | 12 | | |
21 | 13 | | |
22 | | - | |
| 14 | + | |
23 | 15 | | |
24 | 16 | | |
25 | 17 | | |
| |||
140 | 132 | | |
141 | 133 | | |
142 | 134 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | 135 | | |
148 | 136 | | |
149 | 137 | | |
| |||
229 | 217 | | |
230 | 218 | | |
231 | 219 | | |
232 | | - | |
233 | | - | |
| 220 | + | |
| 221 | + | |
234 | 222 | | |
235 | 223 | | |
236 | 224 | | |
237 | 225 | | |
238 | 226 | | |
239 | | - | |
240 | | - | |
| 227 | + | |
| 228 | + | |
241 | 229 | | |
242 | 230 | | |
243 | 231 | | |
| |||
0 commit comments