DiscussComposer
The reply bar pinned under a thread: a growing text field with a filled Send button, a Replying to line, an error line, or a prompt to create an identity.

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 (DiscussThreadScreen)

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

signedIn

true or false

Field, or the identity prompt

draft

string

The text in the field

placeholder

string

Placeholder and accessible name. The thread passes "Write a reply…"

replyName

string

When set, shows "Replying to Name" above the field

posting

true or false

Disables Send while a post is in flight

error

string

When set, shows a red line above the field

edit, send, cancelReply, openCreate

actions

Typing, Send, the close button on "Replying to", and "Create"

active

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.

    Field row: a rounded outline (1 point -exact-separator, radius 20) holding a textarea with no border or background of its own, and a filled Send button (symbol:send, label "Send") at the bottom right. The field starts one line tall and grows with its content up to 140 points, then scrolls.

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.

At rest: the outlined field with its placeholder and a disabled Send arrow, above the tab bar.
With the keyboard up, the composer stays attached to it and the transcript shrinks to fit.

Variants and states

State

What shows

Empty

Placeholder; Send disabled

Text entered

Send enabled, filled brand

Posting

Send disabled; the text stays until the answer arrives

Posted

The field empties and "Replying to" clears. The keyboard stays up (retainFocus on Send) and a success haptic plays

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).

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

Unsubscribe anytime

Attributes
name
DiscussComposer
summary
The reply bar pinned under a thread: a growing text field with a filled Send button, a Replying to line, an error line, or a prompt to create an identity.