The four tabs
Read, Activity, Agents and Me: each tab's symbol, root screen, purpose and what it remembers, and how the system tab bar is declared.

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 Activity tab at its root. The tab bar is the system's, with the selected item in the app's teal. The grey avatar discs predate the green ones.

The tabs

Order

Label

Symbol

Root route

Root screen

Purpose

1

Read

symbol:book

read, path /

Document and site home

Read the current server's site, follow links, read and write comments

2

Activity

symbol:notifications

activity, path /activity

Activity inbox

Replies and mentions for the current identity

3

Agents

symbol:sparkles

agents, path /agents

Agents list

Agents on an agent server and conversations with them

4

Me

symbol:person

me, path /me

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

Activity, Agents

Read keeps its reader context

The document on top of the Read stack decides which site the directory and comments come from

source

Settings persist across launches

The chosen server, the current identity and the agent server are stored

server and identity, agent server

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

Each tab root has a large title. The bar under it is the system's floating tab bar with the selected item tinted teal.

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

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

Unsubscribe anytime