Undefined States Are Where Users Hit the Exit

Performance, reliability, accessibility, and trust only become real in the frontend. A handoff that carries pixels but not intent leaves them to chance.

Read Me Because

The frontend isn’t the finishing layer. It’s where the product earns trust, teaches itself, survives edge cases, and becomes real enough to keep.

Explore this concept

The Field Guide

Methods and tools to design AI products people trust and keep using.

Evaluate this article paragraph by paragraph

When users get lost, they don’t look for a way back. They leave. Blank screens. Errors with no way forward. They decide your product doesn’t work. Your team doesn’t find out until the numbers drop. But you never get a second chance to make a first impression. The handoff between design and engineering is often broken.

Instead, hand off what each state does, not just how it looks, and the dead end disappears. The handoff says what appears while loading, when nothing’s there yet, and when something breaks, so the engineer or coding agent builds all of it instead of guessing. The same user hits the error, sees what happened and how to keep going, and stays. The team’s test shifts from “Does it match the mockup?” to “Does it hold up when something goes wrong?”

The handoff model is breaking

Code agents can now turn design artifacts into components quickly. If the artifacts contain only pixels, the agent has to guess the logic, state model, accessibility behavior, copy, edge cases, instrumentation, and extension rules. Those guesses compound into drift.

Fast implementation makes it more important to preserve the reasoning behind the visual decisions.

Frontend choices are product choices

Loading behavior changes perceived reliability. Navigation changes discovery. Empty states affect onboarding. Error recovery changes trust. State preservation affects retention. Motion can clarify causality or create confusion. Microcopy decides whether an uncertain AI feels honest or evasive.

Every state is a product decision
The interface
Loading → feels reliable (or not)
Empty → shapes onboarding
Error → changes trust
Work preserved → affects retention

These decisions become part of the product experience. Frontend choices also affect “AI safety”: they establish whether the person understands an autonomous action, can approve its scope, and can recover afterward. Backend controls constrain what the system can do; the interface lets the person inspect those limits and decide whether to proceed.

A Front-End Design Engineer holds interface, code, and system at once. The role connects visual decisions to activation, conversion, retention, performance, accessibility, and maintainability.

The guiding question isn’t “Does it match the mockup?” It’s “Does this earn trust, teach itself, and stay coherent as the product grows?”

Strong handoffs explain intent, not just what to build

Most handoffs describe what to build. Strong ones also explain the reasoning, so a person or an agent can build it without guessing.

A contract card is a short handoff that records why a component exists and the behavior it promises. The card below gives the fields for that record, from situations and states to edge cases, measurement, and extension rules.

Fill-in card

Deliver intent, not output

Choose one component being handed from design to implementation. Beside the visual design, record its intended behavior, constraints, and ownership for the engineer or coding agent.

Why
Name the user decision or risk the behavior addresses.
When
Define the situations that need the pattern and those where it would add unnecessary work.
What can vary
Identify configurable content or actions and the rules every version must preserve.
How it behaves
Define the transition and available action for each loading, empty, blocked, wrong, or complete state.
What happens
Specify the long-content, reduced-motion, keyboard, localization, and weak-connectivity cases.
Which event
Record the observable action that would show the intended improvement, such as accepting the result or recovering useful work.
How it extends
Name the shared component, permitted variations, and owner of the rules.

The handoff’s intent appears in the Figma file as structured components, tokens, states, examples, and annotations. In code, the same intent is carried through architecture decisions, constrained APIs, extension patterns, tests, and ownership.

The design file and code should describe the same source of truth.

When an agent can change or send something, the handoff has to establish what the user can inspect and approve first. The action preview and consent pattern records that boundary.

Stickiness is a system property

Trust begins before signup, changes during first use, deepens through recovery, and either compounds or erodes with repeated interaction. A sequence of individually attractive screens can still produce a disjointed arc. If the same risk uses different patterns across features, the product lacks a system.

Front-End Design Engineering maps the experience across touchpoints.

Fill-in card

Design the arc, not isolated screens

Choose one user journey from discovering the product through returning to it; fill each field with the touchpoint where that experience happens and what the system does there.

Value
Where the user recognizes the value
Relief
Where relief first appears
Effort
Where effort spikes
Explanation
Where the system needs to explain itself
Re-entry
How the user re-enters later

The map shows which touchpoint needs attention: a first result that creates checking work, a failure with no recovery path, or a return visit that asks the user to repeat settled decisions.

Instrumentation belongs beside the UI decision

If the team can’t measure the behavior it designed, it won’t know whether the interface worked. For example, after a save fails, track whether the retry succeeds with the draft intact.

Define the event taxonomy, funnel, error signal, and acceptance criteria while designing the flow. Measure time to first relief, repeated correction, recovery, feature discovery, and accepted results—not only clicks.

A production-ready design test

Before a feature goes live, the handoff can be checked for decisions a person or agent would otherwise have to guess.

Before calling a feature ready, ask:

0 of 8 done