Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Conversation

@cjbell
Copy link
Contributor

@cjbell cjbell commented Jun 7, 2022

This PR adds support for 2 new options:

badgeCountType on the NotificationIconButton and UnseenBadge: allows the behavior of what count is displayed on the badge to be customized. The supported options are "unseen" | "unread" | "all".

onOpen on the NotificationFeedPopover: allows a custom function to be passed that will be invoked each time the feed is opened. This defaults to the existing behavior of marking all unseen items as "seen" but the behavior can now be customized so that items can be marked as read, or archived once a feed is shown.

Note: we previously changed the visibility on the NotificationFeed, but this actually made no sense as the NotificationFeed never needed to know about visibility beyond changing the status. I moved the behavior to the NotificationFeedPopover as the popover itself needs to understand the visible state.

Welcome to feedback!

Internal task

Copy link

@thomaswhyyou thomaswhyyou left a comment

Choose a reason for hiding this comment

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

A couple minor questions/comments.

@cjbell cjbell requested a review from thomaswhyyou June 7, 2022 19:28
Copy link

@brentjanderson brentjanderson left a comment

Choose a reason for hiding this comment

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

Having read through this after your edits with Thomas, 👍 💯

@cjbell cjbell merged commit c39220c into main Jun 7, 2022
@cjbell cjbell deleted the cjbell-kno-1479-in-app-feed-add-ability-to-customize branch June 7, 2022 20:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

4 participants