Stateful Admin UI Alerts backend #3279
Labels
design 📐
This issue deals with high-level design of a feature
P4: low
Non-critical, workarounds exist
type: feature ✨
Is your feature request related to a problem? Please describe.
I would like to make use of the Admin Ui Alerts / notifications feature in our plugins more, but it currently requires quite a bit of work to set up for each plugin.
I would like some of my plugins to push notifications to the admin in a generic way, where the admin can just click
seen
or something like this. Similar to how GitHub notifications work.Use case example: Order failed to sync to Order Picking platform. Admin needs to look into address details.
Describe the solution you'd like
I would like all my customizations to be able to do something like
adminAlertService.create(ctx, message, link, requiresPermisson)
in the backend.I imagine we have a simple entity named
admin-alert.entity.ts
and an Admin queryadminAlerts()
the gets the open/new alerts for the current administrator.Describe alternatives you've considered
Make it as a plugin. This is possible, but each of our plugins would need some configurable strategy
createAlert()
to not be dependent on the alert-plugin. When it's in core, we don't need such a strategy.❓ The question is really: Does this belong in Vendure Core? I would be willing to implement it, but I am still a bit in doubt if this should be in there.
The text was updated successfully, but these errors were encountered: