Web app interface playbook
Rules for the screens of web apps, such as dashboards and admin tools. States, forms, data, lists, feedback, permissions, errors and tests.
- Required 14
- Recommended 63
- Optional 2
An interface playbook for interactive web apps, such as dashboards, customer portals, SaaS products and admin tools. It works for any framework, from React, Vue, Svelte and Angular to plain web components and server-rendered pages with htmx. Each rule says what to build, how, and how to prove it in a test.
Apps fail in ways content sites never do. A list loads forever, a form loses an hour of typing, or a button saves twice. A hidden menu still lets the wrong person delete a record. AI app builders produce the happy path well and skip these cases. This playbook covers the cases they skip.
Start with Data views. Every screen that shows data needs its loading, empty and error states, and most apps miss at least one. Then read Forms and Client and server state.
The website playbook covers what every page needs, such as HTML, speed and accessibility. This playbook links to it instead of repeating it. The API design playbook covers the server side of each screen, and the testing playbook covers tests in general.
Two chapters cover newer kinds of screens. They are Generated interfaces and Live collaboration. Onboarding and honest choices live in the UX and deceptive design playbook.
Chapters
Styles and components
Keep every colour, size and control in one place. Design tokens hold the values, a component library holds the controls, and a catalogue shows every state.
- Recommended 7
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
Dates and numbers
Show times in the user's own time zone, keep calendar dates as dates, and read numbers the way people type them. Most off-by-one-day bugs start here.
- Required 1
- Recommended 2
- Optional 1
Forms
Check input at the right moment and put server errors on the right field. Never lose what people typed, and save each form only once.
- Required 3
- Recommended 8
Client and server state
Keep server data in one cache, keep screen state in the address, and keep the rest local. Update the screen at once only when you can undo it.
- Required 2
- Recommended 9
Lists and tables
Long lists stay fast with paging or virtual scrolling. Sort and filter on the server, key rows by ID, and make tables work by keyboard and screen reader.
- Required 1
- Recommended 6
Feedback and dialogs
Confirm finished work in a status message and keep errors where they need fixing. Place focus with care, and let people undo what they delete.
- Required 2
- Recommended 4
Sessions and permissions
The server decides what each person may do. Survive expired sessions, sign out all tabs at once, and show who changed each record and when.
- Required 1
- Recommended 3
Resilience
Contain crashes to one panel and give every request a time limit. Say when the network is gone, recover from new releases and show flags and environments early.
- Required 1
- Recommended 5
Tests and budgets
Test every component in every state, catch visual changes with screenshots, and give each route a size budget the build enforces.
- Recommended 4
Generated interfaces
Let a model fill your own components and never write HTML into the page. Check every action it adds on the server, and let people change what it filled in.
- Required 1
- Recommended 1
Live collaboration
Pick how edits merge, check every change on the server, keep presence short-lived, and test that local copies converge. Erase deleted data from history too.
- Required 2
- Recommended 5
Layout and navigation
Fit app screens to narrow windows, let keyboard users jump with shortcuts and a command palette, and gather every setting on one searchable settings page.
- Recommended 2
- Optional 1
This is a lot to check. An Expert can check it for you.
Related playbooks
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">Agent Wranglers web app interface playbook</a>. In code you write, add a comment next to it with the same link.