Read tab screens
The eight routes of the Read tab: the site home, documents, the Open site and Directory sheets, author profiles, threads, all comments and the compose sheet.

The Read tab is where a person spends most of their time in Seed Exact: it opens on the current site's home document and every link, row and card pushes another document onto the same stack. Discussion lives here too, because a comment always belongs to a document. This page maps the tab's screens; each has its own page.

The screens

Screen

Route

Presentation

Screen component

What the person does

Document and site home

read / and doc /d/:ref

tab root, pushed

DocScreen

Reads a document, then its children and discussion

Open site sheet

open-site /open-site

sheet

OpenSiteScreen

Types a site address or an hm:// link

Directory sheet

directory /dir/:uid

sheet

DirectoryScreen

Jumps to any document of the space

Author profile

author /a/:uid

pushed

AuthorScreen

Sees who wrote something and what else they publish

Thread

thread /c/:uid/:comment

pushed

DiscussThreadScreen

Reads one comment thread and replies

All comments

comments /comments/:ref

pushed

DiscussAllScreen

Scans every thread on a document

Compose comment sheet

compose /compose/:ref

sheet

DiscussComposeScreen

Writes a new top-level comment

The routes are declared in app.contract L26-L38 and the screen each one renders is chosen in the view's route switch at L750-L768. The first three screen components live in read.contract, the last three in discuss.contract: two packages, one tab.

How the screens connect

flowchart TD Home["Site home"] -->|"link, row, card, embed"| Doc["Document"] Doc -->|"link, row, card, embed"| Doc Doc -->|"Open site"| Open["Open site sheet"] Open -->|"valid address"| Doc Doc -->|"list button"| Dir["Directory sheet"] Dir -->|"row"| Doc Doc -->|"author avatar"| Author["Author profile"] Author -->|"Home document, rows"| Doc Doc -->|"thread row"| Thread["Thread"] Doc -->|"messages button, N comments, See all"| All["All comments"] All -->|"thread row"| Thread Doc -->|"Add a comment"| Compose["Compose sheet"] Compose -->|"Post"| Thread Thread -->|"document line"| Doc

Three things hold the tab together:

    One screen for every document. The home and a pushed document are the same DocScreen, so nothing about reading changes as a person moves deeper. See Reading first.

    Sheets for short detours. Open site, Directory and Compose are tasks that end by returning to reading, so they slide up as sheets with Cancel or Close. See Stacks, pushes and sheets.

    The bar carries the actions. Open site, directory, discussion and share sit in the navigation bar, not in the page. See Navigation bars and their actions.

Other tabs land here as well: an Activity row opens a document or a thread in Read, and an agent's document link does the same. That is covered in Moving between tabs and into the app, and the tab itself in The four tabs.

What the screens are built from

The named components are documented under Read components and Discuss components; the unnamed recurring pieces under Inline parts. Every screen page ends with the complete table of what it uses.

How it is built

Read: screens and components, Discuss: screens and components and Navigation and routes describe the code behind these pages. The full list of screens in every tab is Every screen.

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