Commit 3bc8a3a
committed
Address Bugbot: custom column sort/filter/migration edge cases
- Make custom (and any extra) columns header-sortable when they carry
getSortValue — previously the header gated sortability on a hardcoded
built-in key list, so custom columns couldn't be sorted despite the wiring.
- Add extraColumnsByKey to the filteredResources deps: custom columns hydrate
in a later effect, so a reload with a URL filter on a custom key could keep
a cached result computed before those columns existed.
- removeCustomColumn now also clears any columnFilters entry and resets sort
for that key — otherwise the table keeps filtering (and syncing to the URL)
on a column that no longer exists, with no UI to clear it.
- Don't run the stale-pure-defaults migration when custom columns are
persisted — it cleared them from storage (and un-hid hidden ones).1 parent 597bbb5 commit 3bc8a3a
1 file changed
Lines changed: 21 additions & 3 deletions
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2203 | 2203 | | |
2204 | 2204 | | |
2205 | 2205 | | |
2206 | | - | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
2207 | 2209 | | |
2208 | 2210 | | |
| 2211 | + | |
2209 | 2212 | | |
2210 | 2213 | | |
2211 | 2214 | | |
| |||
2369 | 2372 | | |
2370 | 2373 | | |
2371 | 2374 | | |
2372 | | - | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
2373 | 2389 | | |
2374 | 2390 | | |
2375 | 2391 | | |
| |||
3458 | 3474 | | |
3459 | 3475 | | |
3460 | 3476 | | |
3461 | | - | |
| 3477 | + | |
3462 | 3478 | | |
3463 | 3479 | | |
3464 | 3480 | | |
| |||
4383 | 4399 | | |
4384 | 4400 | | |
4385 | 4401 | | |
| 4402 | + | |
4386 | 4403 | | |
| 4404 | + | |
4387 | 4405 | | |
4388 | 4406 | | |
4389 | 4407 | | |
| |||
0 commit comments