Ordered collection of active editor notifications.
The editor owns this model. Frontends receive full snapshots and report user actions back by notification id and action id.
Summary
Functions
Finds an inline action on a notification.
Dismisses one notification without affecting unrelated notifications.
Dismisses only when the notification's stored timer ref matches.
Finds a notification by id.
Returns notifications in display order, oldest first.
Creates an empty notification center.
Updates an existing notification or inserts a new one when the id is unknown.
Adds or replaces a notification by id while preserving its original position.
Types
@type t() :: %MingaEditor.UI.NotificationCenter{ items: [MingaEditor.UI.Notification.t()] }
Functions
@spec action(t(), String.t(), String.t()) :: MingaEditor.UI.Notification.Action.t() | nil
Finds an inline action on a notification.
Dismisses one notification without affecting unrelated notifications.
Dismisses only when the notification's stored timer ref matches.
@spec find(t(), String.t()) :: MingaEditor.UI.Notification.t() | nil
Finds a notification by id.
@spec list(t()) :: [MingaEditor.UI.Notification.t()]
Returns notifications in display order, oldest first.
@spec new() :: t()
Creates an empty notification center.
@spec update(t(), MingaEditor.UI.Notification.t()) :: t()
Updates an existing notification or inserts a new one when the id is unknown.
@spec upsert(t(), MingaEditor.UI.Notification.t()) :: t()
Adds or replaces a notification by id while preserving its original position.