Commit bc4c426
Show locally-added rows in the comparison changed-rows view
The "changed rows only" filter (TableDataWithDiff.getKeepFunc) kept updated
rows, removed rows, and synthetic rows, but not locally-added rows. A
locally-added row is a real row in the core table, present only in the delta's
addRows, so it was filtered out and never shown as a local-add.
It rendered before only when an added row also happened to appear in updateRows,
which made the existing comparison test flaky. Keep leftTableDelta.addRows in the
filter, alongside updates and removals.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent a16a428 commit bc4c426
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
253 | 256 | | |
254 | 257 | | |
255 | 258 | | |
| |||
268 | 271 | | |
269 | 272 | | |
270 | 273 | | |
| 274 | + | |
271 | 275 | | |
272 | 276 | | |
273 | 277 | | |
| |||
309 | 313 | | |
310 | 314 | | |
311 | 315 | | |
| 316 | + | |
312 | 317 | | |
313 | 318 | | |
314 | 319 | | |
| |||
0 commit comments