Patterns
Quick entry
Quick entry adds something to the timeline, whatever its kind. It always happens "now", in one short form that changes with the kind, and ends in a confirmation.
Where it starts
- Phones: a
Fablabelled "Add" above the navigation bar opens aSheetfrom the bottom edge. - Web: an ink "Add"
Buttonin theAppBar, or a form card in the side column. - Shortcuts: the spotlight adds its own item; an "Attach file" opens the same form with the project filled in.
The form
- Title: "Add at 14:32", the time the entry will be added at, editable with a
TimeField. - Kind: a full-width segmented control with one segment per kind. The fields below change with it.
SegmentedButtonis the control today. - Fields: a label above each, the fewest that make sense:
TextFieldfor what,NumberFieldorTextFieldfor an amount (in mono),Selectfor a list or a project. - Action: one ink button that names the outcome: "Add an entry".
Rules
- Do keep the person on the same screen: the sheet closes and the new row appears in the timeline, with a
Snackbarand "Undo". - Do remember the last kind and the last project used.
- Do validate on submit, next to the field, with an example of what fits: "Enter an amount, like 12.50".
- Don't ask for anything the product can fill in itself (the time, the person).
- Don't use the accent for the form's button when the spotlight is on the same screen: the accent belongs to the spotlight.
Components
Fab, Sheet, SegmentedButton (SegmentedControl's look coming), TextField, NumberField, TimeField, Select, Button, Snackbar.