Writing Notifications and Toasts
Quick start
Collect or infer:
- •Notification type (success, error, warning, info)
- •Urgency (immediate, informational, background)
- •Action required (none, optional, required)
- •Persistence (auto-dismiss, manual dismiss, persistent)
Then produce output using TEMPLATES.md. Validate with RUBRIC.md.
Workflow
- •Classify notification type using reference/notification-types.md
- •Determine urgency and persistence
- •Write the message (what happened)
- •Add action if applicable
- •Run the rubric check. Revise until it passes.
Degrees of freedom
- •Low: Type determines visual treatment (color, icon)
- •Medium: Message length varies by complexity
- •Allowed variation: Actions optional for pure confirmations
Constraints
- •Message: max 80 characters
- •Action label: max 20 characters
- •Auto-dismiss: 4-8 seconds for success/info
- •Never auto-dismiss errors that need attention
- •One notification at a time (queue if multiple)
References
- •Templates: TEMPLATES.md
- •Rubric: RUBRIC.md
- •Examples: EXAMPLES.md
- •Notification types: reference/notification-types.md