StatusLine
The inline failure line: a message and a Retry button, used by the Read and Discuss screens.

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

message

string

The sentence shown. It comes from the data, for example "Couldn't reach the server."

retry

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

retry does

Line

Document and site home

The page failed to load. A second line follows: "Check your connection, then try again."

reloads the documents

read.contract L316

Directory sheet

The space's document list failed. Shown in its own section above the rows

reloads the directory

read.contract L388

Author profile

The author's page failed. Shown inside the header section, under the summary

reloads the author

read.contract L428

Thread

The thread failed to load. It replaces the comments, and the composer is hidden

reloads the thread

discuss.contract L225

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 -exact-system-red

Activity inbox, Email settings

A list section with the message as one row and "Retry" as the next

Me

An inline row: "Couldn’t read the identities on this device." and "Retry"

Edit profile, Vault

Message, then a "Retry" button below it

DiscussSection, All comments

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).

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Attributes
name
StatusLine
summary
The inline failure line: a message and a Retry button, used by the Read and Discuss screens.