Notifications
Setup
Jhana UI uses a singleton Svelte component. You have to include this once in your root layout. Then you can use the notify system across your whole app.
In case you're not happy with the default notify config, you can just set the values of the config object.
Notifications across dialogs
Keep one NotifyRoot in your app layout alongside PopupRoot. Notifications stay visible and interactive when dialogs or popovers open. The stack follows the active modal and returns to the previous dialog or page when it closes. Existing notifications keep their state and timers.
Show a notification before opening the settings dialog, or use Save inside it. More settings opens a second dialog. Notification buttons work at every level, and dismissing a notification leaves the dialog open.
Usage
Once set up, you can just use the notify function anywhere. Either directly in the components or you might set up one file that contains all the notifications your app uses.