The app's top level is four tabs. Each is a separate place with its own history, and the system tab bar switches between them. This page describes each tab and what the tab bar is.
The tabs
Order | Label | Symbol | Root route | Root screen | Purpose |
|---|---|---|---|---|---|
1 | Read |
|
| Read the current server's site, follow links, read and write comments | |
2 | Activity |
|
| Replies and mentions for the current identity | |
3 | Agents |
|
| Agents on an agent server and conversations with them | |
4 | Me |
|
| Identities, server, agent server, vault |
The declaration is the route table and the tab list: a row role="tablist" of four button role="tab", each holding one symbol and one label. The order and labels are stated in DESIGN.md and tested by "the four tabs are there and each opens" in app.test.contract.
Why these four, in this order
DESIGN.md ranks the job: read first, talk second, manage who you are third. The app opens on Read. Activity and Agents are the two kinds of talking that have a place of their own: what people said to you, and conversations with agents. Me is last because it is used "now and then". See The five principles.
Discussion with people has no tab. Threads belong to documents, so Thread, All comments and Compose are routes of the Read tab, and Activity rows lead into them (Moving between tabs and into the app).
Exact's tabs recipe gives the rule the app follows: "Use tabs for at least two top-level sections, each with its own route stack."
What each tab remembers
Each tab has its own stack (Stacks, pushes and sheets). The view draws every entry of every tab's stack and hides the covered ones (source), so nothing is thrown away when you leave a tab.
Behaviour | Detail | Source |
|---|---|---|
A tab keeps its place | Its pushed screens, drafts and scroll offsets survive a visit to another tab | tabs recipe: "its stack, drafts and scroll survive switches" |
Tapping the selected tab again | Pops that tab to its root | Same recipe: "Reselecting the shown tab pops it" |
A tab is built on first visit | Its root screen is created when the tab is first selected, then stays | Same recipe |
Activity and Agents load when shown | Their data is requested only while their tab is selected, and again on return | |
Read keeps its reader context | The document on top of the Read stack decides which site the directory and comments come from | |
Settings persist across launches | The chosen server, the current identity and the agent server are stored |
The stack contents themselves are not marked as stored, so a new launch starts each tab at its root (inferred: nav has no persist).
The tab bar
Drawn by iOS. The contract's tab list becomes a system tab bar: one symbol over its label per item. The app sets no size, colour or position for it (Leave it unsaid).
Tint. The selected item takes the app's accent, brand (teal), from accent-color="brand" on the root (Color and tokens).
Always visible on pushed screens. No route hides the tab bar. Sheets cover it, because a sheet is presented over the tabs.
No badges. The Activity item shows no unread count. The count appears only inside the tab, as "2 unread".
On a wide window. Exact draws the same tab list as a sidebar on a Mac window or a web window 900 pixels and wider. The app declares iPhone and iPad (app.json). How the tab list looks on iPad is not verified here.
Symbols are named by role, not by glyph: see Symbols and icons and header, footer and nav.
Consequences and trade-offs
A link can open a screen on the tab you are in, whichever tab its route is declared under. The "Agent server" row on Me opens the agent server sheet over Me, although the route belongs to Agents (details).
Four roots means four large titles to keep distinct: the site's name, "Activity", "Agents", "Me".
With no identity, two of the four tabs open on a prompt to visit Me (Honest state).
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: Read is the first of the four tabs and the one the app starts on
US-READ-05 Open an hm:// link from outside the app: Read is the tab that shows documents
US-ACT-01 See replies and mentions for my identity: Activity as one of the four tabs
US-ACT-02 Open what a notification is about: Each tab keeps its own stack
US-AGENT-01 See my agents: Agents as one of the four tabs
US-ID-03 Switch between my identities: Me as the tab where identity is chosen
US-APP-01 The app feels like an iPhone app: The system tab bar and its four items
US-APP-02 Move around the app without losing my place: What each tab is and what it remembers
US-APP-08 Have the app stay fast and responsive: Activity and Agents load only when shown
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime