Feedback — Options
How the app confirms, warns, and fills silence: toasts, dialogs, inline errors, empty states, loading. The channels are fixed by research — the question is HOW MUCH feedback.
The channel matrix (shared, from research)
- • Inline alert — validation + errors tied to a place on the page
- • Toast — outcome of an async action, non-blocking, NO critical info, no actions inside
- • Dialog — needs a decision before continuing; ALL destructive confirmations
- • Empty state — what this is + how to fill it + one CTA
- • Skeleton — content loading; spinner/label — button-level work <2s; nothing under 300ms
Rendered examples
Couldn’t delete experiment — try again.
Delete experiment?
“Subject line A/B — May” and its assignment data will be permanently deleted. This can't be undone.
No contacts yet
Import from LinkedIn or add your first contact to start a sequence.
Option A — Toast-forward
Every mutation gets a success toast + error toast.
- • Nothing ever completes silently
- • Noisy for a 20-actions-a-day queue tool
- • Toast fatigue → users stop reading them
Option B — State-change-first ✓ CHOSEN
Visible UI change IS the confirmation. Toasts only for errors, undo, and off-screen effects.
- • Queue card disappearing = feedback; no toast needed
- • Toasts stay meaningful (errors + “happened elsewhere”)
- • Matches the app's current behavior — codify + fill gaps
Option C — Full taxonomy
Carbon-style: banners + notification center + toasts + inline.
- • Right for enterprise consoles with system-level events
- • Two new surfaces (banner, center) nothing needs yet
- • Overkill for a single-user workflow tool
Show audit of the app before this rule
Audit — what we have today
- ✓ EmptyState component exists, used 11×
- ✓ 7 loading.tsx skeleton pages (skeleton > spinner ✓)
- ✓ Inline form errors everywhere (16 files) — matches form system
- ✓ Button-level “Loading…” labels for short work
- ✗ window.confirm() ×2 for DESTRUCTIVE deletes (admin user, experiment) — unstylable, no red button, violates destructive-action standards
- ✗ No shared ConfirmDialog primitive — why window.confirm crept in
- ✗ Toasts: 9 calls in 3 files, destructive-only — errors elsewhere fail silently or as bare text
- ✗ 4 hand-rolled dashed empty-state divs bypass EmptyState
Shared rules (all options)
- • Destructive = dialog with red verb-button (“Delete experiment”, never “Yes”) + consequence text
- • High-value destruction (accounts, projects) = type-to-confirm
- • Toasts never carry actions or critical info (a11y: timer beats keyboard users)
- • Empty states teach: what + why + one CTA
- • No feedback for <300ms operations
Show research sources
Decision: Option B
- 1. The UI already confirms. In a 20-actions-a-day queue tool, the card disappearing IS the feedback. Toast-forward (A) would bury users in noise until they stop reading toasts at all.
- 2. Toasts stay meaningful: errors, undo, and effects that happened off-screen. Nothing else.
- 3. C rejected on fit: banners + a notification center serve enterprise consoles with system events; this is a single-user workflow tool.
- Applied at adoption: new ConfirmDialog primitive (red verb-button + consequence text); both window.confirm uses replaced; window.confirm banned; channel matrix written into feedback-system.md.