Issue 434
enhancement: DetailLayout and Toast, the shared detail grid and notice
Back to our planDone
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:childrenand anaside.Toast(tone: info):message, an optionalicon, anaction(aButton) andonDismiss. 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
VersionCheckuse them, and look the same as before.
Generated by Claude Code, opens in a new tab