1. Home
  2. Patterns
  3. 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 Fab labelled "Add" above the navigation bar opens a Sheet from the bottom edge.
  • Web: an ink "Add" Button in the AppBar, 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

  1. Title: "Add at 14:32", the time the entry will be added at, editable with a TimeField.
  2. Kind: a full-width segmented control with one segment per kind. The fields below change with it. SegmentedButton is the control today.
  3. Fields: a label above each, the fewest that make sense: TextField for what, NumberField or TextField for an amount (in mono), Select for a list or a project.
  4. 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 Snackbar and "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.