Thread
DiscussThreadScreen: one comment thread, with the root comment large, replies beneath the comment they answer, and a composer pinned to the bottom.

A thread is one conversation about a document. The person reads the root comment and its replies in order, and can answer the thread or any single reply without leaving the screen. The screen component is DiscussThreadScreen (discuss.contract L186-L240).

At a glance

Tab

Read

Route

thread, /c/:uid/:comment

Presentation

pushed

Title

inline, "Thread"

How you get here

a thread row under a document or in All comments; posting from the Compose sheet; a row of the Activity inbox; a deep link

Where it leads

the document the thread is on; the Create identity sheet when there is no identity

A thread with one reply: the document line, the root comment, "1 reply", the reply with its Reply button, and the composer.
After two replies, with the keyboard open: the nested reply is indented and says who it answers, and the composer rides above the keyboard.
With no identity the composer becomes a prompt with a Create button. This is an older build: timestamps no longer include the time of day, the root avatar is now 28 points, and the tab tint is now teal.

Anatomy

    Navigation bar. Back and the title "Thread".

    Document line. A 44 point tall link with symbol:document and the document's title in footnote grey. It tells the person what is being discussed and takes them there.

    Root comment. A DiscussBubble with big set, so its text is -exact-body. Under it, a footnote count: "No replies yet.", "1 reply" or "N replies".

    Replies. One DiscussBubble each, in -exact-callout. Replies read oldest first, each directly under the comment it answers. A reply to a reply is indented 16 points per level past the first (up to 48 points; deeper replies stay there) and carries "Replying to Name". When the person has an identity, each reply has a text button "Reply" under its bubble, aligned with the bubble's edge.

    Composer. DiscussComposer, outside the scrolling list and fixed to the bottom, with the placeholder "Write a reply…".

The scrolling part is a plain list with a column padded 20 points at the sides, 14 points between comments, capped at 40rem.

States

State

What shows

Loading

A spinner (progress, label "Loading"); no composer

Failure

StatusLine with the error and Retry; no composer

No replies

"No replies yet." under the root

No identity

The composer shows "Create an identity to reply." and a bordered "Create" button; reply buttons are hidden

Replying to a reply

A line "Replying to Name" above the field, with a close button (label "Reply to the thread instead")

Posting

Send is disabled until the answer arrives

Post refused

A red footnote above the field, for example "The server refused the comment (409): …". The draft is kept

Refreshing

The pull-to-refresh spinner over the loaded thread

Actions

Gesture

Result

Tap the document line

Opens the document

Tap "Reply" under a reply

Targets that reply and focuses the field, raising the keyboard

Tap the close button on "Replying to"

Targets the thread's root again

Tap Send (symbol:send)

Posts the reply. On success the field empties, the target resets, the new comment appears and a success haptic plays. The keyboard stays up

Tap "Create"

Opens the Create identity sheet in the Me tab

Pull down

Reloads the thread

Long press comment text

Selects it

Tap a link in a comment

Follows it

Components used

Component

Kind

Role on this screen

DiscussBubble

named

The root and every reply

DiscussComposer

named

The pinned reply field, or the identity prompt

Avatar

shared, inside the bubble

28 point author faces

StatusLine

shared

The failure line with Retry

header

primitive

The bar

list

primitive

appearance="none": the refreshable transcript

link

primitive

The document line

button

primitive

"Reply", Send, the close button, "Create"

textarea

primitive, inside the composer

The reply field

text

primitive

Title, counts, labels

image

primitive

The document, send and close symbols

row and column

primitive

The transcript column

progress

primitive

The loading spinner

Why it is designed this way

    A group transcript, all on the left. DESIGN.md: "The root comment large, replies as a transcript (chat-thread look, but all left-aligned with avatar + name + relative time, since it's a group)". Right-aligned "mine" bubbles are kept for the one-to-one Agents chat; here everyone, including you, has a face and a name. See Names, not identifiers.

    The composer is always there. It is pinned so replying needs no navigation, following Exact's chat-thread recipe: "interactive-widget keeps the composer over the keyboard; Send keeps it up." See Composers.

    One composer, two targets. A per-reply field would clutter the transcript. "Reply" retargets the single field and says so in a line above it.

    Reading works without an identity. A person with no identity still sees everything; only the composer changes, and it names the next step. See Honest state.

    A haptic on success. A posted comment is a signed, published act, so it is confirmed by touch as well as by the new bubble. See Refresh, haptics and progress.

    Bubbles are painted. DESIGN.md's principle 1 lists "comment bubbles" among the content the app paints itself; the bar and keyboard handling are the platform's. See Leave it unsaid.

Difference from DESIGN.md: it describes the signed-out composer as "disabled with a 'Create an identity to reply' link". The built composer is replaced by that sentence and a bordered "Create" button.

Not verified: the contract colours "Reply" with brand, while the screenshots show it in the label colour.

User stories

This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).

Related

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

Unsubscribe anytime