Skip to content

docs(cli): a short form keeps its own 640 column inside a wide template frame - #12676

Closed
josephfarina wants to merge 2 commits into
mainfrom
josephfarina/short-form-own-column
Closed

josephfarina wants to merge 2 commits into
mainfrom
josephfarina/short-form-own-column

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Primary intent

A short form keeps its own 640 column even when the page starts from a template with a wide frame. Documentation change.

User impact

When a reader builds a small form (a few fields and one Save button) from a template made for a full preferences page, they often keep the template's 1440 frame and three-column grid for the form itself, so the form stretches across the page. The layout rule already says forms cap at 640; this states that the rule still holds inside a template's wide frame.

  • astryx docs layout: the scaffold step adds one sentence: a short form keeps its own 640 column even inside a wide template frame or a multi-column grid.
  • astryx docs scaffold: one new "don't" item: carrying a template's 1440 frame or three-column grid over to a single short form.

No routes, keywords or behavior change.

Change and evidence

  • packages/cli/assets/docs/tree/layout.doc.mjs, packages/cli/assets/docs/tree/scaffold.doc.mjs: the two lines above.
  • Blind agent run, main against this change, 4 layout and tokens tasks x 3 runs, graded blind: equal or better on every task, 9/12 -> 10/12. The account-settings form task went 0/3 -> 1/3 (the other two runs still copied a wide template frame); the other three tasks stayed 3/3. Docs reading changed only on tasks this change does not touch (run-to-run noise).

Testing

With CI=1: core-doc-quality, docs-graph, golden-reads pass. experimental-isolation has one failure, "doctor reports an invalid installed set", which fails the same way on main without this change.

preflight: pass b60d93a

@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 19, 2026 2:11am UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 19, 2026, 2:18 AM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 18, 2026
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 4fa9fcf

Storybook · Sandbox · built from this PR's head

Package size: @astryxdesign/cli 5.49 MB packed (+133 B); no new dependencies.

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.

Current run: CI concluded cancelled; parts of this report may be missing.


Generated by PR Enrichment workflow | View full report

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet, because the pull request is a draft; it runs once the pull request is marked ready for review.

Both doc lines restate the layout guide's existing 640 rule for forms, and the docs graph, golden reads and doc-quality tests pass on this head. One optional wording suggestion:

  • The new don't line in scaffold.doc.mjs puts its remedy ("keep the frame") behind the x prefix and does not say how to cap the form; leading with the anti-pattern and naming Layout contentWidth={640} would remove the ambiguity (see the inline comment).
Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: the changeset says astryx docs layout and the scaffold guide keep a short form in its own 640 column inside a wide frame or grid: verified (layout.doc.mjs:41, scaffold.doc.mjs:50).
  • Claim: the layout rule already caps forms at 640: verified (layout.doc.mjs:41 on the base, scaffold.doc.mjs:90-95).
  • Claim: a full preferences template carries a 1440 frame and a three-column grid: verified (settings/page.tsx:76, :126).
  • Claim: astryx docs layout adds one sentence to its scaffold step: verified from the command's output.
  • Claim: astryx docs scaffold shows one new don't item: verified; the command opens the layout scaffold guide.
  • Claim: no routes, keywords or behavior change: verified (placement and keywords unchanged; the docs graph test passes).
  • Claim: core-doc-quality, docs-graph and golden-reads pass: verified on this head.
  • Claim: the experimental-isolation failure also occurs on main: not reproduced; all 54 tests pass on this head and on main, so the change causes no failure there.
  • Claim: the blind agent result is pending: noted; there is no result to check yet.
  • File: .changeset/short-form-own-column.md: clear.
  • File: packages/cli/assets/docs/tree/layout.doc.mjs: clear.
  • File: packages/cli/assets/docs/tree/scaffold.doc.mjs: one optional wording suggestion.

Automated review (maintainer link)

@josephfarina
josephfarina marked this pull request as ready for review November 18, 2026 19:20
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 4fa9fcf

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet. The head commit's message carries [skip ci], so the CI, Lint and CLI Smoke Test workflows did not start on it; push a commit without that marker so they run before merge.

Both doc lines restate the layout guide's existing 640 cap for forms, the earlier wording suggestion on the scaffold guide's don't item is addressed, and the docs graph, golden reads and doc-quality tests pass on this head.

Claims and files checked

Review mode: incremental; reason: none

  • Claim: the changeset says astryx docs layout and the scaffold guide keep a short form in its own 640 column inside a wide frame or multi-column grid: verified (layout.doc.mjs:41, scaffold.doc.mjs:50, and both commands' output).
  • Claim: a short form keeps its own 640 column when the page starts from a wide-frame template: verified (the same two lines).
  • Claim: a full preferences template carries a 1440 frame and a three-column grid: verified (settings/page.tsx:76, :126).
  • Claim: the layout rule already caps forms at 640: verified (layout.doc.mjs:41 on the base, scaffold.doc.mjs:73 and :90-95).
  • Claim: astryx docs layout adds one sentence to its scaffold step: verified from the command's output, base against head.
  • Claim: astryx docs scaffold shows one new don't item: verified from the command's output, base against head.
  • Claim: no routes, keywords or behavior change: verified (placement and keywords unchanged; the docs graph test passes).
  • Claim: readers often keep a template's wide frame, and the blind agent run went from 9 of 12 to 10 of 12: not verifiable from the pull request, which reports but does not attach the run; no shipped behavior rests on it.
  • Claim: core-doc-quality, docs-graph and golden-reads pass with CI=1: verified on this head.
  • Claim: experimental-isolation has one failure that also fails on main: not reproduced; all its tests pass on this head and on the base, so the change causes no failure there.
  • File: .changeset/short-form-own-column.md: clear.
  • File: packages/cli/assets/docs/tree/layout.doc.mjs: clear.
  • File: packages/cli/assets/docs/tree/scaffold.doc.mjs: clear; the earlier wording suggestion is addressed.

Automated review (maintainer link)

josephfarina added a commit that referenced this pull request Nov 19, 2026
- #12635 fix(cli): export loads and gives back a page whose modules import TypeScript files by .js names
  Author: @josephfarina
- #12727 fix(cli): export loads a served package's subpath exported only to imports
  Author: @josephfarina
- #12224 fix(cli): a {@link} in a template description resolves as astryx docs resolves it
  Author: @josephfarina
- #12278 fix(core): a Theme given a value that is not a theme keeps the page running
  Author: @josephfarina
- #12751 feat(Layout): LayoutContent names its container, so a theme styles a dialog's body apart from its header and footer
  Author: @josephfarina
- #12168 fix(templates): header, footer and toolbar rows wrap for longer translated labels
  Author: @josephfarina
- #12399 [experimental] export: the dropped-text warning checks Core's docs, and text not drawn yet inside Core components that take children no longer warns
  Author: @josephfarina
- #12541 [docs] Core: list the props ComplexSelector, Selector, Toast and ContextMenuItem take
  Author: @josephfarina
- #12676 docs(cli): a short form keeps its own 640 column inside a wide template frame
  Author: @josephfarina
- #12458 fix(core): Field labels use the primary text colour
  Author: @josephfarina
- #12373 [experimental] export: a link to a place in the page stays in the file in a srcdoc viewer frame
  Author: @josephfarina
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed in #12827.

@github-actions
github-actions Bot deleted the josephfarina/short-form-own-column branch November 20, 2026 06:06

This branch was successfully deployed

1 active deployment
Preview — b60d93a0 Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant