Pixel-perfect mockups, wrong in a real browser

ProductUICSSMockupsAI agents

Syahmi RafsanjaniCo-founder, CTO

Our new order system matched its mockups closely. Then, on switchover night, I scrolled the inbox on my own laptop and the whole page came along for the ride.

At 2:26 in the morning, about an hour after we switched to Flair v2, an agent opened a fix for a bug I had just reported. Scrolling the inbox’s right-hand panel moved the whole page.

Nothing about it was in the mockups. The inbox looked exactly like its board: chat list on the left, the conversation in the middle, the sales panel on the right. Every column was where it should be. It just didn’t behave.

Flair v2 was built by Claude agents from a written spec and a canvas of 65 mockup boards. The agents matched those boards closely. So what couldn’t they see from a picture?

What a static board doesn’t say

A mockup is a screenshot of a screen at rest. It shows layout, type, spacing and colour very well. It says nothing about what happens when you move.

Does this panel scroll on its own, or does the page scroll? What happens when you reach the bottom of a list and keep scrolling? Does the Continue button stay pinned while the form scrolls under it? Which actions sit in plain view, and which belong in a ⋯ menu? A picture can’t answer any of that, so an agent reading the picture has to guess.

You’d expect phones to be the problem, where space is tight. On phone it was mostly fine. The worst problems were on desktop, in the inbox, the screen staff use most.

Switchover night, four small fixes

Here is what that night looked like, in Malaysia time. Each one started as my own bug report, and an agent opened the fix.

OpenedPRWhat it fixed
2:26#934Keep the inbox’s right panel scroll inside the panel
2:35#935Pin the customer form’s Back/Continue bar on every step on phone
2:38#936Stop the browser bounce dragging the whole inbox page
2:51#937Keep unread rows’ screen-reader text from stretching the page

The first fix was about scroll chaining. The inbox’s columns did scroll on their own. But once a panel reached its end, the next scroll passed to the page behind it, which bounced on a Mac trackpad. One CSS rule, overscroll-behavior: contain, stopped it at the column.

It wasn’t enough. On my Mac the inbox still dragged up and showed a blank area below the columns. That was the browser’s rubber-band bounce on the page itself. The second fix turns that bounce off, but only on full-height pages like the inbox.

Then I could still scroll down into blank space. The cause was invisible: each unread badge carries hidden text for screen readers, ” unread”. That text was positioned against the page, not its column, so in a long chat list it sat far below the screen and stretched the document. We’d had the same bug in Flair v1. The test for that screen used 25 rows, and none of them were unread.

The phone fix came from a different place. I was testing the live customer confirmation page on my own phone. On the last step, the Back/Continue bar stayed pinned to the bottom. On steps 1 and 2 it scrolled away. The phone board for that form only drew step 3, so the other steps were never specified. The agent wasn’t wrong. It had simply never been told.

Why only a person caught these

None of these were hard fixes. Each PR was merged within a quarter of an hour. What made them hard was noticing them at all.

Every check we had was passing. Every PR that touched a screen came with before and after screenshots against its board, and a reviewer compared them. That catches a screen that looks wrong. It can’t catch one that moves wrong. The pages fit the window at every size the tests measured. The problem only showed up with a real trackpad, real momentum, a real list with unread chats, a real phone in my hand. Opus works from what it can read, and the mockups are static. So many UI issues were only caught by using the app, before and after the switchover.

Fixes like these weren’t just a switchover-night thing. Dozens of PRs during the build were the same kind of work: making screens behave, not just look right.

That’s the part of the build I kept for myself. The agents decided a lot. How it feels on a real phone and on the web, I decided by using it.

The lesson

A mockup shows a screen at rest. People only ever use it in motion.

What I’d tell anyone building from mockups with AI

  • Write down behaviour, not just looks. Which areas scroll, what stays pinned, what goes in a menu. A sentence next to the board saves a fix later.
  • Draw every step at phone width. If a board only shows step 3, steps 1 and 2 are a guess.
  • Test with real data shapes. Long lists, unread badges, empty states. Our test rows were too tidy.
  • Use it yourself on real devices. A trackpad and your own phone find things no screenshot can.

That night had started an hour earlier, with a problem no screen could show at all: Claude couldn’t connect to Flair.

Syahmi RafsanjaniCo-founder, CTO

Turning mockups into a real app with AI? I'll help you test what pictures can't show.

Book a free callSystem review · build work · fractional CTO
Syahmi RafsanjaniCo-founder, CTO