Skip to content

docs(render): the shareable-page guide comes first in its folder for the words agents use - #12285

Closed
josephfarina wants to merge 17 commits into
mainfrom
josephfarina/render-guide-keywords
Closed

josephfarina wants to merge 17 commits into
mainfrom
josephfarina/render-guide-keywords

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

User need

Agents that need a page as one shareable HTML file look for it with words like "export", "standalone", "self-contained", "offline" and "bundle", and blind agents guessing the command type export page.tsx --out page.html first. The shareable-page guide's keywords hold none of those words.

Problem and solution fit

  • The guide's keywords now hold the words agents use: export, export html, standalone, self-contained, offline, bundle, portable, send, email, save as html. ("one file" and "html file" stay out: the render guide's title, "Pages as one HTML file", already answers them first.)
  • What changes for a caller: astryx docs cli/experimental/<word> lists the shareable-page guide first for those words. astryx search does not return experimental guides, so its results do not change.

Current specification

Docs only; astryx docs cli/experimental/share-a-page is experimental (spec:AST-017 FR27).

Public delta and caller burden

None beyond the order astryx docs cli/experimental/<word> lists guides in.

Scope

  • One change.
  • Public text and artifacts contain no internal Meta context.

Testing

  • pnpm exec vitest run --project node packages/cli/assets/docs packages/cli/foundation/doc-compiler (327 passed).

@vercel

vercel Bot commented Nov 17, 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 17, 2026 3:44pm UTC

Request Review

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

astracat-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 17, 2026, 3:50 PM UTC

@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.

Changes requested: the new keywords are fine, but the release note promises a search improvement the change does not ship.

  • The release note (.changeset/share-a-page-keywords.md) says the shareable-page guide "is found by" words like "export" and "standalone", but astryx search never returns experimental guides, so the only change is that astryx docs cli/experimental/<word> lists the guide first; reword the note, the title and the description to say that, or drop the note, since a documentation-only change needs none.

The 6-to-15-of-27 measurement in the description was taken with experimental guides searchable, which the CLI does not allow, and astryx search prints the same results before and after this change.

Claims and files checked

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

  • Release note: search words such as "export" now find the guide. False: search leaves experimental guides out; only the suggestions for an unknown route under the experimental docs change.
  • Title: the guide answers the words agents search with. Overstated the same way.
  • Description: the guide's keywords now include the twelve listed words. Verified in the guide.
  • Description: a frozen 27-query measurement went from 6 to 15 top-three hits. Not reproducible here (the query set is not in the pull request), and it measures a setting the CLI does not ship.
  • Description: docs only, on an experimental route. Verified.
  • Description: no public change beyond search results. False: search results are unchanged; the suggestion order under the experimental docs changes.
  • Description: one change, with no internal context. Verified.
  • Description: the stated test command passes with 327 tests. Verified.
  • Description: stacked on the render live-app change. Verified.
  • packages/cli/assets/docs/tree/share-a-page.doc.mjs: clear.
  • .changeset/share-a-page-keywords.md: the release-note finding above.

Automated review (maintainer link)

Comment thread .changeset/share-a-page-keywords.md Resolved
@josephfarina josephfarina changed the title docs(render): the shareable-page guide answers the words agents search with docs(render): the shareable-page guide comes first in its folder for the words agents use Nov 17, 2026

@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.

Changes requested: one claim in the description and title is broader than what the change ships; the keywords and the release note are otherwise fine.

  • The description says astryx docs cli/experimental/<word> lists the shareable-page guide first for all twelve new words, but for "one file" and "html file" the render guide (titled "Pages as one HTML file") still comes first, as before, because a title match outranks a keyword; drop those two keywords (share-a-page.doc.mjs:36-37) or say in the description and title that the guide comes first for ten of the twelve words.

The release note now matches what ships, and astryx search prints the same results before and after this change.

Claims and files checked

Review mode: incremental; reason: none

  • Release note: astryx docs cli/experimental/<word> lists the guide first for words such as export, standalone, self-contained, offline and save as html. Verified for each named word (third or second before, first now).
  • Release note: astryx search results do not change. Verified: search output is identical before and after, and experimental guides are skipped.
  • Description: the guide's keywords now hold the twelve listed words. Verified in the guide.
  • Description: astryx docs cli/experimental/<word> lists the guide first for those words. False for "one file" and "html file" (second, behind the render guide, as before); verified for the other ten.
  • Description: astryx search does not return experimental guides, so its results do not change. Verified.
  • Description: docs only, on an experimental route. Verified.
  • Description: no public change beyond the order of that suggestion list. Verified: no command, option or export changes.
  • Description: the docs and doc-compiler test run passes (327). Verified at this head.
  • Description: stacked on the render live-app change and lands after it. Verified: the base is that change's branch.
  • Description: agents search with these words and guess an export command first. Context only; not checkable from the code, and the change does not touch the command path.
  • Title: the guide comes first in its folder for the words agents use. Overstated the same way as the description.
  • File .changeset/share-a-page-keywords.md: clear, consistent with the guide.
  • File packages/cli/assets/docs/tree/share-a-page.doc.mjs: two keywords move nothing (finding above); the other ten clear.
  • changed rules (0): none

Automated review (maintainer link)

…ve (#12297)

ci: a pull request's Node legs grow with the suite, up to Main's twelve

@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: the ten new keywords put the shareable-page guide first in the astryx docs cli/experimental/<word> suggestions for every listed word, and the description and release note now match what ships.

  • The two keywords that could not move the guide ("one file" and "html file") are gone, so the description's claim holds for each word it lists.
  • astryx search and the stable docs print the same output before and after, as the description says.

The repository's CI workflow runs only for pull requests into main or a release branch, so it has not run on this one.

Claims and files checked

Review mode: incremental; reason: none

  • Release note: astryx docs cli/experimental/<word> lists the guide first for words such as export, standalone, self-contained, offline and save as html. Verified: each is first now (third or second before).
  • Release note: astryx search results do not change. Verified: search output is identical before and after, and experimental guides are skipped (packages/cli/api/search/_gather-docs.mjs:123).
  • Release note: a docs patch note for the CLI. Verified: the changeset check passes.
  • Description: the guide's keywords now hold the ten listed words. Verified (packages/cli/assets/docs/tree/share-a-page.doc.mjs:30-39).
  • Description: astryx docs cli/experimental/<word> lists the guide first for those words. Verified for all ten, spaced and hyphenated.
  • Description: "one file" and "html file" stay out because the render guide's title already answers them first. Verified: the render guide, titled "Pages as one HTML file", is first for both words before and after.
  • Description: astryx search does not return experimental guides, so its results do not change. Verified.
  • Description: docs only, on an experimental route. Verified: the guide is marked experimental and placed in the experimental namespace.
  • Description: no public change beyond the order of that list. Verified: no command, option or export changes, and stable docs output is identical.
  • Description: public text carries no internal context. Verified.
  • Description: the docs and doc-compiler test run passes (327). Verified at this head.
  • Description: stacked on the render live-app change and lands after it. Verified: the base is that change's branch.
  • Description: agents search with these words and guess an export command first. Context only; not checkable from the code, and the change does not touch the command path.
  • Title: the guide comes first in its folder for the words agents use. Verified for the ten listed words.
  • File .changeset/share-a-page-keywords.md: clear, consistent with the guide.
  • File packages/cli/assets/docs/tree/share-a-page.doc.mjs: clear.
  • changed rules (0): none

Automated review (maintainer link)

josephfarina and others added 16 commits November 17, 2026 04:34
…t within the step (#12310)

[fix] A vertical `Stepper` step with separated indicators (the default) keeps its content within the step. Before, a wide field in an expanded step, such as a `Selector`, pushed the step's body past the step, so on a phone the page scrolled sideways, text was cut at the right edge, and a dropdown opened off-screen. Now the body shrinks to the step's width and the content wraps inside it.
…2256)

* ci: Main's Node legs draw the theme editor as a pull request does, with the shard watchdog

Since 35fbc11 the Main unit run set THEME_EDIT_REAL_RENDERS on its Node legs, so every theme-editor file drew its pages for real while the legs are planned from times measured without that drawing; unit run 44038626677 had 7 of 12 Node legs cancelled at the limit. The legs now draw as a pull request's do, and run the shard watchdog that names the files still running before the limit.

* ci: keep #12256 to the drawing flag; the watchdog moves to its own pull request

The watchdog ends a still-running leg with exit 1, so a Main overrun would conclude as failure and main-heavy-lanes would count it as the tip's tested run instead of an incomplete run (AST-030 FR21). It needs a name-only mode first.

* Merge remote-tracking branch 'origin/main' into ci/main-unit-no-real-renders

* Merge remote-tracking branch 'origin/main' into ci/main-unit-no-real-renders
…de 24 (#12142)

* fix(cli): a theme load on Node 22.13 and 22.14 is refused as on later Node

Before Node 24, an exception from a microtask reaches uncaughtException
outside the async context that queued it, so the theme-load guard did
not see its load and the command failed with ERR_UNKNOWN. A microtask a
theme module queues while it loads now carries its load to the guard.

Without module hooks (before Node 22.15), a theme that imports a
stylesheet or an asset cannot load. Its refusal now names the file and
the Node it needs, and says nothing was written, in place of Node's
unknown-extension error. The build docs say the same. Tests that build
such a theme skip without module hooks; refusal tests check each Node's
message and that nothing is written.

* fix(cli): a microtask throw refuses a theme load that settled in the same checkpoint

A theme loaded through the CLI's own Core (no Core in its folder, and
each member of a --family build) settles in the same microtask
checkpoint as a microtask it queued. The load won the guard's race, so
an exception from that microtask was dropped and the theme built. A
refusal recorded while the load ran now wins over the settled load.

Co-authored-by: astracat-bot[bot] <323722387+astracat-bot[bot]@users.noreply.github.com>

* fix(cli): the stylesheet refusal names every Node that loads one, and covers the CLI's own Core

A theme loaded through the CLI's own Core reads an imported stylesheet or
asset as a script on a Node without module hooks, and failed with
'Unexpected token'. That syntax error now gives the same refusal, naming
the file. The refusal, the build docs and the changeset name Node 22.15
or later, or 23.5 or later, and the changeset says every Node before 24
answered ERR_UNKNOWN for a microtask throw. Tests import the one
hasModuleHooks.

* test(cli): a package stylesheet build test skips without module hooks

F44-10 builds a theme that imports a package stylesheet, which needs
module hooks. It skips without them, like the other stylesheet build
tests, and the module loader test uses the shared hasModuleHooks.

* fix(cli): the recorded theme-load refusal type-checks

TypeScript narrowed the refusal, assigned only inside its closure, to
never at the check after the race. It is now held in an object, so the
strict type check and the API type sync pass.

* Merge branch 'main' into lane4/cli-min-node-theme-stylesheets

* test(cli): the theme build tests read their temp folder by its real path

On macOS the temp folder sits behind a link (/var is /private/var). The
files a theme imports are listed by real path, so the case that lists a
theme's local imports expected /var paths and got /private/var ones.
The tests' folder is now its real path, as other CLI tests already do.

* docs(cli): the Node 22.15 note names the theme loads it covers

Theme build and the theme editor need Node 22.15 or 23.5 for a theme
that imports a stylesheet or an asset, and so does a recorded theme that
imports an asset or a stylesheet other than its own. A recorded theme
that imports its own stylesheet loads on an older Node.

* docs(cli): a recorded theme on an older Node refuses only an asset or a stylesheet another folder's module imports

On a Node before 22.15 a recorded theme still loads a stylesheet beside
it, a package's stylesheet, and one a sibling module imports. Only an
asset, or a stylesheet that a module in another folder imports by a
relative path, needs Node 22.15 or 23.5.
…n keyboard focus when the heading is cut short (#12175)

[feat] A table header cell whose heading is cut short shows the full heading in a tooltip when keyboard focus reaches a sortable header's sort control; a mouse hover shows nothing, as before. Headings that fit show no tooltip, and screen readers hear the heading once.
@josephfarina
…ow (#12118)

test(CircularProgress): hold motion before tracing its rendering window

Re-cut of #11871, byte for byte, on current main.

Co-authored-by: astracat-bot[bot] <323722387+astracat-bot[bot]@users.noreply.github.com>
… respond in frames that block dialogs (#12304)

[fix] The Table Filter template and the Avatar and LinkProvider example blocks show a "Demo: …" toast for their demo actions instead of calling `alert()`, so the click still responds when the page runs in a frame that blocks browser dialogs.
…so Core's stylesheet leaves a host's scheme alone (#12247)

[fix] A `Theme` in `system` mode now takes the light or dark scheme of the page around it. A host that draws the page dark, such as an artifact viewer in its dark theme, now gets the dark theme inside the `Theme` too; before, everything inside it followed the device's setting, so a reader on a light device saw dark text on the host's dark page. `useTheme()` and `useSyntaxTheme()` report the same mode, so charts and canvas match: a `system` Theme resolves to the scheme the page root names (light when it names none), else the device's setting, and under a `Theme` that forces light or dark it follows the device. If your app sets the page root's `color-scheme` to `light` or `dark` itself, that setting now decides what a `system` Theme shows. `useSyntaxTheme()` also follows a `Theme` that forces light or dark, as code blocks do. `reset.css` makes the page root follow the device's light or dark setting. Core's stylesheet, prebuilt or from a source build, sets no scheme on the page root. An app that does not load `reset.css` and names no scheme (no `color-scheme` on the page root and no `<meta name="color-scheme">`) stays light, and so do Astryx's tokens and `useTheme()` there; a theme's own `@dark` component styles still follow the device on such a page. To follow the device everywhere, import `@astryxdesign/core/reset.css`, or set `color-scheme: light dark` on `html`. `useTheme()` also reads the page's `<meta name="color-scheme">`, as the browser does.
@josephfarina
… a phone (#12315)

[fix] The editor template's transactions table keeps names readable on a phone. Each column now has a floor (name 180px, date and amount 120px, actions 60px), and its share of the width matches that floor. The table needs at least 480px; in anything narrower, such as a phone, it scrolls sideways instead of squeezing names to a letter or two per line. Desktop windows that give the table 480px or more do not scroll; the name column takes a larger share and the actions column a smaller one.
…r controls stay in the cell (#12312)

[fix] Table: in a narrow column, a header's label truncates before its sort indicator and filter button, so those controls stay inside the header cell and can be reached.
…hout failing the leg (#12263)

* ci: Main's Node legs name the files still running near the limit, without failing the leg

The shard watchdog gains a name-only mode (VITEST_SHARD_WATCHDOG_NAME_ONLY=1): it prints the running files as a warning and lets the job limit cancel the leg, so a Main overrun stays incomplete for main-heavy-lanes (AST-030 FR21). Main's test-node legs run it, timed as on a pull request.

* ci: Main's Node test step keeps its environment entries out of its script

THEME_EDIT_REAL_RENDERS and its comment had moved into the run block, where bash would run them as a command after the tests and exit 127 on every Main leg. They go back under env, and the workflow test now checks that the step's script is shell only (bash -n, no KEY: value lines).

* Merge remote-tracking branch 'origin/main' into ci/main-node-watchdog-name-only

* Merge remote-tracking branch 'origin/main' into ci/main-node-watchdog-name-only

# Conflicts:
#	.github/workflows/deploy.yml
… page's script always in it (#12039)

[experimental] `astryx experimental render` now writes the page as a live app in one file: popovers, menus, dialogs, tabs, forms and every other control work as in the app. The file carries the page's own script, inline after the embedded source: the page's modules and the packages they use, bundled for the browser by esbuild. It paints the rendered markup first, then the script draws the live page over it. It is still one file, and the render adds no network request and no `eval`, so it works in a sandboxed frame that allows scripts, under a content security policy that allows inline scripts; a frame that blocks scripts shows the markup, and `--reverse` still gives the page back byte for byte. A link out of the file opens in a new tab, and a form submits even in a viewer frame that blocks form submission: the file fires the form's submit event itself. A page whose script cannot be built for the browser (a module it loads needs Node, say) is refused with the new `ERR_RENDER_SCRIPT`, which names the module. esbuild is a new dependency of the CLI, and only `experimental render` loads it, so no other command starts slower. The JSON adds `scriptBytes` and `scriptModules` to a render. When the page's script throws, in its render or in an effect (a frame that blocks storage, say), the file keeps showing its first paint. An image the page names by a path in a string, in `src` or `srcSet`, keeps showing once the script draws the page, and an image named in `srcSet` is carried too. A page file the page loads later (a dynamic import) that does not compile is refused as a static import is, with `ERR_RENDER_COMPILE` naming the file and line.
@josephfarina
…yles (#12244)

[fix] `doctor` now says when an app does not load Core's component styles, `@astryxdesign/core/astryx.css`. In an app that uses Core's prebuilt styles, components render unstyled without them. Before, nothing caught it: the build, `doctor` and `doctor --built` all passed. Plain `doctor` warns when no project stylesheet or module imports them and no page links them. `doctor --built` warns when the output uses Astryx but no built stylesheet or page carries them. An app that compiles Core's styles from source with `@astryxdesign/build` is not checked.
@josephfarina
@josephfarina
josephfarina changed the base branch from josephfarina/render-interactive to main November 17, 2026 15:31
@josephfarina
josephfarina force-pushed the josephfarina/render-guide-keywords branch from be947d1 to b2a2468 Compare November 17, 2026 15:31
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 17, 2026

@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 finished on this head yet. The ten new keywords put the shareable-page guide first in the astryx docs cli/experimental/<word> suggestions for every listed word, and the title, description and release note match what ships.

  • GitHub still counts 14 commits that are already on main as part of this pull request (it shows 119 files), because its recorded base did not refresh when the base changed to main; that is why the review-signal check failed and the spec-owner label was added, while the change this pull request merges is the two files below.
Claims and files checked

Review mode: full; reason: rebase

  • Release note: astryx docs cli/experimental/<word> lists the guide first for words such as export, standalone, self-contained, offline and save as html. Verified: each is first now (third or second before).
  • Release note: astryx search results do not change. Verified: search output is identical before and after, and experimental guides are skipped (packages/cli/api/search/_gather-docs.mjs:128).
  • Release note: a docs patch note for the CLI. Verified: the changeset check passes.
  • Description: agents look for the page with words like export, standalone, self-contained, offline and bundle, and the guide's keywords held none of them. The second half is verified on the base; the first is context, not checkable from the code.
  • Description: agents guessing the command type an export command first. Context only; the change does not touch the command path.
  • Description: the guide's keywords now hold the ten listed words. Verified (packages/cli/assets/docs/tree/share-a-page.doc.mjs:30-39).
  • Description: one file and html file stay out because the render guide's title already answers them first. Verified: the render guide, titled Pages as one HTML file, is first for both words before and after.
  • Description: astryx docs cli/experimental/<word> lists the guide first for those words. Verified for all ten, spaced and hyphenated.
  • Description: astryx search does not return experimental guides, so its results do not change. Verified.
  • Description: docs only, on an experimental route. Verified: the guide is marked experimental and placed in the experimental namespace.
  • Description: no public change beyond the order of that list. Verified: no command, option or export changes, and stable docs output is identical.
  • Description: one change, and public text carries no internal context. Verified.
  • Description: the docs and doc-compiler test run passes (327). Verified: it passes at this head, now with 328 tests, one more arriving from main.
  • Title: the guide comes first in its folder for the words agents use. Verified for the ten listed words.
  • File .changeset/share-a-page-keywords.md: clear, consistent with the guide.
  • File packages/cli/assets/docs/tree/share-a-page.doc.mjs: clear.
  • The other 117 files GitHub lists come from 14 commits already on main; they are not part of what this pull request merges.

Automated review (maintainer link)

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · b2a2468

Storybook · Sandbox · built from this PR's head

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

Wide change (shared styles: packages/core/src/theme/Theme.tsx, packages/core/src/theme/defineTheme.ts, packages/core/src/theme/useTheme.ts): add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.

CI impact: +22.1 job-min per update · pool +12% · standard runners · 1 other workflow changed (not measured) · 12 CI action or script files changed (not measured) ⚠️
Before After Change
Job-minutes per PR update 182 204.1 +22.1
Runner pool, runner-minutes a day 63,754 71,487 +7,733 (+12%)
Average concurrent jobs 44.3 49.6 +5.4
Time to green (median → this run) — 56 min —
Runs a day 350 350 0

Changed jobs: node-browser-contracts changed: standard · test changed: standard · test-node changed: standard

Other workflows: deploy.yml changed: runs on push, workflow_dispatch; standard runners; its minutes are not measured here

Not measured (the jobs that use these keep their recent minutes above): .github/actions/test-scope/action.yml, .github/scripts/change-scope.cjs, .github/scripts/change-scope.test.mjs, .github/scripts/ci-tooling-routing.test.mjs, .github/scripts/fs-guard-tests.mjs, .github/scripts/fs-guard-tests.test.mjs, .github/scripts/main-validation-workflow.test.mjs, .github/scripts/render-interaction-parity.browser.test.mjs, .github/scripts/spec-owner-workflow.test.mjs, .github/scripts/test-scope-action.test.mjs, and 2 more.

Flags: runner-pool usage +12%.

Assumptions: before is each job's average over the last 20 pull-request runs; after keeps that for unchanged jobs and uses this run's minutes for added or changed ones, weighted by how often each changed job ran in those runs; runs a day averages the seven whole days before today; time to green compares this run with the median of those runs that ran the same jobs.


Generated by PR Enrichment workflow | View full report

@josephfarina

Copy link
Copy Markdown
Contributor Author

Closing: the keywords show no measured gain, and they would change search ranking once experimental guides are searchable.

@josephfarina
josephfarina deleted the josephfarina/render-guide-keywords branch November 18, 2026 22:54

This branch was successfully deployed

1 active deployment
Preview — b2a24685 Deployed Nov 17, 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. needs:spec-owner-review Current knowledge records await owner approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants