Commit eb63183
Fix branch filter showing no results due to limited fetch (#147)
## Summary
Fixes a bug where branch filter in the TUI would show "no matching jobs"
even when matching jobs existed in the database.
## Root Cause
When branch filter was active, `fetchJobs` only fetched a limited number
of recent jobs (e.g., 50). Since branch filtering is done client-side,
if none of those 50 jobs matched the filtered branch, the TUI showed 0
results.
## Fix
- Fetch all jobs (`limit=0`) when branch filter is active, matching
existing behavior for repo filter and hideAddressed modes
- Disable pagination when branch filter is active since all data is
already loaded
## Test plan
- [x] Added `TestTUINavigateDownNoLoadMoreWhenBranchFiltered` test
- [x] All existing tests pass
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent b6591c9 commit eb63183
2 files changed
+102
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
| 492 | + | |
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
502 | 505 | | |
503 | 506 | | |
504 | 507 | | |
| |||
533 | 536 | | |
534 | 537 | | |
535 | 538 | | |
536 | | - | |
| 539 | + | |
537 | 540 | | |
538 | 541 | | |
539 | 542 | | |
| |||
1759 | 1762 | | |
1760 | 1763 | | |
1761 | 1764 | | |
1762 | | - | |
1763 | | - | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
1764 | 1777 | | |
1765 | 1778 | | |
1766 | 1779 | | |
| |||
2404 | 2417 | | |
2405 | 2418 | | |
2406 | 2419 | | |
2407 | | - | |
2408 | | - | |
| 2420 | + | |
| 2421 | + | |
2409 | 2422 | | |
2410 | 2423 | | |
2411 | 2424 | | |
| |||
2417 | 2430 | | |
2418 | 2431 | | |
2419 | 2432 | | |
2420 | | - | |
2421 | 2433 | | |
2422 | 2434 | | |
2423 | 2435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7386 | 7386 | | |
7387 | 7387 | | |
7388 | 7388 | | |
| 7389 | + | |
| 7390 | + | |
| 7391 | + | |
| 7392 | + | |
| 7393 | + | |
| 7394 | + | |
| 7395 | + | |
| 7396 | + | |
| 7397 | + | |
| 7398 | + | |
| 7399 | + | |
| 7400 | + | |
| 7401 | + | |
| 7402 | + | |
| 7403 | + | |
| 7404 | + | |
| 7405 | + | |
| 7406 | + | |
| 7407 | + | |
| 7408 | + | |
| 7409 | + | |
| 7410 | + | |
| 7411 | + | |
| 7412 | + | |
| 7413 | + | |
| 7414 | + | |
| 7415 | + | |
| 7416 | + | |
| 7417 | + | |
| 7418 | + | |
| 7419 | + | |
| 7420 | + | |
| 7421 | + | |
| 7422 | + | |
| 7423 | + | |
| 7424 | + | |
| 7425 | + | |
| 7426 | + | |
| 7427 | + | |
| 7428 | + | |
| 7429 | + | |
| 7430 | + | |
| 7431 | + | |
| 7432 | + | |
| 7433 | + | |
| 7434 | + | |
| 7435 | + | |
| 7436 | + | |
| 7437 | + | |
| 7438 | + | |
| 7439 | + | |
| 7440 | + | |
| 7441 | + | |
| 7442 | + | |
| 7443 | + | |
| 7444 | + | |
| 7445 | + | |
| 7446 | + | |
| 7447 | + | |
| 7448 | + | |
| 7449 | + | |
| 7450 | + | |
| 7451 | + | |
| 7452 | + | |
| 7453 | + | |
| 7454 | + | |
| 7455 | + | |
| 7456 | + | |
| 7457 | + | |
| 7458 | + | |
| 7459 | + | |
| 7460 | + | |
| 7461 | + | |
| 7462 | + | |
| 7463 | + | |
| 7464 | + | |
| 7465 | + | |
| 7466 | + | |
| 7467 | + | |
| 7468 | + | |
| 7469 | + | |
| 7470 | + | |
| 7471 | + | |
7389 | 7472 | | |
7390 | 7473 | | |
7391 | 7474 | | |
| |||
0 commit comments