This is the inventory behind the Forms and inputs pattern: each of the nine forms in the mobile app with its field types and submit behaviour, the smaller inputs, and what happens to a draft when the person leaves.
Every form
Form | Fields | Submit | Disabled until | Keyboard submit |
|---|---|---|---|---|
| Row "Open" | Field is not blank, not busy | Yes | |
Radio rows, then | Bordered "Connect" beside the field | Field is not blank, not checking | Yes | |
| Bar "Save" | Field is not blank | No | |
Name | Bar "Create" | Name, provider and model are set, not busy | No | |
Type | Row "Save provider" | Name set, key set when required, URL set when shown, server is safe for secrets | No | |
Name | Bar "Create", | Switch is on and the words exist | No | |
| Bar "Import", | The text checks as valid | Yes, from the name field | |
Display name | Row "Save" | Name is not blank and something changed | No | |
| Row "Enable" or "Change" | Field is not blank, not saving | No |
Smaller inputs follow the same rules: the search field in the Directory sheet (input type="search", filters as you type), the vault URL on Vault, and the "Rename key" alert, which is a dialog holding one field.
Drafts
Field values are kept by the app, not by the screen, so most drafts survive leaving and returning within a session: the thread reply, the comment sheet, the server address and the vault URL. The app holds one reply draft and one comment draft, not one per document. Some forms start clean every time they open: Open site, Import identity, Create identity (which generates new words) and New agent (the name). The agent message draft is cleared whenever you navigate inside the Agents tab. The provider form and ProfileForm keep their values in the component, so closing the sheet discards them. Across launches the app keeps choices (server, current identity, agent server, saved servers) and, as written in the code, the import name and rename drafts. The reason those two persist is not stated in the sources.
Related
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime