Skip to content

fix(notifications): fix confirmation prompt, refetch after mark-all-done, and show read notifications by default#785

Merged
dlvhdr merged 3 commits intodlvhdr:mainfrom
sideshowbarker:fix/notification-bugs
Feb 27, 2026
Merged

fix(notifications): fix confirmation prompt, refetch after mark-all-done, and show read notifications by default#785
dlvhdr merged 3 commits intodlvhdr:mainfrom
sideshowbarker:fix/notification-bugs

Conversation

@sideshowbarker
Copy link
Contributor

@sideshowbarker sideshowbarker commented Feb 26, 2026

Fixes two Notifications dashboard bugs:

  • Blank “mark all as done” confirmation promptGetPromptConfirmation() had cases for PR/issue/repo actions but was missing done_all for the Notifications dashboard. The confirmation box rendered blank (though Enter still worked, since the handler had the case).

  • No refetch after “mark all as done” – After confirming, the handler cleared the UI list but returned no command, so no refetch was triggered. You had to manually press r. Now resets pagination state and calls FetchNextPageSectionRows() to reload fresh data.

…and makes one feature change:

  • Default to showing read notifications – Adds includeReadNotifications config option (default: true), so the default view shows all notifications instead of only unread, matching GitHub’s behavior. Explicit is:unread/is:read filters still override this. Set includeReadNotifications: false to restore the old behavior.

GetPromptConfirmation() had switch cases for PR, issue, and repo
actions but was missing a case for “done_all” in NotificationsView.
The prompt string stayed empty, rendering a blank confirmation box
(though Enter still worked, because the handler did have the case).
After confirming “mark all as done”, the handler cleared the UI list
but never triggered a refetch; you had to manually press “r”.
Now the ClearAllNotificationsMsg handler resets pagination state and
calls FetchNextPageSectionRows() to reload fresh data.
Add includeReadNotifications config option (default: true) so the
default notification view shows all notifications instead of only
unread ones, matching GitHub's default behavior. You can still filter
explicitly with is:unread. To restore the old behavior, set
“includeReadNotifications: false” in your config.
@dlvhdr dlvhdr merged commit 96f9a4a into dlvhdr:main Feb 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants