Skip to main content

Marit Halvorsen · Case study

Rebuilding checkout without a freeze

Kettle & Co · 2017 · Completion 61% → 74%

Role
Front-end engineer, and for four months the only one
Team
Me, a designer two days a week, one back-end engineer
Constraint
No code freeze. The shop took orders throughout.
Stack
Vanilla JS over a Rails monolith, jQuery being removed underneath

Checkout converted at 61%, which everybody knew, and the accepted plan was a rewrite behind a feature flag over two quarters. That plan had already failed once.

What was actually wrong

Session recordings put the drop almost entirely in one place: the address step, on phones. Not the payment step, where everyone assumed it was. Three separate things were happening there, and none of them needed a rewrite to fix.

The postcode lookup blocked the whole form while it ran. Validation fired on every keystroke, so a half-typed postcode was permanently red. And the keyboard covered the continue button on any phone under 700px tall, which nobody on the team had because we all had new phones.

What changed

The lookup became optional and asynchronous — type the address manually and nothing waits. Validation moved to :user-invalid, so a field only goes red once you have left it. The continue button became sticky to the bottom of the viewport on short screens.

Three changes, about 200 lines, shipped over five weeks one at a time so each could be measured on its own.

What it moved

Completion went 61% → 68% on the validation change alone, which was the cheapest of the three and the one I had argued hardest against. It finished at 74% two quarters later. The rewrite never happened and the flag was deleted.

What did not work

A progress indicator across the top of the steps tested flat and I kept it anyway because it looked finished. It came out a year later and nothing moved, which is the correct outcome and a fair thing to admit.