DiscussComposer is the bar at the bottom of a thread where a person writes a reply. It is a named component defined in discuss.contract L152-L184. When the person has no identity it becomes a short prompt instead of a field.
Used by
Parent | Where |
|---|---|
Thread ( | Fixed under the scrolling comments, once the thread has loaded without error |
Nothing else uses it. The Compose comment sheet has its own full-page text area, and the Agents tab has a separate composer written inline; see Agents composer.
Props
Prop | Type | Effect |
|---|---|---|
| true or false | Field, or the identity prompt |
| string | The text in the field |
| string | Placeholder and accessible name. The thread passes "Write a reply…" |
| string | When set, shows "Replying to Name" above the field |
| true or false | Disables Send while a post is in flight |
| string | When set, shows a red line above the field |
| actions | Typing, Send, the close button on "Replying to", and "Create" |
| flag | For tests only |
Anatomy
A column with a 1 point top border in -exact-separator, padded 6 points above, 12 at the sides and 10 below, 4 points between lines.
With an identity, top to bottom:
Replying to, only when answering a specific reply: "Replying to Name" in -exact-footnote grey, with a close button (symbol:close, label "Reply to the thread instead") at the right.
Error, only after a failed post: the reason in -exact-footnote, -exact-system-red.
Without an identity: one row with "Create an identity to reply." in -exact-callout grey and a bordered button "Create". On a narrow width the button wraps under the sentence.
Variants and states
State | What shows |
|---|---|
Empty | Placeholder; Send disabled |
Text entered | Send enabled, filled |
Posting | Send disabled; the text stays until the answer arrives |
Posted | The field empties and "Replying to" clears. The keyboard stays up ( |
Failed | The red line, for example "The server refused the comment (409): …"; the draft is kept |
Replying to a reply | The line above the field. Tapping "Reply" under a comment also focuses the field |
No identity | The prompt row, no field |
Rules for use
Use it pinned outside the scrolling list, as the last child of a screen that sets interactive-widget="resizes-content", so it rides the keyboard.
One per screen. Retarget it with "Replying to"; do not add a field per comment.
Send is the only filled control. Cancel-type controls stay plain.
Keep the error next to the field, where the person is looking.
Why it looks this way
It is the platform's message field. A rounded outline with a round filled arrow at its trailing edge is how Messages draws its composer, and Exact's guidance says "a chat's composer is chat-thread's". The recipe supplies the behaviour too: "interactive-widget keeps the composer over the keyboard; Send keeps it up." See Composers and How the framework shaped the design.
Always present. DESIGN.md: "Composer pinned at bottom (textarea + Send)". Replying is the main act on a thread, so it costs no navigation.
Grows, to a limit. One line at rest keeps the transcript visible; 140 points is roughly six lines of body text, after which the field scrolls so the thread is never pushed off screen (the six-line figure is inferred from the size).
Says who you are answering. The single field can target the thread or one reply. The "Replying to" line makes the target visible and reversible, by name. See Names, not identifiers.
A missing identity is a next step, not a dead end. The prompt keeps the bar's place and offers one action. See Honest state. "Create" is bordered, not filled: Exact notes that a plain button on iOS is "tinted text", "so one that must read as a button there says "bordered"". See Buttons and actions.
Touch confirms the post. See Refresh, haptics and progress.
Difference from DESIGN.md: it describes the no-identity composer as "disabled with a "Create an identity to reply" link". The built version removes the field and shows the sentence with a bordered button. DESIGN.md's radii (10, 18, full) do not include the field's 20.
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-04 Reply in a thread: The pinned field, the "Replying to" line, the error line and Send
US-DISC-05 Be guided to create an identity before commenting: The "Create an identity to reply." line and "Create" button
US-APP-07 Read clear, consistent wording: The reply bar
Related
Parent page: Discuss components. Shown with: DiscussBubble.
Visual language: Color and tokens, Symbols and icons, Accessibility.
How it is built: Discuss: screens and components, Discuss: posting a comment.
Source: discuss.contract L152-L184; Exact's chat-thread recipe.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime