Files
zeekayandHanzo Dev 52819d0232 feat(screenshots): re-runnable white-label capture harness
BRAND=lux|acm node capture.mjs -> ~/Desktop/<brand>. Auto-discovers each
app's pages, logs in where a credential is set, shoots desktop+mobile
full-page. One command -> the whole demo deck; down surfaces skipped.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-26 15:46:03 -07:00

672 B
Raw Permalink Blame History

White-label screenshot harness

One command captures every live surface (desktop + mobile, full-page) into ~/Desktop/<brand>.

cd ~/work/lux/universe/screenshots
npm i                      # playwright (browsers already cached)
BRAND=lux node capture.mjs # -> ~/Desktop/lux/<surface>/<page>-<desktop|mobile>.png
BRAND=acm node capture.mjs # -> ~/Desktop/acm/... (once ACM brand swap lands)
  • Surfaces + auth are declared in manifest.json. Add a surface = one entry.
  • Each surface: auto-discovers same-origin pages, logs in where a credential is set, shoots 1440×900 + 390×844.
  • Down surfaces are skipped, never fatal — re-run as apps come online.