Skip to content

feat: enhance notification handling with scoped actions#36

Merged
matt1398 merged 1 commit intomainfrom
feat/noti-tab-scope
Feb 20, 2026
Merged

feat: enhance notification handling with scoped actions#36
matt1398 merged 1 commit intomainfrom
feat/noti-tab-scope

Conversation

@matt1398
Copy link
Owner

  • Updated markAllNotificationsRead and clearNotifications functions to support optional filtering by trigger name, allowing for more granular control over notification management.
  • Adjusted the NotificationsView component to reflect the new scoped functionality, including updates to button labels and unread count displays based on active filters.
  • Added tests to verify the behavior of scoped actions for marking notifications as read and clearing notifications.

Closes #31

- Updated `markAllNotificationsRead` and `clearNotifications` functions to support optional filtering by trigger name, allowing for more granular control over notification management.
- Adjusted the `NotificationsView` component to reflect the new scoped functionality, including updates to button labels and unread count displays based on active filters.
- Added tests to verify the behavior of scoped actions for marking notifications as read and clearing notifications.
@matt1398 matt1398 merged commit 12df279 into main Feb 20, 2026
3 checks passed
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0cd75a4f1a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

const handleClearAll = async (): Promise<void> => {
if (showClearConfirm) {
await clearNotifications();
await clearNotifications(activeFilter ?? undefined);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reset active filter after scoped clear

When clearNotifications is invoked with activeFilter, the selected filter is preserved even if that filter is completely removed. In that state, filteredNotifications becomes empty while other notifications still exist, and if only one trigger remains the chip bar is hidden by the existing filterChips.length > 1 check, so users can no longer switch back to “All” and those remaining notifications become inaccessible from the UI.

Useful? React with 👍 / 👎.

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.

Mark all read / Clear all notifications should be tab scoped

1 participant