novuhq / novu

Open-Source Notification Platform. Embeddable Notification Center, E-mail, Push and Slack Integrations.
https://novu.co
Other
33.95k stars 3.47k forks source link

🚀 Feature: Add function to manage the notifications to react component #5749

Open RuslanHryn opened 2 months ago

RuslanHryn commented 2 months ago

🔖 Feature description

It would be nice to have a function that will be triggered when new notification/notifications arrive to add some custom logic to pre-process the notifications before showing them on UI. For example to change the order of notifications or filter out old notifications etc.

🎤 Why is this feature needed ?

This function will allow adding some custom logic to pre-process notifications. For example, re-order the notification to implement priority of messages or filter out old notifications etc,

✌️ How do you aim to achieve this?

So the function should be invoked when new notifications are made, but before rendering notifications on UI to pre-process all notifications. Input parameter is all received notifications and the function returns notifications that should be shown on the UI (notifications) => notifications

🔄️ Additional Information

No response

👀 Have you spent some time to check if this feature request has been raised before?

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

linear[bot] commented 2 months ago

NV-3897 🚀 Feature: Add function to manage the notifications to react component