DiscussBubble is how a comment looks everywhere in Seed Exact. It is a named component defined in discuss.contract L49-L67. One comment is one bubble, with the person who wrote it beside it.
Used by
Parent | Where |
|---|---|
The root comment of a thread, in the document's discussion and in All comments. Always with | |
Thread ( | Every comment of the thread; |
Document and site home ( | Through DiscussSection and DiscussThreadRow: the root comment of each thread shown under "Discussion" |
Props
Prop | Type | Effect |
|---|---|---|
| a comment | Author name and avatar, time, Markdown text, depth, and the name of the person it answers |
| numbers | The app's minute clock and time zone, for the relative time |
| true or false | Larger text, for a thread's root |
| string | For tests only |
Anatomy
A row, 10 point gap, aligned to the top.
Avatar at size 28.
A column taking the remaining width, 4 points between lines:
Name line: the name in -exact-subheadline, weight 600, -exact-label; then the time in -exact-footnote, -exact-secondary-label, on the same baseline. The line wraps if the name is long.
"Replying to Name" in -exact-caption1 grey, only when the comment answers another reply and not the thread's root.
The bubble: padded 8 by 12 points, radius 18, filled with -exact-secondary-background. It hugs its text and never grows past the column. The text is Markdown in -exact-callout (-exact-body when big), -exact-label, selectable, and long words such as URLs break.
The bubble's text starts 38 points from the row's left edge (28 for the avatar, 10 for the gap). Other components align to that edge: the "N replies" line of a thread row and the "Reply" button of a thread both use a 38 point inset.
Variants and states
Case | Result |
|---|---|
| Text in |
Depth 0 or 1 | No indentation |
Depth 2 and deeper | The whole row is padded 16 points per level past the first, up to 48 points. Deeper replies stay at that indent and rely on the "Replying to" line |
Empty text | The bubble reads "(empty comment)" |
No profile name | The name is a shortened key, such as "zDnaeq...1AVA" |
No image | The Avatar fallback: a green disc with a white initial |
Time | "now", "24 min. ago", "1 hr. ago", "1 day ago", "2 days ago"; a week or older, or in the future, shows the date ("Feb 26, 2025") |
The bubble has no pressed, selected or "mine" state. Your own comments look like everyone else's.
Rules for use
Use it for every comment on a document.
Do not make the bubble itself a button. A parent wraps it in a link (DiscussThreadRow) or puts a "Reply" button under it (Thread).
Do not use it for agent chat. That transcript has its own message parts; see Chat messages and the streaming reply.
Use big for one comment per screen at most: the one the screen is about.
Why it looks this way
A bubble says "someone said this". The shape separates comment text from document text at a glance, which matters because both sit on the same page under a document. The 18 point radius is the one DESIGN.md sets for bubbles. See Spacing, radii and sizes.
Left-aligned, with a face. DESIGN.md: "all left-aligned with avatar + name + relative time, since it's a group". Exact's chat-thread recipe makes the same distinction: "Yours: no name; a group names others'." A document's discussion is a group, so every bubble is named, including yours.
Grey, not brand. The fill is the platform's secondary background, the same surface as code blocks and cards. brand.fill is described in the tokens as "a surface under body-size white text (my bubbles, badges)" and is kept for the Agents chat. See Color and tokens.
Text one step below body. Comments use -exact-callout so the document's -exact-body paragraphs stay the most prominent text on the page; the thread's root is promoted to body because on that screen it is the subject. See Typography and Reading first.
People, not keys. The name leads. A key appears only as the fallback for an account that has published no name. See Names, not identifiers.
Not built: the comment carries a link to its author's profile, but the bubble does not use it. Tapping a name or face in a comment does not open the Author profile.
Difference from DESIGN.md: it names this CommentBubble(author, avatar, time, md) in the shared ui.contract.
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: The root comment inside each row: face, name, time, text
US-DISC-02 Read a thread: Every comment: face, name, time, "Replying to", Markdown text
US-DISC-03 Comment on a document: The posted comment as the thread root
US-DISC-04 Reply in a thread: The new reply, indented, with "Replying to Name"
US-APP-03 Use the app in light or dark: A painted bubble on the secondary background
US-APP-06 See people and spaces by name: Author name and Replying to on a comment
Related
Parent page: Discuss components. Used with: DiscussComposer.
Visual language: Light and dark, Accessibility, Voice and wording.
How it is built: Discuss: screens and components, Discuss: threading logic.
Source: discuss.contract L49-L67.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime