Vite + React + TypeScript demo app for themed, multi-tenant Lobbi UI flows.
Works without .env setup (Metabase widgets fall back to local demo previews).
npm install
npm run devOpen the app from the Vite URL printed in terminal.
- Node.js 20+
- npm
Only required if you want live Metabase embedded chart/KPI data.
cp .env.example .envFill these in .env:
VITE_METABASE_INSTANCE_URLVITE_METABASE_API_KEYVITE_METABASE_REPORT_*VITE_METABASE_DASHBOARD_*
If these are missing, report/dashboard widgets use demo preview data.
Run from repo root to validate local setup:
node -v
npm -v
npm run typecheck
npm run build:check
npm run theme:qa:strictNotes:
theme:qa:strictwritesreports/theme-qa-report.md.- If no baseline exists yet, initialize it once with
npm run theme:qa:update-baseline.
npm run theme:qa:visual is optional and Playwright-based.
Install prerequisites once:
npm i -D playwright
npx playwright install chromiumThen run:
npm run theme:qa:visualWhat it does:
- Starts a local dev server at
127.0.0.1:4173. - Captures screenshots for
dashboard,login, andmemberon each org. - Compares against
reports/theme-visual/baseline(unless updating baseline).
Useful commands:
npm run theme:qa:visual:update-baseline
npm run theme:qa:allIf playwright is not installed, visual QA exits successfully and reports that it was skipped.
npm run dev: start local dev server.npm run build: production bundle.npm run build:check: TypeScript compile check + production build.npm run typecheck: strict TS checks (tsc --noEmit).npm run theme:qa: token/contrast regression check against baseline.npm run theme:qa:strict: CI-grade strict theme QA.npm run theme:qa:visual: visual snapshot QA (Playwright).npm run theme:qa:all: strict token QA + visual QA.
src/app/: app pages, flows, feature components.src/components/: reusable UI blocks (lobbi/,demo/,motion/).src/theme/: theme registry, provider, org theme JSON files, schema/types.src/styles/: global CSS, org theme variables, Tailwind entry styles.scripts/: theme QA automation scripts.reports/: generated QA outputs and snapshots.
reports/theme-qa-report.mdreports/theme-snapshots/latest.jsonreports/theme-snapshots/baseline.jsonreports/theme-visual-report.mdreports/theme-visual/latest/**
guidelines/PromptLibrary.mdguidelines/AgentWorkflows.md