StatusLine is the app's standard way to say that something could not be loaded and to offer the fix in the same line. It is a named component, defined in ui.contract L23-L31. It is the "failure line with Retry" that the fourth principle in DESIGN.md asks every resource to have (Honest state).
Props
Prop | Type | Effect |
|---|---|---|
| string | The sentence shown. It comes from the data, for example "Couldn't reach the server." |
| action | What the "Retry" button does. Each caller passes the reload of its own resource |
Anatomy
row gap=8 align-items="center" padding=16
text message flex=1 min-width=0 color="-exact-secondary-label" font="-exact-footnote"
button press=retry testId="retry"
text "Retry"A row with 16 points of padding on every side and an 8 point gap.
The message is a text in the footnote style and the secondary label colour. It takes the remaining width and wraps.
"Retry" is a plain button with no buttonStyle, so iOS draws it as tinted text in the brand teal. It keeps its own width at the trailing edge.
There are no variants and no state of its own. The message is quiet on purpose: grey, not red. A failed read is a normal condition on a phone, and the tinted button is the only thing that draws the eye.
Used by
Screen | When |
| Line |
|---|---|---|---|
The page failed to load. A second line follows: "Check your connection, then try again." | reloads the documents | ||
The space's document list failed. Shown in its own section above the rows | reloads the directory | ||
The author's page failed. Shown inside the header section, under the summary | reloads the author | ||
The thread failed to load. It replaces the comments, and the composer is hidden | reloads the thread |
No screenshot in the set shows StatusLine itself. final/ios-doc-retry-light.png shows a different thing: the discussion's own error sentence under a document that did load.
What other screens do instead
StatusLine is used only by Read and Discuss. The same idea is written differently elsewhere, which is worth knowing before adding a new failure state:
Where | Treatment |
|---|---|
Agents tab | AgentError: the same row, with the message in |
A list section with the message as one row and "Retry" as the next | |
An inline row: "Couldn’t read the identities on this device." and "Retry" | |
Message, then a "Retry" button below it | |
The error sentence alone, with no button; pull to refresh retries |
The full comparison is in Loading, failure and empty states.
Rules for use
Use it when a read failed and trying again is the right next step.
Put it where the content would have been, not in an alert. The person stays on the screen and the navigation bar still works.
Keep the message a full sentence in sentence case (Voice and wording).
Inside a grouped list it sits in a section, so it becomes a card row (list and section).
Do not use it for a failed write. Writes report in red next to the control that sent them (Forms and inputs).
Where the code differs from DESIGN.md
DESIGN.md lists StatusLine(failed, retry). The built component takes the message itself, so each screen can show the server's own sentence.
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: The failure line with Retry when the home cannot load
US-READ-03 Follow links between documents: The failure line when a linked document cannot load
US-READ-04 Open a Seed site by URL: Retry when the destination cannot be reached
US-READ-05 Open an hm:// link from outside the app: The failure line for a link that is not a document
US-READ-07 Browse and search a space's documents: The failure line with Retry
US-READ-09 See who wrote a document and visit their profile: The failure line with Retry on the profile
US-READ-10 Refresh a page and recover from a failed load: The message and Retry button
US-DISC-02 Read a thread: The failure sentence with Retry
US-ACT-02 Open what a notification is about: The failure line with Retry on the landing screen
US-AGENT-06 See what the agent is doing: Status line conventions
US-APP-05 Always know what is happening: The failure line with Retry used by Read and Discuss
Related
Parent: Shared components
progress, the loading state that precedes it
How it is built: Shared components and visual design, State, refresh and stale-reply patterns
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime