Sesjon 3 av 3 — leverer Fase 7-9 av v1.11.0-planen. Fase 7 (Acme-rename på demo-state): - Rename "Acme AS" → "Acme Kommune" og "Demosystem" → "Acme Kunde-chatbot" konsistent på tvers av alle 17 fixtures. - build-demo-state.mjs: organization.name → "Acme Kommune", projects[0] → id "acme-kunde-chatbot" / name "Acme: Kunde-chatbot". - Re-bygd demo-state-v1-blokk i playground HTML. Fase 8 (Screenshots-regenerering): - 24 nye PNG-er under playground/screenshots/v1.11.0/ (12 surfaces × 2 tema, retina, fullPage). v1.10.0-mappen beholdt som historisk referanse. - tests/screenshot/run.mjs: OUT_DIR + kommentarer bumpet til v1.11.0. Fase 9 (Release: docs + versjonsbump): - plugin.json 1.10.1 → 1.11.0. - README.md (plugin): version-badge + Version History + screenshot-gallery refs + demo-data refs oppdatert. - CLAUDE.md (plugin): Playground-overskrift v3/v1.10.0 → v3/v1.11.0, Demo system-seksjon v1.10.1 → v1.11.0, screenshot-refs v1.10.0 → v1.11.0, "Inline CSS-kandidater" konvertert til "Design-system 100%-adoption" status. - Root README.md: ms-ai-architect-versjon 1.10.1 → 1.11.0, demo-tekst og Playground-tekst regenerert for v1.11.0, "271 PASS combined" → "278 PASS". Verifisering: - bash tests/run-e2e.sh --playground → 271/271 PASS (static + parsers). - bash tests/test-playground-migrations.sh → 7/7 PASS. - Total: 278/278 PASS, 0 FAIL. Refs: NEXT-SESSION-PROMPT.local.md (Sesjon 3 av 3, plan .claude/plans/jeg-skal-pr-ve-effervescent-token.md). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| package.json | ||
| README.md | ||
| run.mjs | ||
Playground screenshot tooling
Standalone Playwright runner that captures playground screenshots for documentation.
Usage
cd tests/screenshot
npm install
npx playwright install chromium # one-time, ~150 MB
node run.mjs
Output goes to ../../playground/screenshots/v1.10.0/.
What it captures
For each theme (dark, light):
| # | Surface | Screen / tab |
|---|---|---|
| 01 | Onboarding | Empty state |
| 02 | Project | Rapporter / Regulatory (default) |
| 03 | Project | Rapporter / each of 4 other tabs |
| 04-06 | Project | Oversikt / Kontekst / Eksport |
| 07 | Home | Project list with demo-prosjekt |
| 08 | Catalog | All 5 expansion-grupper |
| 09 | Onboarding | Prefilled from demo-state |
= ~18 PNGs, captured with deviceScaleFactor: 2 (retina-crisp), fullPage: true.
How the demo state works
The screenshot script clicks [data-action="load-demo"] which reads the
inline <script type="application/json" id="demo-state-v1"> block from the
playground HTML. That block is generated by scripts/build-demo-state.mjs
and includes one demo project ("Demo: Innbygger-chatbot for byggesak") with
all 17 fixture markdowns pre-loaded as raw_markdown. After load, the
project surface re-runs handlePasteImport for each report so the
visualizations render automatically.
Regenerating demo state
If playground/test-fixtures/*.md changes:
node scripts/build-demo-state.mjs
This rewrites the <script id="demo-state-v1"> block in the playground HTML.
Commit policy
- Commit
playground/screenshots/v1.10.0/*.pngso forkers see what the plugin looks like without running anything. - Don't commit
node_modules/(gitignored).