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.
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-READ-04 Open a Seed site by URL: The Open site form: field, submit control and enabling rule
US-ACT-04 Get notifications by email: The email form among the app forms
US-AGENT-02 Choose my agent server: This form among all forms
US-AGENT-03 Set up a model provider: This form among all forms
US-AGENT-04 Create an agent: This form among all forms
US-ID-01 Create an identity: Lists this form with every field and message
US-ID-02 Import an identity I already have: Lists this form with every status message
US-ID-07 Edit my public profile: Lists this form with every message
US-ID-08 Choose which Seed server I read from: Lists this form with every message
US-APP-07 Read clear, consistent wording: The nine forms with fields, submit control and enabling rule
Related
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime