DiscussThreadRow represents a whole thread in a list. It shows the comment that started the thread and says how many replies are inside. It is a named component defined in discuss.contract L69-L80. Tapping it opens the Thread.
Used by
Parent | Where |
|---|---|
The first three threads under a document | |
All comments ( | Every thread of the document |
Document and site home ( | Through DiscussSection: the first three threads under "Discussion" |
It uses DiscussBubble.
Props
Prop | Type | Effect |
|---|---|---|
| a comment | The thread's root: its text, author, time, link and reply count |
| numbers | Passed to the bubble for the relative time |
| string | For tests only |
Anatomy
A link laid out as a column, 4 point gap, 10 points of padding above and below.
The root comment as a DiscussBubble with big off: 28 point avatar, name, time, and the text in -exact-callout inside the grey bubble.
Reply line, only when the thread has replies: "1 reply" or "N replies" in -exact-footnote, brand, padded 38 points from the left so it sits under the bubble's edge, not under the avatar.
The row draws no separator. Both parents wrap each row in a column with a 1 point top border in -exact-separator, skipped for the first row, so the lines run the full width of the reading column.
This page embeds no screenshot. Every capture that shows thread rows was taken on the live hyper.media home document, whose newest thread opens with a crude one-word comment. The row is the bubble shown on DiscussBubble, with a teal "2 replies" line under it.
Variants and states
Case | Result |
|---|---|
No replies | The bubble alone |
One reply | "1 reply" |
Several | "N replies", counting every comment under the root at any depth |
Long comment | The whole comment is shown. The row does not clamp the text, so a long root makes a tall row |
Empty comment | "(empty comment)" in the bubble |
There is no unread or new marker. The row has the platform's pressed feedback for a link and no chevron.
Behaviour
The entire row is the target, including the text. Links inside the comment's Markdown sit inside that outer link; on this row a tap is meant to open the thread, and links are followed from the thread screen (inferred from the structure; not verified on a device).
Rules for use
Use it wherever threads are listed for choosing.
Do not use it inside a thread. There every comment is a bare DiscussBubble with a "Reply" button.
Keep the 38 point inset if anything is added under the bubble, so it lines up with the bubble's text edge.
Let the parent draw the separators.
Why it looks this way
The row is the comment itself. A thread is previewed by showing its first comment exactly as it will look inside, so opening the thread is a continuation and not a change of view. The same bubble then appears at the top of the Thread, one text style larger.
No chevron. A chevron is the mark of a platform list row, and this is content in a reading column. The brand reply line carries the "there is more" signal instead; a thread with no replies has nothing more to show beyond the composer (inferred from the absence of a chevron and the use of brand).
Brand for the way in. Brand is the app's colour for links and actions, so "2 replies" reads as tappable without a button shape. See Color and tokens and Buttons and actions.
Separators, not cards. Comments already have a filled shape, the bubble. Putting each row in a second filled card would nest grey on grey, so rows are divided by hairlines. See Lists and Cards and panels.
Calm under a document. With the callout text style, grey surfaces and one small brand line, three of these rows can sit under an article without competing with it. See Reading first.
DESIGN.md mentions "the first 3 threads (bubble rows)" but does not name this component.
Accessibility
Each row is a single link at least 44 points tall in practice: 10 points of padding above and below a 28 point avatar line plus the bubble. The reply count is plain text and is read with the row. See Accessibility.
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-DISC-01 See the discussion on a document: One thread as a tappable row with its reply count
US-DISC-02 Read a thread: The row that leads into the thread
Related
Parent page: Discuss components. Compare DocItemRow, the row for documents, which does carry a chevron because it also lives in platform lists.
Wording: Voice and wording for "1 reply" and "N replies".
How it is built: Discuss: screens and components, Discuss: threading logic for how replies are counted and threads ordered.
Source: discuss.contract L69-L80.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime