Commit ddd62af
feat(issue-list): add --period flag, pagination progress, and count abbreviation (#289)
## Summary
Three UX improvements to `sentry issue list` following the
auto-pagination work in #274:
- **Fix implicit time filtering** — add `--period` / `-t` flag (default
`90d`) so the CLI matches the UI's default time window instead of the
Sentry API's implicit 14d cutoff, which was causing the count
discrepancy (e.g. 114 vs 240 issues)
- **Pagination progress spinner** — animated braille spinner on stderr
while fetching multiple pages (`Fetching issues... 200/500`); reuses
`withProgress<T>()` in `polling.ts` so the animation is consistent with
`sentry issue explain`
- **Fix COUNT column layout shift** — abbreviate event counts ≥10k with
K/M/B/T/P/E suffixes (`12.3K`, `150K`, `1.5M`) so the column stays
exactly 5 chars wide and never overflows
## Details
- `--period` alias is `-t` (time period), not `-p` (avoids confusion
with `--platform` in other commands)
- `onPage` callback added to `listIssuesAllPages` for per-page progress
hooks
- Animation interval changed from 80ms to 50ms (20fps / 500ms full
braille cycle), matching the ora/inquirer standard — applies to Seer
commands too
- Decimal shown only when `scaled < 100` (e.g. `12.3K` and `1.5M` but
not `100.0M`)
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 9d95888 commit ddd62af
File tree
6 files changed
+218
-37
lines changed- plugins/sentry-cli/skills/sentry-cli
- src
- commands/issue
- lib
- formatters
6 files changed
+218
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| |||
594 | 595 | | |
595 | 596 | | |
596 | 597 | | |
| 598 | + | |
597 | 599 | | |
598 | 600 | | |
599 | 601 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
391 | 393 | | |
392 | 394 | | |
393 | 395 | | |
394 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
395 | 403 | | |
396 | 404 | | |
397 | 405 | | |
| |||
423 | 431 | | |
424 | 432 | | |
425 | 433 | | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
426 | 437 | | |
427 | 438 | | |
428 | 439 | | |
| |||
434 | 445 | | |
435 | 446 | | |
436 | 447 | | |
437 | | - | |
438 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
439 | 451 | | |
440 | 452 | | |
441 | 453 | | |
| |||
445 | 457 | | |
446 | 458 | | |
447 | 459 | | |
| 460 | + | |
448 | 461 | | |
449 | 462 | | |
450 | 463 | | |
| |||
454 | 467 | | |
455 | 468 | | |
456 | 469 | | |
| 470 | + | |
| 471 | + | |
457 | 472 | | |
458 | 473 | | |
459 | 474 | | |
460 | 475 | | |
461 | 476 | | |
462 | 477 | | |
463 | 478 | | |
| 479 | + | |
464 | 480 | | |
465 | 481 | | |
466 | 482 | | |
| |||
473 | 489 | | |
474 | 490 | | |
475 | 491 | | |
476 | | - | |
| 492 | + | |
477 | 493 | | |
478 | 494 | | |
479 | 495 | | |
480 | 496 | | |
481 | | - | |
| 497 | + | |
| 498 | + | |
482 | 499 | | |
483 | 500 | | |
484 | 501 | | |
485 | 502 | | |
486 | | - | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
487 | 510 | | |
488 | 511 | | |
489 | 512 | | |
| |||
574 | 597 | | |
575 | 598 | | |
576 | 599 | | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
585 | 625 | | |
586 | 626 | | |
587 | 627 | | |
| |||
715 | 755 | | |
716 | 756 | | |
717 | 757 | | |
718 | | - | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
719 | 761 | | |
720 | 762 | | |
721 | 763 | | |
| |||
733 | 775 | | |
734 | 776 | | |
735 | 777 | | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
736 | 784 | | |
737 | 785 | | |
738 | 786 | | |
| |||
757 | 805 | | |
758 | 806 | | |
759 | 807 | | |
760 | | - | |
| 808 | + | |
761 | 809 | | |
762 | 810 | | |
763 | 811 | | |
| |||
799 | 847 | | |
800 | 848 | | |
801 | 849 | | |
| 850 | + | |
802 | 851 | | |
803 | 852 | | |
804 | 853 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1071 | 1071 | | |
1072 | 1072 | | |
1073 | 1073 | | |
| 1074 | + | |
| 1075 | + | |
1074 | 1076 | | |
1075 | 1077 | | |
1076 | 1078 | | |
| |||
1095 | 1097 | | |
1096 | 1098 | | |
1097 | 1099 | | |
| 1100 | + | |
1098 | 1101 | | |
1099 | 1102 | | |
1100 | 1103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
313 | 315 | | |
314 | 316 | | |
315 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
316 | 364 | | |
317 | 365 | | |
318 | 366 | | |
| |||
582 | 630 | | |
583 | 631 | | |
584 | 632 | | |
585 | | - | |
| 633 | + | |
586 | 634 | | |
587 | 635 | | |
588 | 636 | | |
| |||
0 commit comments