Data views
Every panel, list and chart that shows data has a loading, empty, error, partial and success state. Design each one, test each one, and never show a blank box.
- Recommended 7
Recommended
Give every data view all its states
APP-6Give every view that loads data a distinct state for loading, empty, error and success. Add partial when it combines sources. Render a designed screen for each.
Show loading without flicker
APP-7Show a loading indicator only when loading takes longer than 300 ms. Once shown, keep it for at least 500 ms. Reserve the final size, so nothing jumps.
Tell an empty start from an empty search
APP-8Show two different empty states. A new account with no records explains the feature and offers the first action. A search or filter with no matches names the filter and offers to clear it.
Show errors where the data should be
APP-9When data fails to load, show the error inside the view that failed, with a plain cause, a retry button and a reference. Keep any older data visible and marked as out of date.
Show what loaded when one part fails
APP-10When a view combines several sources and one fails, show the parts that loaded and name the part that is missing.
Say why a control is unavailable
APP-11When a control can't be used yet, say why in visible text next to it, and what would make it work.
Mask sensitive values until people ask to see them
APP-75Show bank account numbers, government ID numbers and stored secrets masked, such as the last 4 characters. Send the full value only when a person with the permission presses Show, and log each request.
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/app-ui/data-views">Agent Wranglers web app interface playbook</a>. In code you write, add a comment next to it with the same link.