docs/mockups · overnight options · Q7

Should the report move more — and where?

Bounces and slides on opens and closes, a flash when a tag is accepted, a staggered fly-up when several quotes are hidden at once. Three sizes of answer, each demonstrated live, each shown under Reduce Motion, with what it costs and what it rules out.

Palette Appearance
Artefact — the pixels, as they would ship Commentary — why, cost, what can go wrong

The question, as found at HEAD

The row dates from March. Since then most of its ask has shipped, and one part of it was deliberately taken out:

Reliability-phase note: “beta means (almost) no new features” (19 Oct 2026). Every option below is weighed against that, not only against the motion brief.

Frame 1 — Hiding four selected quotes

Select four, press h. Each column plays the same gesture. The ruler under each column is the time from keypress to the moment the hidden state is written and Undo exists.

Quotes · Section 2 · four cards selected
Today300 ms, all at once

Checkout friction

0Undo at 300 ms
A · capped staggermin(50, 300/N) ms

Checkout friction

0Undo at 450 ms
C · 150 ms per card + ghostsas the row asks

Checkout friction

0Undo at 750 ms
Commentary

What each column adds. Today: the four cards collapse together; the counter goes 2 → 6 with no cue, so nothing says where they went. A: the cards leave in reading order, each 50 ms after the last, and the counter flashes once (.bn-confirm-flash, Q8) as its number changes: order and destination are said, in 450 ms. C: 150 ms between cards, each with its own fly-up ghost to the counter, as the single hide does: the richest picture, and for four cards still under a second.

The result must never wait for the motion. Today the store holds the quotes in a hiding set and commits them (one write, one Undo entry) when its single 300 ms timer fires. A stagger either delays that commit until the last card has gone, or commits early and lets React drop the cards mid-flight. A carries the delay on the card (--bn-hide-delay set per card in CSS) and extends the one timer by the capped total, so the commit lands by 600 ms at most, however many cards. C with 150 ms uncapped has no such bound: see the chart.

Under Reduce Motion (toggle above): the collapse and ghosts are instant in every column; A and C keep the counter’s flash, because it is colour and carries the information the motion carried. Today gives Reduce Motion users nothing at all: this is the one place an informational cue is currently absent for them.

Ghosts cost n clones. The single-hide ghost is a cloneNode(true) appended to body, animated with transition: all, removed on a timer. Twenty of them is twenty detached subtrees painting over the report while the real cards (`content-visibility: auto` below the fold) animate nothing visible. WebKit is the Mac app’s engine; max-height and margin transitions run on the main thread there.

How long until Undo exists, by cards selected

keypress → hidden state written
Commentary

Direct manipulation has a 0.1 s budget for the acknowledgement (the card starts to go) and the house already accepts 300 ms for the commit. A stays inside the 300 ms + 300 ms envelope at any N. C at 150 ms per card reaches 3.2 s for twenty quotes and 7.7 s for fifty, during which the researcher can neither undo nor see the new count; and a second h on a card still in flight is already filtered out by the store, so it would simply be swallowed. The 150 ms figure came from the frozen vanilla report’s unhide, where the cards arrive rather than leave and the count is already right.

Frame 2 — Opening and closing a toolbar dropdown

The tag filter, as the three options would draw it. Click each button twice.

Quotes toolbar · Tags ▾
Today / Ainstant
Frustration 12
Confusion 8
Delight 5
Trust 3
B · enter / exit tokens120 ms in · 90 ms out
Frustration 12
Confusion 8
Delight 5
Trust 3
C · the sidebar’s clip-path reveal120 ms in · 90 ms out
Frustration 12
Confusion 8
Delight 5
Trust 3
Commentary

What this costs in React, not CSS. Every dropdown today is {open && <div>}: on close the node is gone before any exit can draw. B and C need the node to stay mounted while closing, the way the TOC sidebar carries a .toc-closing state and the dialogs stay in the tree with .visible removed. Four components change their open-state shape (TagFilter, ViewSwitcher, the hidden-quotes Counter, TagInput’s suggest list), each with a focus-return and an Escape path to keep right. That is the medium cost of B, and the CSS is the small part.

Where the time goes. 120 ms in and 90 ms out are the design-motion §6 “small” band, and the asymmetry is the dialogs’ rule (exit is quicker than entry). Under Reduce Motion both become the Today column. Nothing here is informational: a dropdown lives under its button and a researcher never asks where it went, so option A leaves these as they are.

Frame 3 — Acknowledgements

What the report already does when you act on something, and the one addition C makes. Click the controls.

Quotes · one card
Shippedaccept flash 0.4 s
12:04Description stands in for a participant’s words: the checkout step the participant could not find.
P3 · Session 3
FrustrationTrust
Shippedarrival 5 s, handover 240 ms
03:51Description stands in for a participant’s words: finding the saved basket again.
P1 · Session 1
C onlystar pulse 200 ms (K1)
07:19Description stands in for a participant’s words: the delivery estimate that changed.
P2 · Session 2

Click the star. Today the glyph swaps with no motion (left column).

Commentary

Acceptance already has a cue. The gap the row names is covered; what remains is that the cue exists in one place and is re-implemented by hand at three call sites: that is Q8. Under Reduce Motion the accept and arrival flashes stay (colour), the star pulse goes (movement). The arrival exemption is the shipped precedent for keeping a colour cue; nothing new is decided here.

The options

A Restraint — motion only where it carries information

siblings: single-hide ghost (QuoteGroup.tsx) · arrival (atoms/arrival.css) · handover (toolbar.css)
What changes
  • Bulk hide gets the capped stagger (min(50 ms, 300 ms/N)) as a per-card transition-delay; the store’s one timer grows by the total stagger (≤ 300 ms). The hidden-quotes counter flashes .bn-confirm-flash when its count changes (hide, unhide, bulk).
  • The global Reduce Motion rule from design-motion §5.3 lands in tokens.css, exempting the arrival and confirm cues; badge keyframes stop being unguarded.
  • Dropdowns, star, view switch: unchanged. Design-motion’s open rows R5/R6/R10/K1/S1 are marked “not pursued in beta”.
Researcher’s path · bulk hide of 20
0 mspress h; first card starts to go
285 mslast card starts
585 mshidden state written, Undo on offer, counter flashes
Consequences
  • S build — CSS: hidden-quotes.css, tokens.css, badge.css; TS: QuotesContext.tsx (timer length), QuoteGroup.tsx (set --bn-hide-delay on hiding cards). Regenerate WelcomeTimelineCSS.swift (any theme edit is a desktop edit).
  • Tests: extend the Focus-mode set-equality shape to the global rule; one vitest on the timer bound; a Playwright check under emulateMedia({reducedMotion}). jsdom cannot see transitions, so the stagger itself is pinned on the style attribute, not on behaviour.
  • Export: the CSS travels, but hide and tag controls are hidden in export mode, so none of this fires there. WKWebView: delays on the leaf card, not a custom property on the group (a property on the subtree root restyles every descendant in WebKit).
  • Rules out nothing: B and C stack on top later.
  • Risk: the global Reduce Motion rule changes ~280 declarations at once for Reduce Motion users: a one-line change with a wide blast; the exemption list must be tested, or it silently ends the arrival flash.

B A vocabulary of three tokens, applied everywhere

siblings: --bn-modal-enter/-exit (tokens.css § Dialogs) · --bn-arrival-* · --bn-transition-fast/normal/slow
What changes
  • Three tokens — --bn-motion-enter 120 ms ease-out, --bn-motion-exit 90 ms ease-in, --bn-motion-confirm 400 ms ease-out — and three atoms .bn-enter, .bn-exit, .bn-confirm-flash.
  • The four dropdowns adopt enter/exit (Frame 2, middle). Badge appear/remove (150 ms today) move onto the tokens. The accept flash becomes the confirm atom (Q8 option C).
  • Everything A does.
Consequences
  • M build — the CSS is a morning; the React is the cost: four components keep a closing state so the exit can draw, each with Escape, outside-click and focus-return paths to keep right. Layers: theme atoms + molecules, four components, their tests, the e2e config (reducedMotion: 'reduce' for determinism).
  • Three tokens cannot hold the shipped durations: sidebar 75 ms, sheet 230/240 ms, arrival 5 s, handover 240 ms, badge 150 ms were each tuned separately. Either they stay as named exceptions (a vocabulary of three plus five) or they are folded and the tuning is lost. The sidebar took three rounds to reach 75 ms.
  • Perceived latency: an exit that must finish before a new dropdown can open is a 90 ms wait on a toolbar the researcher drives fast. Must be interruptible (reverse mid-flight, as CSS transitions do).
  • Rules out: the {open && …} simplicity in every dropdown, for good.
  • Feature-shaped work in a reliability phase.

C The fuller set

siblings: unhide-all fly-down stagger (QuoteGroup.tsx) · sidebar clip-path reveal · design-motion open rows K1, S1, M8, U4/U5
What changes
  • B, plus: bulk hide at 150 ms per card with a ghost per card (Frame 1, right); dropdowns on the sidebar’s clip-path reveal (Frame 2, right); star pulse (Frame 3); view-mode segment slide; counter pulse on count changes; filter-in/out stagger.
Researcher’s path · bulk hide of 20
0 mspress h
2 850 mslast card starts
3 150 msUndo on offer
Consequences
  • L build — every row of design-motion §7 “requires JS coordination”. Layers: theme (6 files), QuoteGroup, QuotesContext, FocusContext (star), toolbar components, Playwright for each animation lifecycle (jsdom pins none of it; the 17 Oct restart bug passed every unit test).
  • Perceived latency: the uncapped stagger holds the result for seconds at realistic selection sizes (chart). Twenty detached ghost clones paint over the report in WKWebView.
  • Test flakiness: each new timer is a fake-timers surface; the thirty-unhide debounce test already needed three repairs this autumn.
  • Rules out: a quiet report. Once every control moves, the one cue that matters (where did my quote go) competes with ten that do not.

Comparison

QuestionA · restraintB · three tokensC · full set
Answers the row’s three asksBulk hide and acceptance; opens/closes left as shipped (sidebars, sheets)All threeAll three, and more
Result never waits for motionCommit ≤ 600 ms at any NAs ACommit at 300 + 150·(N−1) ms
Reduce MotionGlobal rule, colour cues kept, counter flash as the substituteAs AAs A
WKWebViewLeaf-level delays; no clonesclip-path/opacity are composited; mounted-while-closing nodesn ghost clones, main-thread max-height
HTML exportInert (controls hidden)Dropdowns animate in the export; harmlessAs B
Test surfaceOne timer bound, one CSS set testFour components’ close paths; e2e reducedMotionMany timers; Playwright per lifecycle
BuildSML
Fits “beta ≈ no new features”Yes: fixes an asymmetry and an a11y gapNoNo
Rules out laterNothingSimple conditional dropdownsA quiet report

Recommendation: A, with Q8’s confirm atom as its one new piece

Most of this row has shipped since it was written, and the remaining gap is an asymmetry (unhide staggers, hide does not) plus an accessibility hole (Reduce Motion users get no cue when quotes leave). A closes both with the house stagger formula, keeps the commit inside the envelope the store already promises, and gives Reduce Motion users a colour cue where today they get none. It touches two TS files and three CSS files, and it rules nothing out: B’s tokens and C’s dropdown slides can land on top when a feature phase opens. B and C are feature work: the sidebar’s history says each new motion takes rounds to tune, and the beta line says not now.

Not 150 ms per card. The number came from the frozen vanilla unhide, where cards arrive and the count is already right. On a leave, it holds the researcher’s Undo hostage to N. If the owner wants a slower cadence than 50 ms, the honest form is a higher cap (say 450 ms total), not a per-card figure.

Owner calls the mockup could not settle: (1) stagger cadence: the formula’s 50 ms cap, or a named total; (2) under Reduce Motion, the counter flash as the substitute for the fly-up, or nothing; (3) land the global Reduce Motion rule now (wide blast, one line) or keep per-block guards and only fix the badge block.