As a reader, I want every screen to tell me whether it is loading, has failed, is empty or is busy, so that I am never left looking at a blank page wondering what to do.
Situation
I use the app on trains, where the connection comes and goes. Some days I have no identity, no notifications and no agents.
What I do
Open each tab.
Pull down to refresh.
Send a comment, a profile change or a server address.
When a screen says something failed, tap "Retry".
What I should see
A document that is loading shows a spinner. Lists in the other tabs show one quiet line: "Loading activity…", "Loading agents…", "Opening your vault…".
A failed document shows the reason, such as "Couldn't reach the server.", with a "Retry" button on the same line.
Agents shows a failure in red with "Retry". The inbox shows it with a "Retry" row.
An empty place names the next step: Me says "No identity yet" and "Create one to comment and talk to agents, or import one you already have.", followed by "Create identity" and "Import identity".
Activity with no identity says "No identity selected" with an "Open Me" button. An empty inbox says "Nothing yet" and "Replies and mentions for your identities show up here."
Agents with nothing set up says "No agents yet" and "Configure a model provider, then create an agent to start a conversation."
Pulling down refreshes and keeps the old content on screen while it reloads.
While something is being sent, its button is disabled and names the work: "Posting…", "Saving…", "Checking…", "Importing…", "Opening…", "Syncing…".
A light tap confirms a posted comment, a saved profile, a copied account ID and a change of identity or server.
I never see another account's or another server's data presented as mine while the right data loads.
When something goes wrong
The connection drops while I open a document: I see "Couldn't reach the server." and "Check your connection, then try again." I tap "Retry" when I am back online and the document appears.
The discussion fails while its document loaded: the page stays readable, the section says "Couldn't reach the server." and I pull down to try again.
Not included
Failures look three different ways across the tabs, and the discussion section and All comments show an error without a "Retry" button. See Loading, failure and empty states.
Comments are not shown before the server confirms them, and nothing is kept for reading offline. See Current limits and known gaps.
Trace
Story US-APP-05, status Shipped. These links are kept in step with the traceability matrix and with the "User stories" section of every page listed here.
Design
Page | Part it plays |
|---|---|
The principle: every piece of data has loading, failure and empty, and is never someone else's | |
Principle 4, Honest state, quoted | |
The five treatments and where the app is uneven | |
Loading, failure, empty and no identity strings for every screen | |
Pull to refresh, progress, haptics and optimistic UI | |
Badges, countdowns and connection status | |
Section parent: the two components every feature may use | |
The failure line with Retry used by Read and Discuss | |
Section parent: parts taken from the framework | |
The whole-screen empty state and the rule against using it in a list | |
The status capsule on a run card | |
The red failure line with Retry used by Agents | |
The system spinner and the three ways the app says loading | |
The scroller that holds Activity's whole-screen empty states | |
A discussion that fails while the page stays readable | |
The streaming reply and its status row | |
Spinner, failure line and the empty page sentence | |
No identity, nothing yet, loading and Retry | |
Choose an identity, loading and no agents yet | |
The empty row followed by its two actions |
Implementation
Page | Part it plays |
|---|---|
Epoch counters, owner and visit checks, optimistic sends and tasks | |
pending and failure are passed from root resources into every screen | |
readEpoch, discussEpoch and the post reply | |
activityReady, agentsReady and the error derives | |
Error derives for create, import, server, profile and vault | |
StatusLine and the exact:content parts | |
Failures become a page with an error message, never the default home | |
The refresh epoch that drops caches | |
The ask stamp and the committed snapshot | |
Connection state reported by the streams | |
Refresh discards late results | |
refresh, refreshing, haptic and progress | |
fail fetch and pass fetch drive the failure and recovery tests | |
Scenarios for a failing and an empty inbox | |
Scripted failures and dropped streams |
Code
File | What |
|---|---|
StatusLine: message and Retry | |
AgentError: red message and Retry | |
refreshing while loaded, failure line, hint and spinner | |
This page is empty. | |
no identity, nothing yet, error with Retry and Loading activity… | |
Choose an identity, Loading agents…, AgentError and No agents yet | |
identities failed with Retry, and the No identity yet row | |
activityReady and error derives: never another account's inbox | |
readRetry, readRefresh and the directory and author retries | |
discussAfterPost with the success haptic | |
meSwitch with the selection haptic | |
getJson: Couldn't reach the server. and The server answered N. |
Tests
File | What it checks |
|---|---|
"a failed load shows Retry and recovers" | |
"failed site loading exposes retry and never substitutes the default home" | |
"activity: no identity offers Me" | |
"activity: service errors retry to an empty inbox" | |
"activity: switching identities scopes the inbox and email draft" | |
"me: empty state offers create and import" | |
"failed sends keep the draft and recover without duplicate user bubbles" | |
"a dropped stream reconnects and recovers the offline message once" | |
refresh epochs per server, redirects and retryable failures | |
"malformed snapshots are failures, not empty inboxes" | |
refresh discards late results |
Delivery
Delivered by #1470.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime