Alerts
Alerts appear in the top bar of the Admin UI and provide a way of notifying the administrator of important information that may require action.
You can define custom alerts with the registerAlert function.
Let's say you have a custom order process where certain orders require manual review & approval. You could define an alert to notify the administrator when there are orders that require review:
With this example, a check will be performed every 60 seconds to see if there are any orders requiring approval. The actual
implementation of the check is left to the ManualOrderReviewService which in this case would make a request to the
Vendure server to fetch the required data.
If there are orders requiring approval, the alert will appear in the Admin UI like this:
