Skip to main content

This is an exploration of how to prototype the GOV.UK app, not something to build on yet.

Timing

Screens that go on by themselves, as Chat’s replies arrive.

Going on by itself

A screen’s after goes on to another screen after a while, unless the person moves on first. Chat uses it for a question being sent, then the answer being generated, then the answer:

"register-sending": {
  "attributes": { "background": "chat" },
  "after": { "seconds": 0.6, "go": "register-generating", "history": "replace" },
  "scroll": "end",
  "components": [ … ]
}

replace keeps each step out of the history, so going back skips them.

Opening at the end

"scroll": "end" opens a screen scrolled to its end, as a conversation opens at its newest message.