Conversation
Description
The Conversation
type defines a high-level presentational component that
contains a nested sequence that a client must display to the end user. Mindstep
adopts a conversational approach to most aspects of a Screening so elements
within a conversation sequence are intended to be displayed sequentially.
Our User Interface Guidelines recommend that when multiple messages are to be displayed adjacent to each other that they are separated both visually and in time. For example, a "typing" or "thinking" animation could be used to indicate that a second message is due to follow the first, appearing for a duration of time that allows the end user to read and understand the first message.
Properties
sequence
(Array<AnyComponent>
, required)
Example
{
"type": "Conversation",
"sequence": [
{
"type" : "Message",
"text" : "This assessment has 3 parts to it."
},
{
"type" : "Message",
"text" : "The first part looks at common symptoms - we extrapolated these from our own 23,000 person study."
},
{
"type" : "ScienceBlock",
"title" : "Defining Brain Fog",
"description" : "We ran the world’s largest study on identifying which symptoms characterise Brain Fog.",
"publicationName" : "EAN Conference",
"tag" : "Peer reviewed 🧠"
},
{
"type" : "Button",
"label" : "Continue",
"onTap" : {
"type" : "User.TappedContinue"
}
}
]
}