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.
User stories
This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).
US-READ-01 Open the app to my site's home: Loading, failure with Retry and empty treatment of the home
US-READ-02 Read a document: The empty page line "This page is empty."
US-READ-04 Open a Seed site by URL: A valid but unreachable address opens the document failure state
US-READ-05 Open an hm:// link from outside the app: Loading and failure of the landed document
US-READ-08 See the documents under and inside a document: Quiet failure lines inside a readable page
US-READ-10 Refresh a page and recover from a failed load: Loading, failure with Retry and empty for every screen
US-DISC-01 See the discussion on a document: Loading, failure and empty rules the section follows and where it falls short
US-DISC-02 Read a thread: Loading and failure with Retry
US-DISC-05 Be guided to create an identity before commenting: A missing-identity state names the next step
US-ACT-01 See replies and mentions for my identity: Loading, two empty states, failure with Retry
US-ACT-02 Open what a notification is about: Failure with Retry on the landing screen; the red action error in the inbox
US-ACT-03 Mark everything read: The red action-failed section
US-ACT-04 Get notifications by email: Loading, load failure with Retry, no identity
US-AGENT-01 See my agents: Loading, failure and empty states as rows inside the grouped list
US-AGENT-09 Stay connected to a live conversation: Failure with Retry
US-ID-03 Switch between my identities: Failure row with Retry and the empty row
US-VAULT-01 Connect my vault to bring my identities to this phone: Waiting, warning without ending the wait, stopped with Try again
US-VAULT-02 Keep my identities in sync across devices: A failure that leaves content in place and offers a retry
US-VAULT-03 Lock my vault, switch to local, or log out: Failure with Retry and the empty identities state
US-VAULT-04 Trust that my keys stay safe: Failure with Retry that keeps what is there
US-APP-05 Always know what is happening: The five treatments and where the app is uneven
US-APP-07 Read clear, consistent wording: How empty and failure states are worded
US-APP-08 Have the app stay fast and responsive: A running request never blocks the screen
Related
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime