Skip to content

v1.2.0 — Structure and clarity

Choose a tag to compare

@keco216 keco216 released this 09 Aug 10:30
· 100 commits to main since this release

Three design passes went into this release. None of them shipped on its own —
only the last state ever ran in public, so they arrive together.

v1.1.0 made the app feel like a device. v1.2.0 gives it a structure and then
makes that structure legible: two distinct states instead of one layout doing
two jobs, a real housing, and surfaces you can actually tell apart.

Nothing about what the app promises has changed. Same CSP, same zero-request
guarantee, same zero-storage default, same hand-written RFC 4226 / 6238
implementation. src/lib/ is still byte-identical to v1.0.0.

Structure

  • Two states, two stages. An empty Clockwork is no longer a full control
    column next to an empty box. It is its own stage: the emblem at 2.2×, one
    sentence, the input field itself, three ways in. No vault, no empty codes
    zone. A locked vault is the one exception — hiding it would put its
    passphrase field out of reach on load.
  • A shell. A fixed 23 rem control rail on the left that sticks and scrolls
    on its own, a fluid stage for the codes on the right. Below 1024 px it is one
    column and no housing.
  • The housing is a real surface — 1600 px wide, its own tone, a hairline, an
    inner light edge, a shadow. The masthead and the colophon run its full width;
    the colophon is the device's base plate, not floating text underneath.
  • A filter appears at eight accounts, and so does the second column of
    codes. Three strips in two columns are not a grid, they are a started row.
    The filter folds both sides through NFD, so "Müller" is found by typing
    "muller" and "İSTANBUL" by "istanbul".
  • The gravure zone column is gone. INPUT / VAULT / CODES used to sit in a
    6.5 rem column of their own. In a 368 px control rail that is a quarter of the
    surface, spent on labels.

Clarity

Reference values came from HeroUI — the system and the numbers, rebuilt in our
own CSS. No React, no Tailwind, no dependency.

  • The frost is gone. The sticky masthead is opaque now. A cover plate you
    can see through is not one, and an opaque masthead has a contrast you can
    compute, because it no longer depends on what happens to scroll underneath.
    backdrop-filter no longer appears anywhere in the project.
  • Grain only outside the device. On a surface you read from, grain is not
    material, it is unrest.
  • Five surface rungs instead of three. Until now one token stood for both
    "recessed" and "touched" — that is, for opposites. In dark mode the ladder now
    climbs upward: night is the housing and the panels rise above it. That is
    physics, not taste: night on the panels left at most 1.122:1 of room
    underneath, split across two steps that measured 1.037 and 1.063. The ladder's
    total span goes from 1.102 to 1.690.
  • Three text steps, each ≥ 4.5:1 on every surface it appears on. This
    removes two standing exceptions rather than adding a third.
  • Three button variants on two independent axes — solid, bordered, quiet —
    and a height ladder: 32 / 40 / 44 / 48, chips at 24. Outlined buttons carry
    2 px, which is why the pills used to look washed out.
  • Chips for metadata. "SHA-1 · 6 digits · 30 s" sits at the card head
    instead of scattered in a corner.
  • :disabled finally has a design. The vault button is locked while the key
    is being derived and used to look operable.

Measured, not asserted

v1.1.0 v1.2.0
Tests 501 514
Contrast pairs measured on pixels 42 92
Layout shift on load 0.175 0.001
Lighthouse desktop 92 100
Lighthouse mobile, 4× CPU throttle not measured 98
Dark surface ladder, total span 1.102 1.690
Compositor layers at rest, 8 accounts 66 18
dist/clockwork.html 612 kB 659 kB

The bundle grew by 47 kB — six new UI strings across 37 languages, the markup
for the new parts, and the CSS behind them. Runtime dependencies are unchanged
at one, and nothing was added to src/lib/.

Three new guard scripts were added, and each of them found a real defect on its
first run: check-tokens.mjs (no component sets its own values, and the
theme-color tags must match --case), plus spacing-scale, control-height and
dead-gap checks inside shoot.mjs.

Bugs found along the way

  • The contrast script had not been measuring the masthead at all. For two
    versions this looked like a z-index bug. It was the measurement:
    elementHandle.screenshot() runs actionability checks and scrolls the element
    into view — for a position: sticky element, to its position in the flow.
    The probe scrolled the very thing it was measuring out from under itself.
    There is now a counter-test that thins the material and requires the check
    to fail.
  • The browser-chrome colour had been stale for three versions. The
    theme-color tags still carried values from v1.0.0's palette. They now track
    --case, and a script compares them on every run.
  • will-change: transform on every digit forced one compositor layer per
    digit, permanently, for a 190 ms animation that runs once every 30 seconds.
    Measured over CDP with eight accounts: 66 layers with the hint, 18 without.
  • Closing the camera stranded keyboard focus. "Camera off" lives inside the
    viewfinder it hides, so focus stayed on an element that was no longer visible —
    leaving no visible focus anywhere on the page.
  • env(safe-area-inset-top) was never used, while left, right and bottom
    were. With viewport-fit=cover and a standalone manifest, that put the
    masthead under the status bar in the installed app.
  • The last panel touched the base plate. The gap between content and
    colophon was defined only in the below-1024 px query. On the desktop it was
    0 px, so two drawn lines met with no air between them. Same design, two
    answers — the mobile one was right.
  • A :first-child counted siblings in the document, not in the picture. With
    a filter active, a divider sat above the topmost match and separated nothing.
  • A threshold applied twice at exactly 1024 px, because max-width: 64rem
    and min-width: 64rem both match there — a sticky rail inside a device with no
    housing. Found by a threshold check, not by eye.
  • Three flex boxes had no text baseline. align-items: center makes the
    browser substitute the box's bottom edge, so a parent aligning on
    align-items: baseline lined them up on a line that does not exist in the
    glyphs — 8 px of spread in the masthead. The fix made the CSS shorter.

Assets

  • clockwork.html — the full app in one file, all 37 languages, 659 kB
  • clockwork-de-en.html — German and English only, 343 kB
  • clockwork-v5-vergleich.zip — the V4 → V5 before/after images, moved out of
    the repository to keep docs/ from growing without end