mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-22 08:01:32 +01:00
* 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>
71 lines
3.7 KiB
HTML
71 lines
3.7 KiB
HTML
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>Negative controls: a nav list, a table, a card grid and a list spaced right</title>
|
||
<style>
|
||
:root { --ink: #1d2433; --muted: #6b7385; --line: #dfe3ea; --paper: #ffffff; }
|
||
* { box-sizing: border-box; }
|
||
body { margin: 0; font: 14px/20px system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #f5f6f8; }
|
||
main { max-width: 720px; margin: 0 auto; padding: 24px 16px; }
|
||
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; }
|
||
.panel h2 { font-size: 18px; line-height: 24px; margin: 0 0 12px; }
|
||
.rows { border: 1px solid var(--line); border-radius: 6px; }
|
||
.row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
|
||
.row:first-child { border-top: 0; }
|
||
.row .text { flex: 1; min-width: 0; }
|
||
.row .name { font-weight: 600; }
|
||
.help { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
|
||
.x { flex: none; width: 32px; height: 32px; border: 0; padding: 0; background: transparent; color: var(--muted); }
|
||
.panel + .panel { margin-top: 24px; }
|
||
nav.side ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); }
|
||
nav.side li { padding: 2px 6px; }
|
||
nav.side a { color: var(--ink); font-size: 14px; }
|
||
nav.side small { display: block; }
|
||
table { border-collapse: collapse; width: 100%; }
|
||
td, th { padding: 4px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
|
||
td small { display: block; color: var(--ink); }
|
||
td button { width: 18px; height: 18px; padding: 0; }
|
||
.table-help { margin: 2px 0 0; }
|
||
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
|
||
.tile { border: 1px solid var(--line); padding: 3px; }
|
||
.tile b { display: block; }
|
||
.row .desc { color: var(--muted); font-size: 13px; }
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<main>
|
||
<section class="panel negatives">
|
||
<h2>Navigation</h2>
|
||
<nav class="side"><ul>
|
||
<li><a href="#general">General</a><small>Name, region and billing owner</small></li>
|
||
<li><a href="#sharing">Sharing</a><small>Credentials, channels and people</small></li>
|
||
<li><a href="#danger">Danger zone</a><small>Archive or delete the project</small></li>
|
||
</ul></nav>
|
||
<p class="table-help">Settings are saved as you go.</p>
|
||
<h2>Deploys</h2>
|
||
<table>
|
||
<tr><th>Service</th><th>Status</th><th></th></tr>
|
||
<tr><td>api<small>us-east</small></td><td>Live<small>2 min ago</small></td><td><button aria-label="Retry api">↻</button></td></tr>
|
||
<tr><td>web<small>us-west</small></td><td>Building<small>just now</small></td><td><button aria-label="Retry web">↻</button></td></tr>
|
||
</table>
|
||
<p class="table-help">Deploys older than 30 days are archived.</p>
|
||
<h2>Environments</h2>
|
||
<div class="cards">
|
||
<div class="tile"><b>Production</b>Three regions</div>
|
||
<div class="tile"><b>Staging</b>One region</div>
|
||
<div class="tile"><b>Preview</b>Per branch</div>
|
||
</div>
|
||
<p class="table-help">Each environment has its own secrets.</p>
|
||
<h2>Credentials</h2>
|
||
<div class="rows">
|
||
<div class="row"><div class="text"><div class="name">Deploy key</div><div class="desc">Read-only access to the repository, added by Dana on March 3</div></div><button class="x" aria-label="Remove Deploy key">×</button></div>
|
||
<div class="row"><div class="text"><div class="name">Registry token</div><div class="desc">Pushes release images, added by Omar on April 18</div></div><button class="x" aria-label="Remove Registry token">×</button></div>
|
||
</div>
|
||
<p class="help">Credentials are encrypted at rest and never shown again after you add them.</p>
|
||
</section>
|
||
</main>
|
||
</body>
|
||
</html>
|