Skip to content

v2.2.0 — what building the example taught us

Choose a tag to compare

@vicmaster vicmaster released this 03 Sep 17:32
· 206 commits to master since this release
1532e2e

Install or upgrade with npx framesmith, or npm i -g framesmith.

Everything in this release came out of building a commerce example against the published 2.1.0 package rather than the working tree. That was the point of doing it that way, and it found three defects that the working tree never would have.

A page structure stamp no longer erases the canvas genre

canvas_set_genre records the genre at metadata.provenance.preset, and apply_structure replaced that object wholesale. So declaring commerce and then stamping a layout — the order the documentation encourages — silently dropped the genre. Nothing errored. The next evaluation simply reported no active genre and flagged every price on the checkout as fabricated data.

apply_preset had always merged here; apply_structure now does the same, so a genre and a structure coexist.

export takes the same fullPage option as screenshot

v2.1.0 taught screenshot to capture a design taller than its artboard and left export behind, so saving a long design still meant working out the height by hand. The two had drifted because each carried its own copy of the render setup; that step is now a single shared helper, so they cannot disagree again. It is ignored for PDF, which paginates on its own.

The eyebrow tell no longer counts a type role's default tracking

The cliché tell that catches template rhythm — an eyebrow label above nearly every heading — qualified any small text with letter-spacing above zero. But a personality can set letter-spacing on its label type role, so every small label in a design inherited an eyebrow signal it never asked for. Eleven ordinary form fields on the checkout ("Email", "Full name", "City") were counted as decorative eyebrows.

The new threshold was measured rather than guessed. Across a 112-canvas corpus the tell counted 393 texts: 154 by textTransform, 221 by content already typed in capitals, and 18 by tracking alone — and every one of those 18 was a form label or a tab. Role-inherited tracking runs 0.3 to 0.6; tracking chosen deliberately as an eyebrow treatment runs 1 to 2. The floor sits at 1, in the gap between them.

Capitalised content now qualifies on its own terms rather than incidentally through tracking, which is the most common form in practice — "MODULES", "YEAR TO DATE" — and is the same design decision as textTransform, authored differently.

Upgrading

Nothing breaks. The evaluator change is strictly narrowing: every text it stops counting was counted before, so no design can begin failing because of it. Corpus canvases firing the tell were 1 before and 1 after — the same canvas — and the benchmark is unchanged at hero 72, minimal 98, bad-contrast 82.

The README now carries the checkout example itself: 100/100, stress-clean, correct in both themes, with designed empty-basket and loading states.