Making changes

Added · Last updated
Prerequisites

A collection is in front of the actor: composing views has run, so selecting items is easy, and there is a place where changes can be shown. The operations are named: what can be created, changed, and removed, and what each is called. That naming happens before this sequence, and no pattern here does it.

A collection is in front of the actor, and the operations on it are named. Some later choices follow from earlier ones: if the actor changes items where they are shown, that also decides how those changes are saved and undone.

Selecting what to change and where to change it

  1. Decide how the actor selects what to act on — Selection

    Decide once how the actor selects what an action applies to: one item, a set, or a range; whole items, parts of items, or content inside them; whether the selection is kept through sorting, filtering, and paging; and whether the selection control is always visible, shown on hover or focus, or available only in a separate mode. Later steps rely on this selection model. Creating a new item selects nothing, so it skips this step.

  2. Put the actions for a selection beside it — Contextual actions

    Offer them for the selection the step before made. The places for changes chosen in the next step are opened from here.

  3. Decide where each kind of change is made

    Decide this for each kind of change, not once for the whole system. The same system can handle a title edit and a record import in different places. Fields whose questions are still changing can be asked one at a time in a conversation, designed in the encounter, until they settle into a form.

    One or more of:

    • Let the actor change the item where it is shown — Editing in place

      Let the actor edit the item in the same place it is displayed. Each change is saved as it is made, so there is nothing pending to cancel, and undoing a change is handled by the undo step.

    • Collect the change in a separate form — Form

      Use a separate form when the fields only make sense together, the input needs more space than the display has, the change applies to a set rather than the item being viewed, or the actor needs to review everything before submitting. The next sub-sequence shapes this form.

    • Split the change into dependent steps — Wizard

      Use a wizard only when earlier answers decide which options are available later, and the task is done too rarely for the actor to remember its structure. Make Back return to earlier steps without losing what was entered; the undo step provides this. If the steps do not depend on each other, use a form with sections instead.

Designing the form

Applies when: Some changes are now made in a form, either on one page or across the steps of a wizard. In both cases the form is made of fields, and each field asks the actor for one piece of information.

  1. Ask only for what is needed

    Include a field only if the system needs the value and cannot work it out itself. Each extra field adds effort and makes it more likely that the actor abandons the form.

  2. Choose the input format for each field

    Decide this per field from how variable human expression is and how costly a misreading would be.

    One or more of:

    • Accept loose input and confirm the reading — Forgiving format

      Accept free-form or unstructured input where people write the value in different ways and the system can parse it reliably, and show the interpreted value before it counts as agreed.

    • Shape the field to a strict syntax — Structured format

      Use a structured input—chunked into short readable groups for long codes—where a misreading would cause harm or the format is strict.

  3. Help the actor answer

    Two ways of helping the actor fill in the fields. They can be applied in either order, and most designs use both.

    In any order:

    • Offer a list where the value must come from a fixed set — Bounded choice

      Where the value must come from a set the actor did not define, let them choose from it, and pick a control that suits the size of the set. For a set too large to browse, use search, designed in composing views.

    • Pre-fill values the system can guess — Good defaults

      Fill in fields with the system's best guess before the actor reaches them. Where the system already knows the value, or takes part in the work itself, continue in assistance escalation.

  4. Divide a long form into sections — Sections · optional

    Split a long form into a small number of named sections that stay the same each time the form is used. Skip this step for a short form.

  5. Respond to invalid input — Validation

    Show the message next to the field, say what is wrong and how to fix it, and keep the message visible until the input is corrected. Confirm valid input as soon as possible and report errors only when the actor leaves the field, but once a field has failed, recheck it as the actor types.

Saving the work

Applies when: Changes are now made in place or through forms, and nothing is kept until the system stores it. Some of this is already decided: changes made in place are saved one at a time, and a form keeps its values until it is submitted.

  1. Store open-ended work automatically — Automatic saving

    Save continuously as the actor works, report quietly what was stored and when, and interrupt clearly if a write fails. Separate the acts that used to ride on a Save button—marking a version, discarding an attempt, or publishing—and give each its own control.

  2. Hold transactional edits as pending changes — Pending changes · optional

    Where interdependent fields, a batch of deletions, or a real storage constraint prevent field-by-field saving, hold edits in a visible pending state until the actor applies or discards the whole unit, with a committing control labelled for what it does and a reachable Cancel. Where two actors hold overlapping pending edits, the conflict surfaces at commit time and is resolved in working on the same thing. Skip this step for open-ended work that saves continuously.

  3. Separate publishing from saving — Draft and publish · optional

    When work is saved continuously and other people can see it, keep a working copy and add a separate publish action. Publishing marks the point where work is ready for others, and where review, versioning, and notifications can apply; who is notified and when is decided in attention and tempo. Skip this step if no one else sees the work.

Making changes safe

Applies when: The earlier steps have created actions that change, remove, and publish items, and these actions carry different risks. This sub-sequence covers all of them, not only deletion.

  1. Assess the consequences of each action — Action consequences

    Rate each action by how long recovery takes, how much it affects, and whether it triggers further changes, taking into account safeguards already in place, such as pending states and drafts. Call the result the action's risk rating. Publishing to people outside the team is often riskier than deleting.

  2. Match the deletion safeguard to the risk rating — Deletion

    Choose the safeguard from the risk rating, using the decision tree on the deletion page: undo alone for items that are easy to recreate, an inline confirmation, a dialog that explains the consequences, or a typed confirmation for deletions that cannot be undone. What a deletion covers is set by the selection model.

  3. Provide undo — Undo

    Provide undo for completed deletions, for changes made in place, and for Back in a wizard. An action that can be undone needs less confirmation, so update its risk rating once. Decide how many steps undo can go back and whether undo history is kept after the session ends; longer-term history, such as named versions, is returned to in memory and continuity.