Issue 226
enhancement: Alert, the shared message component
Back to our planDone
enhancementfrontendpriority: medium
Type
enhancement
Summary
Build Alert in src/platform/ui, the shared message box from the approved component set (docs/ui/component-set.md).
Problem
Form (#223) imports Alert from the template folder src/components/ui/alert.tsx, which has two tones. The banner block draws its own four styles. The approved set has one Alert with tone: info, success, warning, error.
Proposed fix
Move Alert to src/platform/ui/Alert.tsx with the four tones, using the strong text tokens from #223 (--destructive-strong, --primary-strong). Its role follows the tone (alert for errors, status otherwise). Move Form and the banner block onto it, and delete src/components/ui/alert.tsx.
Acceptance criteria
- Not done: One
Alertinsrc/platform/uiwith tests (jsdom and axe). - Not done:
Formand the banner block use it; the template file is gone. - Not done: Contrast of at least 4.5:1 for every tone in both themes, on background and surface.
Area
frontend
Priority
medium
Generated by Claude Code, opens in a new tab