Files
gstack/test/fixtures/ui-spacing/corpus.json
T
Garry Tanandcapy-ai[bot] 5f9b7ef209 Let the design lint check one section of a running app for crowded rows, cramped help text, loud notes and small tap targets (#4138)
* feat(design-lint): --scope app measures one app section for row spacing, flush help copy, loud notes and small targets (GST-1741 PR 1)

Adds an opt-in, render-only app profile to gstack-design-lint: its own
scheduler (lib/design-lint/render-app.ts) and probes
(lib/design-lint/render-probe-app.ts on window.__gstackLintApp), five
app-only rules at ask (row-crowding, copy-flush-under-list,
note-in-row-weight, small-hit-area, section-overflow), --within matched
through open shadow roots, readiness and state assertions, a LINT_APP
verdict with exit 0 clean / 1 open / 4 incomplete / 3 usage, --waivers,
URL redaction everywhere and private trace files for probe errors.

Behavior change: --url with no browser now exits 4 with
RENDER_UNAVAILABLE under every scope. Page and component output is
otherwise byte-identical to e58be61 (test/design-lint-scope-guard.test.ts).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(design-lint): app profile scope, label-target and select-in-row cases (GST-1741 PR 1)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix(design-lint): app rows read laid-out unboxed lists, and subpixel noise never fires a threshold (GST-1741 PR 1)

Measured against six real qm builds from the probe: the shipped access list
(flex rows, no border) slipped past row-crowding, and 8px padding read as 7.99px
and fired. Rows that set an avatar, text and control side by side now count as
a list of rows; thresholds ignore the last 0.05px.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: pre-landing review fixes (GST-1741 PR 1)

Redact secret-looking #fragment parameters like query ones; keep two --url states whose redacted names match as two states (name~2) and refuse only the same URL twice; a trace that cannot be written keeps the state PROBE_ERROR instead of crashing to exit 1; a section selector the browser refuses no longer holds the soft readiness wait, and a NOT_READY without --wait-for names the section.

Review-Finding: p1/specialist-batched#1 reader=security
Review-Finding: p1/specialist-batched#2 reader=testing
Review-Finding: p1/red-team#1 reader=red-team
Review-Finding: p1/red-team#2 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: a generated state name never collides with a literal one (GST-1741 PR 1)

Names for --url states are given out from the set of names already used, so /p, /p#x and /p~2 measure as three states. Review-loop exception a-7c954c6c661f.

Review-Finding: p2/outside-voice#1 reader=outside-voice
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs: design-lint usage and project map name --scope app (GST-1741 PR 1)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* Describe the app section check in everyday words in the changelog

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

---------

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
2026-11-07 19:56:12 +00:00

96 lines
3.0 KiB
JSON

{
"about": "The app profile's false-positive corpus (GST-1741 decision 6): gstack-owned pages unrelated to the qm#3186 shape, each measured under --scope app at 1440x900 and 375x812 with the --within and --wait-for given. Bar (test/design-lint-app-profile.test.ts): zero app findings on all but one page, and at most one on that page. The pages carry no lists of the replica's kind, so --wait-for stands in for the list readiness wait.",
"pages": [
{
"path": "browse/src/welcome.html",
"within": "body",
"waitFor": "body",
"what": "the browse welcome page"
},
{
"path": "extension/popup.html",
"within": "body",
"waitFor": "body",
"what": "the extension popup"
},
{
"path": "browse/test/fixtures/forms.html",
"within": "body",
"waitFor": "body",
"what": "a login and profile form"
},
{
"path": "browse/test/fixtures/qa-eval-checkout.html",
"within": "body",
"waitFor": "body",
"what": "a checkout form"
},
{
"path": "browse/test/fixtures/qa-eval-spa.html",
"within": "body",
"waitFor": "body",
"what": "a single-page app shell"
},
{
"path": "browse/test/fixtures/states.html",
"within": "body",
"waitFor": "body",
"what": "controls in their states"
},
{
"path": "browse/test/fixtures/snapshot.html",
"within": "body",
"waitFor": "body",
"what": "a mixed app page"
},
{
"path": "browse/test/fixtures/responsive.html",
"within": "body",
"waitFor": "body",
"what": "a responsive layout"
},
{
"path": "browse/test/fixtures/basic.html",
"within": "body",
"waitFor": "body",
"what": "a basic page"
},
{
"path": "test/fixtures/design-lint/clean/index.html",
"within": "body",
"waitFor": "body",
"what": "the design lint's clean render fixture"
},
{
"path": "test/fixtures/design-lint/tailwind-pass/index.html",
"within": "body",
"waitFor": "body",
"what": "a Tailwind page with a bordered list"
},
{
"path": "test/fixtures/design-lint/eyebrow-pass/index.html",
"within": "body",
"waitFor": "body",
"what": "a docs page with a step list"
}
],
"excluded": [
{
"path": "browse/test/fixtures/qa-eval.html",
"why": "a QA fixture with planted defects; its stats line really overflows its box (section-overflow is a true positive)"
},
{
"path": "browse/test/fixtures/dropdown.html",
"why": "its search input is 320px inside a 300px container: a real overflow"
},
{
"path": "test/fixtures/design-motion-finalized.html",
"why": "absolutely positioned cards run 233px past a 375px screen: a real overflow"
},
{
"path": "extension/sidepanel.html",
"why": "links xterm.css, which ./setup builds and the repository does not hold, so it is incomplete (ASSET_MISSING), not measurable"
}
]
}