Every resource a screen shows can be loading, failed, empty or present, and several screens also depend on having an identity. The mobile app gives each of these a deliberate treatment so a screen is never a blank pane. This is the Honest state principle made concrete: "loading (a quiet placeholder, never a blank pane), a failure line with Retry, and an empty state that names the next step" (DESIGN.md).
The five treatments
State | Treatment | Contract |
|---|---|---|
Loading | In content lists: an indeterminate spinner. In grouped lists: one secondary text row ending in an ellipsis |
|
Failure | The message in footnote type with a "Retry" button on the same line | StatusLine, or AgentError (the same shape in |
Empty, whole screen | A centered symbol, title, message and one action | EmptyState from |
Empty, inside a grouped list | A row with a headline and a secondary sentence, followed by the action rows |
|
Empty, inside content | One sentence in |
|
DESIGN.md gives the rule for the two empty forms: "Empty states inside a grouped list are a row (headline + secondary sentence) followed by the action rows; a whole-screen empty state (nothing else on screen) is EmptyState."
Every screen
The treatment of each screen, with exact strings for loading, failure, empty and no identity, is on States for every screen.
Pending and disabled
A running request never blocks the screen. The control that started it is disabled and its label changes ("Checking…", "Importing…"); everything already on screen stays. A refresh keeps the old content and shows the pull to refresh spinner (refreshing=(loading and loaded)), see Refresh, haptics and progress. Unavailable actions are disabled, not hidden, when the person can fix the cause: "Mark all read" with nothing unread, "Save" with nothing changed.
Do and do not
Do give a failure a way out on the same line: Retry, or pull to refresh.
Do write an empty state as what is missing plus what to do next. See Voice and wording.
Do keep content on screen during a refresh.
Do not use EmptyState inside a grouped list that has other rows. Use the headline row.
Do not show a spinner over content.
Where the app is uneven
These are observations from the code, not rules. Failure appears in three shapes: StatusLine (read, discuss), AgentError in red (agents), and plain text with a "Retry" button written on the spot (a separate row in activity and vault, the same line on Me). Read and discuss load with a spinner while the other tabs load with a text row. The discussion section and All comments show an error with no Retry button. Inferred: each package wrote its own state rows, and only read and discuss share StatusLine.
Related
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime