Repository navigation
Commit bbb8d2a
committed
feat(notifications): add mark all as done and unify bulk actions
Add a toolbar Done action for the unread notifications already loaded when
an operation starts, including notifications hidden by filters.
Background processing:
- share the loaded-notification batch processor between repository and
global Done actions, with at most three requests in flight per batch
- preserve successful removals on partial failure, retain notifications
loaded afterward, and reuse repeated in-flight global requests
- prevent global Done from overlapping other Read or Done mutations while
preserving concurrent operations on different repositories
- isolate operation counts and global request locks by authentication
session so old requests cannot block or unlock a new account
- allow notification, latest-comment, and desktop navigation during global
Done while keeping their Read and local-removal side effects guarded
Popup behavior:
- share repository and global Read/Done animation, result refresh, failure
recovery, and focus handling instead of maintaining separate bulk flows
- keep global actions disabled during conflicting operations and enable
global Done when only filtered unread notifications remain
- show toolbar loading feedback, collapse rows after the stagger finishes,
and restore incomplete items from the actual background results
- clear retained filtered-list animation markers before unlocking to avoid
leaving global actions disabled after a successful operation
- align toolbar, repository, and notification action centers; tighten the
button gaps and reduce the space between author avatars and actions
- document global Done, its loaded-notification scope, and retry behavior
Validation:
- npm run ci: syntax, lint, formatting, and all 630 tests pass
- npm run dev: prepare the Firefox development extension successfully
- npm run all: build Chrome and Firefox release packages successfully
- reproduce the closed-filter-list lock regression before the fix and
cover all four repository/global Read/Done paths with real DOM rendering
- verify pending requests, partial failures, new notification retention,
filtered-only actions, 400-800px layouts, and scrollbar alignment in a
local popup preview without changing real GitHub notifications1 parent 20df8e8 commit bbb8d2a
13 files changed
Lines changed: 854 additions & 226 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
266 | 269 | | |
267 | 270 | | |
268 | 271 | | |
| |||
568 | 571 | | |
569 | 572 | | |
570 | 573 | | |
571 | | - | |
572 | | - | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
573 | 591 | | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
588 | 595 | | |
589 | 596 | | |
590 | 597 | | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
591 | 622 | | |
592 | 623 | | |
593 | 624 | | |
| |||
598 | 629 | | |
599 | 630 | | |
600 | 631 | | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
610 | 643 | | |
611 | 644 | | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
623 | 658 | | |
624 | 659 | | |
625 | 660 | | |
| |||
628 | 663 | | |
629 | 664 | | |
630 | 665 | | |
631 | | - | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
632 | 670 | | |
633 | 671 | | |
634 | 672 | | |
635 | 673 | | |
636 | 674 | | |
637 | 675 | | |
638 | | - | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
639 | 688 | | |
640 | 689 | | |
641 | 690 | | |
| |||
644 | 693 | | |
645 | 694 | | |
646 | 695 | | |
647 | | - | |
648 | 696 | | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
| 697 | + | |
656 | 698 | | |
657 | 699 | | |
658 | 700 | | |
| |||
664 | 706 | | |
665 | 707 | | |
666 | 708 | | |
667 | | - | |
| 709 | + | |
668 | 710 | | |
669 | 711 | | |
670 | 712 | | |
| |||
723 | 765 | | |
724 | 766 | | |
725 | 767 | | |
726 | | - | |
727 | | - | |
728 | | - | |
| 768 | + | |
729 | 769 | | |
730 | | - | |
731 | 770 | | |
732 | 771 | | |
733 | 772 | | |
734 | | - | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
735 | 777 | | |
736 | 778 | | |
737 | 779 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
598 | 599 | | |
599 | 600 | | |
600 | 601 | | |
| 602 | + | |
601 | 603 | | |
602 | 604 | | |
603 | 605 | | |
604 | 606 | | |
| 607 | + | |
605 | 608 | | |
606 | 609 | | |
607 | 610 | | |
| |||
692 | 695 | | |
693 | 696 | | |
694 | 697 | | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | 698 | | |
701 | 699 | | |
702 | 700 | | |
| |||
727 | 725 | | |
728 | 726 | | |
729 | 727 | | |
730 | | - | |
731 | 728 | | |
732 | 729 | | |
733 | 730 | | |
| |||
0 commit comments