#!/usr/bin/env node /** * Card parity: shoots the approved card mockup and the implemented device card * with the same data, and lays each pair side by side. * * node scripts/ui/card-parity.mjs --mockup [--types plug,climate] [--label card-parity] * * The implementation side is `npm run ui:shots` on the harness route * `/device-card-preview?type=`, which renders the fixtures in * `packages/ui-library/src/composites/device-card/__fixtures__/` — the mockup's * own data. The mockup side is the mockup file opened as it is, on the same * type page. Both are shot light and dark, at 1440x900 and 390x844. * * Output (gitignored): scratchpad/ui-shots/