Commit 6ea65f1
committed
Fix DiffPanel: preserve base ref on scope switch, fix file scroll target, filter stale refs
- Scope switch (selectGitScope) now preserves diffBaseRef when switching
to branch scope instead of clearing it via stripDiffSearchParams
- Scroll-to-file useEffect updated to query [data-title] elements (which
AnnotatableCodeView renders) instead of missing [data-diff-file-path]
- Base ref combobox now filters choices client-side by baseRefQuery text
so stale/unrelated refs are hidden during refetches1 parent e2a6588 commit 6ea65f1
1 file changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
384 | 390 | | |
385 | 391 | | |
386 | 392 | | |
| |||
436 | 442 | | |
437 | 443 | | |
438 | 444 | | |
439 | | - | |
440 | | - | |
| 445 | + | |
| 446 | + | |
441 | 447 | | |
442 | 448 | | |
443 | 449 | | |
| |||
491 | 497 | | |
492 | 498 | | |
493 | 499 | | |
| 500 | + | |
| 501 | + | |
494 | 502 | | |
495 | | - | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
496 | 509 | | |
497 | 510 | | |
498 | 511 | | |
| |||
0 commit comments