PK-77: Headless Playwright scraper pre DESIGN_REFERENCE + 10 PNG #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/playwright-design-ref-scraper"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Súhrn
PK-77: Headless Playwright scraper pre DESIGN_REFERENCE (
pnpm run scrape:design-ref) + reálny prvý beh — 5 z 8 stepov úspešných, 10 vygenerovaných PNG-iek commitnutých doDESIGN_REFERENCE/. Tým sa nahrádza zvyšok PK-72 (manuálna dodávka).Zmeny
Commit 1 —
e37a45e: skript + toolingscripts/scrape-design-reference.ts(786 r.): headless Chromium 1920×1080 @ DPR 2, čítaDR_EMAIL/DR_PASSWORDvýlučne z env, idempotentné, retry 3×, per-step skip + final summary, hide cursor pred screenshotom, GitHub fallback precommand-paletteacomparison-view.package.json:@playwright/test,tsx,typescript,@types/nodev root devDependencies + scriptpnpm run scrape:design-ref..env.example: placeholderyDR_EMAIL=/DR_PASSWORD=s komentárom..gitignore:.auth/,playwright-report/,test-results/.Commit 2 —
b886184: prvý reálny beh, 10 PNGDESIGN_REFERENCE/app-shell/02-sidebar-collapsed.png(2200×2160, 2.2 MB; capture cez viewport fallback 1100×1080)DESIGN_REFERENCE/app-shell/03-header.png(header pás Customer Discount Rule)DESIGN_REFERENCE/design-system/01-buttons-{default,hover,focus}.pngDESIGN_REFERENCE/design-system/02-inputs-{default,focus,filled,error}.pngDESIGN_REFERENCE/versioning/02-comparison-view.png(GitHubvercel/next.js#65000split view)app-shell/,design-system/,versioning/so záznamom Zdroj / Dátum / Čo zachytáva pre každý nový súbor (Kľúčové detaily / Čo NEnapodobňovať zámerne otvorené — vyplnia sa pri UI tickete).Výsledok behu (
Summary: 5 OK, 3 failed, 1 skipped)app-shell/02-sidebar-collapsedapp-shell/03-headerapp-shell/04-command-paletteMeta+K, headlesskeyboard.pressneotvára palettedesign-system/01-buttonsdesign-system/02-inputstest-bench/01-input-jsonbutton:has-text("Test Bench")v DR UI už neexistujetest-bench/03-debug-mode-activeversioning/01-version-listversioning/02-comparison-viewPreview (vybraná podmnožina)
app-shell — 03 header
design-system — 01 buttons (focus)
design-system — 02 inputs (error)
versioning — 02 comparison view
Polish Acceptance Bar — návrh ako čítať tieto referencie v UI tickete
Referencie sú best-effort — DR má rotujúce class-names a nemá data-testid stabilitu. Polish-bar pri downstream UI tickete preto má brať
01-buttons-*/02-inputs-*ako vzor stavovej škály (default → hover → focus → filled → error), nie ako pixel-perfect cieľ.03-header.pngslúži ako referencia pre toolbar density (akcia: hierarchia, spacing breadcrumb → tabs → CTA).Test plan
pnpm installčistý,pnpm exec playwright install chromiumprebehne.DR_EMAIL='…' DR_PASSWORD='…' pnpm run scrape:design-refreprodukujeSummary: 5 OK, 3 failed, 1 skipped(alebo lepšie — selektory pre Test Bench/Cmd+K sú best-effort, môžu sa časom posunúť).DESIGN_REFERENCE/<kategória>/zodpovedajú stĺpcu „Stav = OK" v tabuľke vyššie.Čo sa schválne nerieši v tomto PR (follow-up)
app-shell/04-command-palette,test-bench/01-input-json,test-bench/03-debug-mode-active) — vyžadujú fix selektorov v skripte. Akonáhle tech-lead potvrdí prístup do živej DR session, viem dohľadať aktuálne data-testid / aria-label cez Playwrightinspectora poslať patch follow-up PR (oddelený od tohto, aby tento merge nedržal 5 už použiteľných referencií).versioning/01-version-listzostáva permanently skipped (DR free tier limit). Pre UI ticket buď stačí02-comparison-view, alebo dodať manuálny screenshot z paid účtu.Linked: PK-77 (review-gate, bez self-merge per workflow update), parent PK-66.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.