Interactive systems · study 02

A real component, closed.

Study 01's machine now drives an actual UI: a navigation drawer with five states — CLOSED, PEEK, OPEN, PINNED, and a transient CLOSING. Hover the left edge to peek, click ☰ to open, pin it, dismiss it. Every input lands in the log below the stage: accepted and routed, or ignored — the state decides, never the handler. Click ☰ mid-close and the animation reverses in place.

demo-app / workspace
CLOSED
waiting for input · try hovering the left edge
§1

The event table

the entire component, as data · row = input, result depends on current state · dash = ignored

edge hover
CLOSED → PEEK · everywhere else — ignored
edge leave
PEEK → CLOSED · everywhere else — ignored
☰ click
CLOSED/PEEK → OPEN · OPEN → CLOSING · CLOSING → OPEN (reversal) · PINNED → CLOSING
pin click
OPEN → PINNED · PINNED → OPEN · elsewhere — ignored
scrim / Esc
OPEN → CLOSING · PINNED → CLOSING (Esc only) · elsewhere — ignored
transition end
CLOSING → CLOSED · the transient state's authored finish — no caller cleans up
The reversal is the point: click ☰, then click it again while the drawer is still sliding shut. In handler-soup this is the classic double-animation bug. Here CLOSING simply routes back to OPEN and the same CSS transition plays forward from wherever it was — frame-accurate for free.
§2

The graph

read-only this time — the component's inputs are the only way in, which is the discipline

§3

What carried over

same machine as study 01, different body

Everything from the specimen survived contact with a real component: states as data, inputs as requests, transient states that own their endings, and one accent color that always tells you where the machine is. The only new idea is the ignored input — a drawer has hostile timing (hover-out during open, clicks mid-animation) and the table absorbs all of it by simply not having a row. Touch devices skip PEEK entirely: no hover, no state — the table shrinks, the component doesn't break.