This is the comparison behind the Composers pattern: the three places a person writes in the mobile app, attribute by attribute, taken from the Contract files.
The three composers
Thread reply | Compose sheet | Agents message | |
|---|---|---|---|
Screen | |||
Defined as | Named component DiscussComposer | Inline in | Inline part, the Agents composer |
Presentation | Bar pinned under the list | Modal sheet, the field fills it | Bar pinned under the transcript |
Field |
|
|
|
Placeholder | "Write a reply…" | "Write a comment…" | "Message" |
Send | Round | Bar button "Post", "Posting…" while sending | Round |
Send disabled | Draft is blank or a post is in flight | Draft is blank or a post is in flight | Draft is blank or a send is in flight |
Context line | "Replying to {name}" with a close button, when replying to a reply | "Commenting as {name}" | None |
Error | Red footnote above the field | Red footnote above the field | In the transcript, as AgentError or a red message row |
No identity | "Create an identity to reply." with a bordered "Create" button, in place of the field | A centered panel: person symbol, "Create an identity to reply.", an explanation, a filled "Create an identity" button. "Post" is hidden | No treatment of its own: the Agents list asks for an identity before a session can be opened |
After sending | Draft and reply target clear, success haptic | Sheet closes and the new thread opens, success haptic | The message appears at once as a bubble, the draft clears when the server accepts it, the transcript scrolls to the end |
When to use which
Situation | Composer |
|---|---|
Adding to a conversation that is on screen | A pinned bar. The context stays visible while typing |
Starting something new from a reading screen | A sheet. The document should not be covered by a permanent bar, see Reading first |
A short setting or a name | Not a composer. Use a form field |
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-03 Comment on a document: The compose sheet compared with the other composers
US-DISC-04 Reply in a thread: The thread composer next to the compose sheet and the agents composer
US-AGENT-05 Chat with an agent: How this composer differs from the comment composers
US-APP-07 Read clear, consistent wording: The three composers side by side
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime