mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-14 17:05:28 +02:00
The DOM-dump script is an arrow function, not a self-calling IIFE: Aside's `pg.evaluate($_DUMP)` receives the function and runs it in the page (the IIFE form executed in the repl sandbox, where `document` does not exist), and the fallback engine calls it with `$B js "($_DUMP)()" --out --raw`. Hygiene widens to every URL-bearing attribute (src, srcset per candidate, poster, action, formaction, data, ping, cite lose their query strings and fragments) and to data: URLs inside existing <style> nodes. The persist and scan blocks restate REPORT_DIR and RUN_ID literally instead of relying on a shell variable from an earlier block; the baseline's targetSet is defined per mode (repo-relative paths in source mode, page slugs in DOM mode) so DOM-mode deltas can match; the PR-body Detector line lists the states the probe can actually print. The DOM fixture is re-captured with the new script from outside the repo (the engine walks up from cwd for DESIGN.md, which the metadata now records). Doctrine contradictions the design specialist found: the landing-page motion rule matches the one-authored-moment reflex; the background rule names the catalog's halo/spotlight/stripe/grid slop instead of asking for gradients; the universal font rule is scoped to the display voice with the body/UI exceptions; "two typefaces max" allows the mono; the methodology's banned-font line renders BANNED_FONTS; Courier New is banned outright; the Brutalist, Retro-Futuristic, and Playful menu entries stop recommending system stacks, glow, and bounce; the coherence nudge uses the decoration vocabulary; Path A's gate names the display voice; font-loading prose points at the source the procedure verified; centered-everything is MEDIUM (an aggregate heuristic); the mockup guard reads "Never by default (unless the brief above asks for it)". The checklist's AUTO-FIX list renders the catalog's auto-fix rules; category 9 and the Hard Rules pointer count from the same partition helpers (detectorSlopEntries, judgmentTellEntries); the handoff list renders from HANDOFF_COMMANDS; a missing catalog id fails gen-skill-docs by name. gstack's own DESIGN.md gains border tokens and Decisions Log rows for its live-feed pulse and 11px mono labels. frontend-scope is case-sensitive like the bash arm. gen-skill-docs shares one emitGenerated helper for sections and lib-derived assets; renderCatalog keeps the one style with a caller. Tests: shared sliceBetween that fails on a missing end marker, the slop-gate fixture's real end marker, an isolated browse daemon for the DOM-mode E2E, the DOM hygiene test gated to CI or opt-in, docs notes for the two superseded plan sentences. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
54 lines
2.5 KiB
HTML
54 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en"><head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Our Platform</title>
|
|
<style data-gstack-dom-css="">/* gstack-dom-dump: http://127.0.0.1/styles.css */
|
|
body { font-family: Papyrus, sans-serif; font-size: 14px; margin: 0px; padding: 0px; }
|
|
.hero { background: linear-gradient(135deg, #6366f1, #8b5cf6); text-align: center; padding: 80px 20px; color: white; }
|
|
.hero h1 { text-align: center; font-size: 48px; }
|
|
.hero p { text-align: center; font-size: 20px; }
|
|
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 60px 40px; text-align: center; }
|
|
.feature-card { border-radius: 24px; padding: 32px; text-align: center; background: #f9fafb; }
|
|
.icon-circle { width: 60px; height: 60px; border-radius: 50%; background: #ede9fe; display: flex; align-items: center; justify-content: center; margin: 0px auto 16px; font-size: 24px; }
|
|
button { outline: none; background: #6366f1; color: white; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; padding: 12px 24px; border-radius: 24px; cursor: pointer; }
|
|
.small-link { font-size: 11px; padding: 4px 8px; }
|
|
.override { color: red !important; margin-left: 10px !important; }
|
|
.footer { text-align: center; padding: 40px; background: #1e1b4b; color: white; }</style></head>
|
|
<body>
|
|
<!-- Issue 6: [MEDIUM] Generic hero copy ("Welcome to...", "all-in-one solution") -->
|
|
<div class="hero">
|
|
<h1>Welcome to Our Platform</h1>
|
|
<p>Your all-in-one solution for everything you need</p>
|
|
<button>Get Started</button>
|
|
</div>
|
|
|
|
<!-- Issue 7: [LOW] 3-column feature grid with icon-in-circle + title + description -->
|
|
<div class="features">
|
|
<div class="feature-card">
|
|
<div class="icon-circle">★</div>
|
|
<h3>Feature One</h3>
|
|
<p>A short description of this amazing feature that will change your life.</p>
|
|
</div>
|
|
<div class="feature-card">
|
|
<div class="icon-circle">⚡</div>
|
|
<h3>Feature Two</h3>
|
|
<p>Another incredible capability that sets us apart from the competition.</p>
|
|
</div>
|
|
<div class="feature-card">
|
|
<div class="icon-circle">⚙</div>
|
|
<h3>Feature Three</h3>
|
|
<p>Yet another powerful tool to streamline your workflow effortlessly.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<p class="override">Unlock the power of our platform today</p>
|
|
<a href="" class="small-link">Terms of Service</a>
|
|
</div>
|
|
|
|
|
|
</body></html>
|
|
<!-- gstack-dom-dump: shadow DOM and constructed stylesheets not captured -->
|