shibro
Show the version of “Errors explain and recover, where they happened”

States · SU-160 · SU-161

Errors explain and recover, where they happened

Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.

  • Recovery no Retry, no next step
  • Recovery Retry · filters kept
  • Message and place “Error 500” in a 3s toast
  • Message and place what + what to do, inline

What changes

Bad
A bare “Error 500” toast blinks over an empty list and is gone in 3s, with no cause, no Retry and no next step.audit.js: SU-146 warn: message appears without role="status" or aria-live · SU-160 info: error shown in a toast disappears before it can be read or acted on
Good
The error sits where the list should be, says what failed and what to do, offers Retry and keeps the person’s filters.

The rules

  • SU-160

    Errors explain and recover, where they happened. Say what failed, why if known, and what to do. Offer Retry and keep the person's data.

  • SU-161

    Confirm success where it happened; prefer Undo to "Are you sure?". In-place edits get an inline "Saved" (role="status"). Completed flows get a confirmation panel or page that says what happened and what comes next. Toasts are for non-critical news: about 5s if they dismiss themselves (Carbon); they pause on hover and focus, can be dismissed, and show one at a time; never errors (NN/g); if they hold an action, they never auto-dismiss (WCAG 2.2.1). Reversible destructive actions offer Undo (keep it for at least ~5s) instead of a confirmation dialog.