Skip to content
SprecherEast
Issue 1377

Epic: Toast system

Back to our plan
Done
enhancementfrontenduxpriority: medium

Problem

The site has a bottom-of-screen toast that can only be closed, plus separate alerts and banners. Notices the reader must acknowledge, or that should fade on their own, have no shared, configurable home, and small print piles up on panels (the rates panel keeps a hidden gap for its January note).

Proposed fix

One toast system on what exists: Alert's four tones with their icons and colors, and Radix Toast (the same family as the Dialog, Popover and Select already used) for the timer, swipe, announcements and action button. Each toast is configured by its type, wording and ending (fades after a set time, stays with a close button, or stays until the reader accepts), and sits in a panel, on a page, or across the site. Editors keep the wording and behavior in the CMS; code asks for a toast by id.

Existing work compared

Toast, Alert, Dismissible and BannerBlock already exist; native HTML has no toast; Sonner was considered and rejected (imperative, own styling, less fit with theme tokens and CMS wording). The site-wide announcement and maintenance bar is a later piece, not part of this epic.

Acceptance criteria

  • Not done: The three sub-issues are done.
  • Not done: The rates panel's January note is a toast, and the panel keeps no hidden gap.

Files likely touched

src/platform/ui/, src/platform/richtext/editorial/, docs.

Must not touch

None.


Generated by Claude Code, opens in a new tab

Issues in this epic

See it on GitHub, opens in a new tab