I fixed the blank loading screen twice, and it was still broken

This is a postmortem on a bug I got wrong twice. It was reported once, I shipped two fixes, and after both of them the screen was still broken. The bug was about a loading screen, but what I want to write about is how I wrote the issues for it, because that’s where it went wrong.

What users saw

Our app downloads a language’s content to the device before you can practice it. Users ran into three versions of the screen that appears during that download.

The original bug. If you picked certain languages, or opened the app before its content was on the device, you got an empty screen with a pause button for as long as the download took. If the download never finished, the screen stayed empty forever. It was reported as a major UX problem, and that was right. People don’t read a blank screen as “busy, please wait.” They read it as “broken.”

My first fix. I added a “Downloading” caption and, under it, one line per language with its name and a percentage, like Japanese 5%.

My second fix. This was a larger cleanup. I made all of the app’s empty and waiting screens draw from one shared table of states. The states that wait on data now show an animated loading indicator in place of their caption. For the download state, that removed the word “Downloading”, which was the only word on the screen that explained anything. What was left was a spinner over Japanese 5%. For one language whose content had never been made available on the server, it was a spinner over Chinese 0%, forever, with no error.

Honestly, the third version is closer to the original bug than to a finished screen. If you don’t already know the app downloads languages before practice, Japanese 5% is a number with no explanation. Five percent of what? Why is this happening? How long will it take? Is something wrong?

What I got wrong the first time

I answered my question, not the user’s. I asked “what state is the device in?” The user is asking “what’s happening, and should I wait?”

I let the data model write the copy. The download code knows a language and how much of it has arrived, so the screen showed a language and a percentage. When I re-read my design notes, they basically listed the fields I had available. They didn’t describe what a person needed to read.

I dropped the standard the report gave me. The report said the problem was that the app looked broken. When I filed the issue I rewrote that as “show the wait,” and anything that showed a wait counted as done. “Does this look broken?” is a test someone runs on the screen. “Is a wait shown?” is a test a developer runs on the code. I kept the second and lost the first.

I never specified failure. The issue covered waiting and said nothing about a download that stalls or fails, so a stall just looked like more waiting. A progress indicator with no failure state turns into a blank screen with a number on it as soon as anything goes wrong. Something did go wrong.

Why the second fix made it worse

The second fix was broader and more careful, and it still made the download screen worse. Three reasons:

I treated my earlier wording as finished. I copied the download text into the new table word for word. That issue was about every other empty state, so I never re-read Japanese 5% as a first-time user.

I applied a rule for the common case to the exception. “States that wait on data show the spinner instead of their caption” works for states whose caption says what they’re waiting for: “Opening your languages,” “Connecting,” “Fetching your progress.” In the download state, the lines under the caption only name languages, so the caption was the only thing explaining what was going on. I checked the rule against the states I wrote it for, not against every row in the table.

Code review couldn’t catch it. On our team the design spec is the source of truth, and implementers follow it. A reviewer checks that the code matches the issue and the spec, and mine matched exactly. A UX mistake written into the spec gets through every review, so the only place to catch it is when the issue is written. That was my job, and I didn’t do it.

The endless 0% was the same mistake one layer down. A language that had a listing but no content counted as “downloading, 0% done,” because that’s what the data looked like. I never asked what a user would think of a zero that never moves.

The pattern

Each time, I shipped what the data made easy to show, named it after the internal state it represented, and called it done when the code matched that description. I never ran the one test the original report gave me: if a stranger saw this screen cold, would they know what the app is doing, whether to wait, and whether something is wrong?

What I’m changing

  • Write the user’s sentence first. Before any state table, I’ll write the screen’s text the way a person will read it, and check that it answers four questions: what’s happening, why, what happens next, and how you’d know if it failed. “Downloading your languages. Each language is saved on this device so you can practice anywhere. Practice starts as soon as the first one arrives. Japanese 5%, 2 of 38 MB” answers all four. Japanese 5% answers none.
  • Copy the report’s standard into the issue word for word. If the report says “the app looks broken,” the acceptance test is “a first-time user can’t mistake this screen for a broken app,” not “a message is shown.”
  • Give every progress indicator three states: waiting, progressing and failed. If I specify the first two and skip the third, I’ve specified a blank screen for the failure case. Every wait needs a defined end, both for when it finishes and for when it can’t.
  • Re-read the text whenever a shared rule touches it. When I fold screens into a table or a shared component, I’ll re-read each row’s rendered text as a user, especially the rows the change isn’t about.
  • Don’t let the available fields become the sentence. The data a component has is where its text starts, not where it ends. If the text is just a noun and a number, it’s a debug view.
  • Treat an unexplained zero as a bug. A percentage stuck at zero with no explanation looks like a hang to the user. The spec should say what the screen shows before progress starts, and the code should tell apart “not started,” “not available” and “failed.”

I’ve fixed the screen properly now, with a full explanation and a real failure state. The bigger fix is in how I write these issues. A screen that matches its spec perfectly can still fail the user if the spec was wrong, and I’m the one who writes the spec.

Advanced search: filter by model or tag