Interaction design
Interaction design decides how people move through the product and what the product says back to them. Draw the user flow before the screens, organise content with the customer's words, design every state of a screen (empty, loading, error), and give feedback for every action. Nielsen's heuristics are a quick checklist for all of this.
Author: bezzad
Contents
The problem: beautiful screens, a broken experience
The new checkout of our online shop looks great in the design file. After launch, the support team gets these messages:
- “I was charged twice.” After tapping “Pay”, nothing happened for four seconds, so the customer tapped again.
- “Is the site broken?” A customer opened the cart with no items and saw a white page.
- “What does Error 422 mean?” The card form showed only a code.
- “I had to log in, so I left.” The design showed only the path for logged-in customers.
Each screen was designed. The moments between the screens, and the less happy cases, were not. That is the job of interaction design.
Start with the flow, not the screen
A user flow shows the steps a person takes to reach a goal, and the decisions on the way. Draw it with simple boxes before you draw any screen.
- Start from the goal. For example: “Buy the items in my cart.”
- Write each step as a box, and each decision as a diamond. For example: “Is the customer logged in?”
- Draw the happy path first, then add the other paths: a guest, a payment that fails, an item that is sold out.
- Count the steps. Every step is a place where people can leave. Ask for each one: “Is this step needed? Can it be later or automatic?”
The flow also gives engineers and the product manager something to discuss before anybody draws pixels. Missing paths are much cheaper to find here than after launch.
Information architecture
Information architecture (IA) is how the content is organised and named. In a shop it decides the categories, the menu and the names on them.
- Use the customer’s words, not the company’s words. The company says “Textile accessories”. The customer looks for “Scarves”.
- Card sorting helps you create a structure. People sort cards with product names into groups and name the groups.
- Tree testing checks a structure. People see only the menu tree, with no design, and try to find things. For example: “Where would you find a phone charger?”
- Each item must have one clear home. If people cannot guess if “Smart watches” is under “Phones” or “Accessories”, they get lost. Search and links between categories help.
Navigation
Navigation helps people answer three questions: Where am I? Where can I go? How do I go back?
- A main menu with a small number of clear top-level items.
- Breadcrumbs on product pages, for example: Home, Women, Shoes. People who arrive from a search engine see where they are.
- Search for people who know what they want. Show the results even when there is a small typo.
- On mobile, a bottom tab bar keeps the main places one tap away. A menu hidden behind a hamburger icon is often used less, because people do not see what is inside.
- The current place is marked in the menu, so people know where they are.
Forms
Checkout is mostly a form. Small form decisions have a big effect.
- Ask only what you need. Every extra field is extra work and another reason to leave. Does the shop really need the date of birth?
- Allow a guest checkout. Offer to create an account after the order, when it is a benefit, not a wall.
- One column. People read a form from top to bottom. Two fields side by side are easy to miss, except short pairs that belong together, like expiry date and security code.
- A visible label above each field. A placeholder is not a label. It disappears when the person types, and its light grey text is hard to read.
- The right input type. An email field shows the email keyboard on a phone, and a number field shows the number keyboard.
- Validate at the right time. Check a field when the person leaves it, not on every key press. Never show an error before they have had a chance to type.
- Write errors that help. Say what is wrong and how to fix it, next to the field: “The card number has 15 digits. It needs 16.” Not “Invalid input” or “Error 422”.
- Keep what people typed. After an error, never empty the whole form.
Design every state of a screen
A screen is not one picture. It has several states, and each one needs a design.
- Ideal: the normal case with real data. Use real product names and long names too, not only “Lorem ipsum”.
- Empty: nothing is here yet. Say why and what to do next: “Your cart is empty” and a button to “Browse new arrivals”.
- Loading: show that something is happening. A skeleton (grey shapes where the content will be) feels faster than a blank page, and the layout does not jump when the content arrives.
- Error: say what happened in plain words, and offer a way out: “We could not load your cart. Try again.”
- Partial: some data is there, some is not. For example, one item in the cart is now sold out.
Feedback for every action
Every action needs an answer from the product. Without it, people repeat the action or think it failed.
Three response time limits from usability research (described by Jakob Nielsen) are a useful guide:
- About 0.1 seconds: the response feels instant. A button that changes when pressed must react this fast.
- About 1 second: people notice the wait, but their flow of thought is not broken. Show a small sign that work is happening.
- About 10 seconds: people start to lose attention. For longer work, show progress and let people do something else.
For the “charged twice” problem:
- When the customer taps “Pay”, the button changes at once to “Paying…” and cannot be tapped again.
- The engineers also make the payment request safe to repeat (idempotent), because a double tap is not the only way a request is sent twice.
- After success, show a clear confirmation page with the order number. Also send an email.
Also prefer undo over confirm for small actions. “Item removed. Undo” is faster than “Are you sure?” for every removal. Keep confirm dialogs for actions that cannot be undone, like cancelling a paid order.
Nielsen’s ten heuristics
Jakob Nielsen’s ten usability heuristics are broad rules of thumb. They are a quick checklist for a design review.
| Heuristic | In our shop |
|---|---|
| 1. Visibility of system status | “Paying…” on the button, and a step indicator in checkout. |
| 2. Match between the system and the real world | “Delivery” and “Total”, not internal words like “Fulfilment”. |
| 3. User control and freedom | Back works, and a removed item can be undone. |
| 4. Consistency and standards | The cart is where people expect it, at the top corner. |
| 5. Error prevention | The date picker does not allow a delivery date in the past. |
| 6. Recognition rather than recall | Show the chosen size in the cart, so nobody must remember it. |
| 7. Flexibility and efficiency of use | Saved addresses for returning customers. |
| 8. Aesthetic and minimalist design | No banners inside the payment step. |
| 9. Help users recognize, diagnose, and recover from errors | “The card number needs 16 digits”, next to the field. |
| 10. Help and documentation | A short link to the return policy in checkout. |
A heuristic evaluation is a review where a few evaluators check the design against these rules, each one alone first, and then combine their lists. It is cheap and fast, but it does not replace testing with real users. Experts guess what users will do. Users show it.
Two laws, used with care
Fitts’s law
Fitts’s law says that the time to reach a target depends on the distance to it and its size. A bigger and closer target is faster to hit.
- Make main actions big enough. The “Pay” button is large and easy to reach with a thumb.
- Keep related things close. The quantity buttons sit right next to the number.
- Give touch targets a minimum size. WCAG 2.2 (level AA) asks for at least 24 by 24 CSS pixels, with some exceptions. Apple’s guidelines suggest 44 by 44 points, and Material Design 48 by 48 dp.
Hick’s law
Hick’s law says that the time to decide grows with the number of choices, but not in a straight line: it grows more slowly as you add more choices.
- It is about choosing between simple, similar options. For example, picking one of several shipping options.
- Use it as a reason to remove options that nobody needs, and to show a good default. For example, preselect standard delivery.
- Do not use it to say “never more than seven items in a menu”. That rule is a common myth, and the famous “seven, plus or minus two” from George Miller is about short-term memory, not menus. When people read through a menu to find a word, they are searching, not making a simple choice, so the law does not apply in a simple way. Test the real menu instead.
Common mistakes
| Mistake | Result | Better way |
|---|---|---|
| Designing only screens, not the flow | Missing paths found after launch. | Draw the user flow with all paths first. |
| Only the happy path | No guest path, no failed payment, no sold-out item. | Add the other paths to the flow. |
| Company words in the menu | People cannot find products. | Card sorting and tree testing with customers. |
| Placeholder as the label | People forget what the field was for. | A visible label above the field. |
| Errors as codes | People do not know how to fix it. | Plain words next to the field, with the fix. |
| No empty, loading or error state | White pages and “is it broken?”. | Design every state of every screen. |
| No feedback after “Pay” | Double taps and double charges. | Instant feedback, a disabled button, a safe retry. |
| Heuristics instead of users | Expert guesses only. | Heuristic review and usability tests. |
Summary in 7 lines
- Draw the user flow with boxes before the screens, with the happy path and the other paths.
- Every step is a place to leave. Remove steps, and allow a guest checkout.
- Organise content with the customer’s words. Card sorting creates a structure, and tree testing checks it.
- Forms: only needed fields, one column, visible labels, and helpful errors next to the field.
- Design every state: ideal, empty, loading, error and partial.
- Give feedback for every action, within about 0.1 seconds for a button press.
- Use Nielsen’s heuristics as a checklist, and Fitts’s and Hick’s laws with care, never instead of testing.