Aller au contenu

Feedback and confirmation

Status: Placeholder — to be developed. Last reviewed:

Scope

When to use which feedback channel: - Toast — async / non-blocking success ("Saved"). - Inline banner — page-scoped state ("Import in progress, refresh in 2 min"). - Modal — destructive confirmation, multi-step action. - Field-level error — validation, never duplicated in a banner.

Plus: confirmation-dialog copy patterns, optimistic-update rules, what to do on partial failure (e.g. bulk delete where some rows fail).

Sources to mine when writing this

  • Django messages framework usage across views and base.html.
  • Existing modal markup in templates/ (HTMX-driven and Bootstrap modals).
  • HTMX response conventions (HX-Trigger headers for toast dispatch, OOB swaps for banners).
  • Existing destructive-action confirmations (delete buttons, reset scripts) — converge on one copy template.