Skip to content
SprecherEast
Issue 434

enhancement: DetailLayout and Toast, the shared detail grid and notice

Back to our plan
Done
enhancementfrontendstylingpriority: medium

Problem

  • Detail-page grid: the post and event pages each write the same layout by hand: the content, plus a sidebar that stacks under it on phones and sticks beside it from lg (L14).
  • Toast: the "New version available" notice keeps its look inside VersionCheck's logic (S9), so no other notice can reuse it.

Goal

Add two components to src/platform/ui/, as specified in docs/ui/component-set.md:

  • DetailLayout: children and an aside.
  • Toast (tone: info): message, an optional icon, an action (a Button) and onDismiss. It's a polite live region that slides in at the bottom of the screen.

The post and event pages use DetailLayout, and VersionCheck uses Toast, keeping its own logic.

Acceptance criteria

  • Not done: Both components are built, with tests and axe.
  • Not done: The post and event pages and VersionCheck use them, and look the same as before.

Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab