Skip to content

v2.1.0 — Commerce fluency, CI, and a much faster viewer

Choose a tag to compare

@vicmaster vicmaster released this 03 Sep 12:15
· 215 commits to master since this release
6d6c638

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

Commerce fluency (Phase 29)

The quality gate learned a screen type that isn't a dashboard. This phase came out of building a real checkout end to end and cataloguing everything that fought back, then fixing it. It closed with a literal proof: the same screen, rebuilt from the same inputs with none of its four workarounds, scoring 100/100 with a clean stress run in both light and dark themes — against a 77 baseline.

  • A commerce genre. A transactional screen is no longer penalised for showing honest prices. On the original checkout, fourteen of fifteen cliché flags were the evaluator objecting to the subtotal, the line prices and the discount — figures that are the design on a checkout. Scoped to cart, checkout, order confirmation and billing; deliberately not to pricing marketing pages, where invented numbers are exactly the slop the check exists to catch.
  • The generator is no longer overruled by inherited tokens. Typography preservation is now field-wise, so an inherited token carrying only a size can't silently strip the font family the personality just chose. Tokens the generated system's own vocabulary owns — status colours, tints — are reported as conflicts rather than quiet preservations, and preserveInherited: false opts out entirely.
  • Every scaffold belongs to the system it's stamped into. Structures reference type roles instead of literal pixel sizes, so stamping one no longer drops an off-scale size into your design and trips the type-scale check on framesmith's own output. Every component scaffold now survives long-text and i18n content.
  • Advisories you can act on. The sibling-padding check is gone — it fired on correct designs and relocated up and down the tree as each "fix" changed which siblings differed. Spacing variety is measured against the canvas's own declared scale rather than a fixed count. And readiness now turns on blocking findings: a design with nothing left to resolve is no longer held at NOT READY by a score it can only raise by getting worse.
  • screenshot gained fullPage, for capturing a design taller than its artboard. responsive: "fixed" was withdrawn — it was documented for four releases while the renderer never read it.

Continuous integration

The project had 102 test files and no way to run them as a suite. There's now npm test (Node-only, ~2 minutes) and npm run test:full (adds the browser tests), and every pull request runs build plus tests on Node 22 and 24 alongside a browser job.

It earned its keep immediately. It found three tests that were already failing — two of them red at the v2.0.0 tag, shipped that way because nothing ran them together. Then, on its first runs, it caught two real scaffold-overflow bugs that only reproduce under Linux font metrics: buttons whose labels escaped their box instead of truncating by design. Both had passed a macOS test suite.

Viewer performance

Loading a project got slow as you registered more repositories. On a real 178-canvas store the worst project page took 4.2 seconds; it now takes 0.09.

The cause wasn't the score cache or the thumbnails. The gallery recomputed a cache key per card, and computing that key re-listed and re-hashed every canvas in the store — so a 43-canvas project performed roughly 7,600 whole-canvas hashes per request, quadratic in the size of the whole store rather than the project being viewed. The cache cost eleven times what it saved.

Upgrading

Nothing user-visible breaks. responsive: "fixed" was withdrawn from the documented vocabulary, but it was a no-op the renderer never read: passing it still succeeds, still renders, and existing canvases carrying it still load unchanged.

Scores move on some canvases, because the sibling-padding advisory that could not be satisfied is gone. They move up.