Feedback, help, and recovery states
Choosing confirmations, notes, contextual help, toast messages, loading, empty, partial-error, and offline states.
Match feedback to the user’s decision
Section titled “Match feedback to the user’s decision”Feedback should answer what happened, which scope is affected, and what happens next. A toast, badge, inline error, and confirmation serve different purposes; do not use them interchangeably. Preserve the user’s context during failures instead of replacing the whole page unnecessarily. This is the target behavior; source observations below are limited to the inspected components.
Delivery matrix
Section titled “Delivery matrix”| Situation | Preferred delivery | Do not |
|---|---|---|
| A field needs correction | Inline error with associated label and optional summary | Rely only on a toast that disappears |
| A consequential action is about to happen | ConfirmGate with scope and consequence | Ask a vague “Are you sure?” |
| A short action completed | Success toast plus updated record state | Leave the old state visible indefinitely |
| A permanent constraint applies | Persistent contextual note | Hide it only in hover help |
| A concept needs explanation | HelpPopover near the decision | Add a modal that interrupts every visit |
| A short control hint is useful | BaseTooltip | Place links or mandatory instructions in a hover-only tip |
| A request is still running | Local busy state and truthful progress | Announce success when merely queued |
| Part of a page failed | Error on the affected region with scoped retry | Blank all successfully loaded content |
Informational notes and help
Section titled “Informational notes and help”Use neutral information for context and warning treatment for material risks or restricted capabilities. Example note: “This is a system record. Its code cannot be changed.” Example warning: “You can view this journal, but your current access does not allow posting.” Do not show a permission warning as a system outage or present an unknown error as empty data. Keep the note near the affected controls and explain a realistic next step.
HelpPopover requires content; it supports title, label, placement, and a docsUrl slug.
Use it for policy explanation, domain vocabulary, and links to further guidance.
BaseTooltip provides short content and placement options, including a richer content slot.
Its actual hover/focus behavior still needs testing against WCAG 1.4.13.
Mandatory consequences remain visible even if a tooltip or popover is never opened.
Loading and skeletons
Section titled “Loading and skeletons”Use Skeleton to preserve the expected structure of a first load, not to imitate real financial values.
Its inspected API includes rows, width, height, inline, and circle.
It exposes status semantics and reduced-motion classes; its current status label is Indonesian.
Avoid dozens of simultaneous live announcements when skeletons are repeated in a table.
Provide one useful loading description for the region and verify the resulting accessibility tree.
For refreshes, consider retaining prior data with a clear updating indication rather than flashing an empty table. Never label retained data as current after a failed refresh; show freshness or a warning when material. A spinner should resolve to content, an empty state, an error, or a recoverable long-running status. Use determinate progress only when the service exposes a trustworthy total. Do not introduce arbitrary timers that report completion without a server result.
Empty states are distinct
Section titled “Empty states are distinct”| State | Example copy | Appropriate action |
|---|---|---|
| No records yet | “No customers yet. Add one to start managing receivables.” | Permission-gated creation |
| No search matches | “No customers match these filters.” | Clear filters or change search |
| No permission | “Your current access does not allow viewing this list.” | Explain access request path; no forbidden fetch |
| No data for period | “No posted transactions in this period.” | Change period or inspect eligible source documents |
| Fetch failed | “Customer data could not be loaded.” | Retry the failed request, not create a record |
EmptyState supports title, canonical message, noun, permission, canCreate, and creation configuration.
It can navigate through createTo or emit create; the page must supply a real authorized destination.
Its permission-derived CTA behavior is described in components; false is not always a denial override.
Do not make “Contact administrator” the universal answer when a clear-filter action would solve the problem.
Toast contract and persistence
Section titled “Toast contract and persistence”Existing pages call app.pushToast with severity and message.
Severities are success, info, warning, and error; do not invent a danger toast severity.
ToastContainer also renders an optional action with label and to when supplied by the store.
It uses role="alert" for error and role="status" otherwise; inspect timing and announcement behavior in context.
Its dismissal label is currently “Tutup”; English coverage requires explicit verification.
Example success message: “8 selected customers deactivated.” Example uncertain result: “The export request was accepted. Check the job status for completion.” Do not put bank details, personal identifiers, or long diagnostic traces in a globally visible notification. An auto-dismissed toast is insufficient for an unresolved posting failure; keep persistent recovery on the page. Avoid repeating the same message through an inline alert, global toast, and live region simultaneously.
Partial errors, conflicts, and offline states
Section titled “Partial errors, conflicts, and offline states”If summary statistics fail but rows load, keep the rows and mark only the summary unavailable. If a multi-operation response reports partial success, show succeeded, failed, and skipped counts distinctly. For an atomic bulk transaction failure, report that no changes were committed rather than inventing partial success. Offer retry only for the eligible failed scope; never repeat successful money movements automatically. For version conflicts, preserve safe edits and provide a latest-version review path. For offline or uncertain connectivity, distinguish cached content from confirmed live data. Do not promise queued offline writes unless that capability is actually implemented and tested.
Confirmation handoff
Section titled “Confirmation handoff”ConfirmGate closes before emitting confirm; parent views own the subsequent request lifecycle.
Bind busy and disable the trigger appropriately, but do not assume the dialog awaits an asynchronous result.
When a request fails after confirmation closes, retain the target identity and recovery message in the parent.
For financial actions, “Retry” should first establish whether the previous operation committed.
See forms for unknown-outcome and idempotency handling.
Acceptance criteria
Section titled “Acceptance criteria”- Every fetch has meaningful loading, empty, error, and success handling.
- Notes, help, warnings, and confirmations are selected according to consequence, not visual preference.
- Feedback names scope and does not overstate queued, partial, stale, or unknown results.
- Keyboard and screen-reader users receive the same recovery choices without focus theft.
- Both locales include internal labels or explicitly tracked translation gaps.
- Failure of one independent region does not destroy successful work elsewhere.
- Critical recovery remains available after a toast disappears or a dialog closes.