Sub topic 2
1. Visibility of system status
This chapter assumes you have used websites and apps every day and know what a user interface is. Basic HTML helps with the code examples but is optional. It also assumes you have read the overview of what usability heuristics are.
The first heuristic reads: the design should always keep users informed about what is going on, through appropriate feedback within a reasonable amount of time. The "system" is the product as a whole: the server, the network, the app's internal state, and the device. Users cannot see any of it. The interface is their only view, so it has to report what the system is doing now and what happened as a result of their last action.
What the heuristic asks for
A user should be able to answer four questions at any moment without guessing.
- Did the system register my action?
- Is it working on it right now?
- How long will it take, or how far along is it?
- What is the current state: saved or unsaved, connected or offline, selected or not?
When the interface leaves any of these unanswered, users fill the gap with their own guesses. They click a button twice, reload a page mid-upload, or assume nothing happened. The first three questions describe feedback during an action. The fourth describes persistent state, which matters just as much and is easier to forget.
Response-time thresholds
Nielsen's guidance on response times comes from long-standing perceptual research and gives you practical cutoffs.
| Delay | How users perceive it | What to show |
|---|---|---|
| Up to about 0.1 seconds | Instant. The user feels they caused the result directly. | Nothing extra. Show the result. |
| About 1 second | Noticeable, but the user's flow of thought continues. | Little or nothing. A pressed state on the control is usually enough. |
| Up to about 10 seconds | The user's attention starts to drift. | A busy indicator, so they know the system is working. |
| More than 10 seconds | The user will switch tasks or leave. | A progress indicator with an estimate, plus a way to cancel or continue elsewhere. |
These numbers are guides rather than laws. The point is that the amount of feedback should grow with the length of the wait.
Choosing the right kind of indicator
There are three common patterns, and they suit different situations.
- Determinate progress shows a measured fraction, such as "62%". Use it when the system knows the total, as in file uploads, installs, and multi-step forms.
- Indeterminate progress shows that work is happening without a measure, such as a spinner. Use it when the duration is unknown and likely short, roughly 2 to 10 seconds.
- Skeleton screens show the layout of the incoming content as grey placeholders. Use them when loading a page or list, because they also tell users what shape the result will take.
Here is a determinate indicator in HTML. The native progress element already exposes its value to assistive technology, and the label tells the user what is being tracked.
<label for="upload">Uploading report.pdf</label>
<progress id="upload" value="62" max="100">62%</progress>If you leave out the value attribute, the browser renders an indeterminate bar. That is the correct markup for unknown duration, so you do not need a custom spinner for it.
A feedback loop in code
Feedback that appears only for the success case is incomplete. The interface should move through visible states: idle, working, then done or failed. The example below is a complete page you can save and open in a browser. It simulates a save that takes about a second and fails every other time, so you can watch both outcomes.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Save feedback demo</title>
</head>
<body>
<button id="save" type="button">Save draft</button>
<p id="status" role="status"></p>
<script>
const button = document.getElementById("save");
const status = document.getElementById("status");
let attempt = 0;
function fakeSave() {
attempt += 1;
const shouldFail = attempt % 2 === 0;
return new Promise((resolve, reject) => {
setTimeout(() => (shouldFail ? reject(new Error("offline")) : resolve()), 1000);
});
}
button.addEventListener("click", async () => {
button.disabled = true;
status.textContent = "Saving...";
try {
await fakeSave();
status.textContent = "Saved at " + new Date().toLocaleTimeString();
} catch (err) {
status.textContent = "Could not save. Your changes are still on this page. Try again.";
} finally {
button.disabled = false;
}
});
</script>
</body>
</html>Four details in this code matter.
- The button is disabled while the request runs, which both signals "working" and prevents duplicate submissions.
- The
finallyblock re-enables the button on every path, so a failure never leaves the interface stuck. - The success message includes a timestamp. A bare "Saved" gives no way to tell whether it refers to this save or an earlier one.
- The element with
role="status"is a polite live region. Screen readers announce changes to its text without moving focus, so non-visual users get the same information. A visual-only spinner fails the heuristic for them.
The flow of states looks like this.
Every arrow into a new state should have a visible change attached to it. If a transition has no visible change, users cannot see that it happened.
Examples in real products
- Upload and download dialogs show bytes transferred, speed, and time remaining. Good ones update the estimate smoothly rather than jumping between "2 minutes" and "20 minutes".
- Delivery tracking shows a sequence of states (ordered, packed, shipped, out for delivery). The user never has to wonder whether the order was received.
- Document editors show "Saving..." followed by "All changes saved". The persistent status answers the fourth question and removes the urge to press save repeatedly.
- Navigation menus highlight the current page. This is status too: it tells users where they are in the site.
- Form fields show a character counter, for example "240 / 280". The counter reports the state of the input as it changes.
- Connection status appears when a chat app goes offline and tells the user that messages will be sent later, rather than silently queuing them.
Common violations and edge cases
Silent failure. The action does nothing visible. Users click again, which can create duplicate orders or posts. The fix is an immediate response to the click, even if the real result takes longer.
Fake or stalled progress. A bar that reaches 90% and sits there for a minute is worse than a spinner, because it makes a promise it cannot keep. If you cannot measure progress, use an indeterminate indicator. If you do measure it, base the bar on real work done, not a timer.
Stale status. A "Saved" label that stays on screen after the user types again is wrong. Status must change when the underlying state changes. In the example above, you would reset the status to "Unsaved changes" on the next input event.
Over-reporting. Notifying users about every tiny background step creates noise and conflicts with the aesthetic and minimalist design heuristic. Report what the user needs for their next decision. A good test is whether the information changes what the user will do.
Optimistic updates. Many apps show the result of an action before the server confirms it, such as a message appearing in the thread at once. This gives instant feedback, but you must handle the case where the server rejects it. Mark the pending state (for example, a faded message with a clock icon) and show a clear failure with a retry option if it does not go through.
Short flashes. A spinner that appears for 80 ms and vanishes reads as a flicker. A common approach is to delay showing the indicator for a few hundred milliseconds and, once shown, keep it visible for a minimum time.
Time estimates. Wrong estimates damage trust more than no estimate. Prefer ranges ("about 2 to 3 minutes") or steps ("step 2 of 4") when you cannot predict duration precisely.
Checking an interface against this heuristic
When you evaluate a screen, trigger each action and watch for the answer to the four questions. These prompts help.
- After a click, is there a visible change within about 0.1 seconds?
- For waits longer than a second, is there an indicator that fits the length of the wait?
- Is there a visible end state for success and for failure?
- Does persistent status (saved, offline, selected, current page) update when the state changes?
- Is the same information available to keyboard and screen-reader users?
A "no" to any of these is a candidate violation. Later chapters cover how to record these findings and rate their severity.
Exercise
A "Submit order" button takes about 4 seconds to process. When clicked, nothing changes on screen, and then the page suddenly shows a confirmation. Some users click the button two or three times. Name the violated heuristic, explain how the problem arises, and propose two concrete changes.
Show answer
The design violates visibility of system status. For about 4 seconds the interface gives no sign that the click was registered or that work is under way, so users assume it failed and click again, which can create duplicate orders. Two fixes: (1) disable the button on the first click and show a busy state such as "Placing order..." with an indeterminate indicator, then re-enable it if the request fails; (2) announce the state to assistive technology with a live region (role="status") and end with a clear confirmation or a clear error message that states what to do next.
Exercise
A document editor shows the text "All changes saved" in the corner. The user types a new paragraph, but the text stays the same until the next autosave 30 seconds later. Which failure from this chapter is this, and how would you fix it?
Show answer
This is stale status. The label no longer matches the real state, since the document now has unsaved changes. Update the label as soon as the user edits, for example to "Unsaved changes", switch to "Saving..." when the autosave starts, and return to "All changes saved" (ideally with a time) only after the save succeeds.