Repository navigation
chore: land 12 approved pull requests together (batch 1) - #12713
Conversation
…form on a narrow first paint
… provider ID When two installed packages claim the same provider ID, the second is set aside and the warning says it contributes nothing "until one package changes its providerId". That advice is wrong when both manifests declare the ID themselves: the packages then say they are one integration published under two names (a renamed package and the old name, say), and changing an ID would make both load. The warning now names that case and says to keep one of the two dependencies. The signal is exact: each manifest writes `providerId`, rather than taking it from its package name. A package that claims another package's name-derived ID keeps the current advice.
…or's fix too Two packages that both declare the same provider ID may be one integration under two names, or two unrelated packages that chose the same ID. The warning now says both: if they are one integration installed under two names, keep one of the two dependencies; otherwise one package must change its providerId. `astryx doctor`'s `provider-identity` fix gives the same two cases when every conflict is between packages that both declare the ID, and keeps the current fix otherwise. The conflict record carries `bothDeclare` so doctor reads the case rather than the message. Tests pin the message and the fix for both cases, and the resolver test file is prettier-clean.
…onflict `astryx doctor`'s `provider-identity` fix chose the two-case advice only when every conflict was declared by both manifests, so a project with one such conflict and one other got only the rename advice. It now names both fixes, each for the conflicts it fits. Tests pin the mixed case and that the resolver marks `bothDeclare` only on a conflict both manifests declare.
…lt a theme Each theme output's header names the CLI release that built it. --check and doctor's theme-local-builds compared that line as content, so every update of the CLI that answers marked every local theme stale, though a rebuild changed only that line. The comparison now leaves out the header's CLI line; the Core line and all real content still count. AST-050 FR8 states the rule.
…ot the CLI line AST-050 FR8 now says what --check compares: each output against what the build writes from the theme's inputs, the header's Core line included. Tests cover a CLI-line-only difference (not stale), content drift beside another release's header (stale), a Core-line difference (stale), and pack-check's build comparison leaving out only the CLI line.
…rop and the fix in development
A new Core test reads each prop type with the TypeScript checker and fails when a documented closed string union differs from it. Docs follow the types: Text `as` now lists h1, h2 and h3; PowerSearch `statusVariant` lists tooltip (en and zh).
Drop the separate Core union guard. The shared prop-drift check now lets a doc leave out a string value the code deprecates everywhere the type takes it from, the Core docs test also compares the Chinese tables' types, and the known-drift list loses the three entries this change fixes. PowerSearch says what tooltip shows.
…rop name it and the fix in development
The deprecated-value allowance for the shared prop check moves to its own change, so FieldStatus variant stays on the known-drift list here.
A built module's doc comment names the command that built it. Modules built while the CLI ran under one command name (a package runner, or a tool that runs the CLI for its users) were stale under any other, though only that name differed. The --check comparison now treats that command as a placeholder, as integration verify already does; the theme name on the line still counts. BUILT_BY_LINE moves to build.mjs and pack-check imports it. AST-050 FR8 says both lines alone never make an output stale.
…header's one CLI line counts as provenance withBuiltByCommandPlaceholder is the one rule for the built-by line, called by theme build --check and integration verify. --check now replaces the release in the header's one CLI line instead of dropping every CLI line, so a missing or second CLI line, or one outside the header, stays significant. Comments name the built-by command.
withCliReleasePlaceholder (with generatedHeaderEnd) is the one rule for the header's CLI line: the release becomes <version> when the header holds exactly one. theme build --check and integration verify both call it.
…cript it compiled from a theme's local modules
…ile stamps the CLI's own files; name the browserslist fix
…r restores the page's copy with the paths entry, instead of refusing
…n the key, Babel's file named; changeset names only the invalid-setting fix
c15f564 to
8e36a2f
Compare
|
/approve-spec 8e36a2f |
There was a problem hiding this comment.
Approved. The twelve pull requests land unchanged: each merge carries the head that was approved on its own pull request, the five record changes and the five named behaviors are approved for this head, and CI passed here.
Optional follow-ups:
dashboard-progress/page.tsx:765-767still says the card wraps the donut's legend; the donut no longer sits in a card.Switch.doc.mjs:412leaves the--_switch-field-gapdescription in English insidedocsZh;CheckboxInput.doc.mjstranslates its twin.
Claims and files checked
Review mode: full; reason: history
- Claim: twelve approved pull requests land together, merged onto main in order with nothing else. Verified: twelve merges in the listed order, each carrying that pull request's current head and reproducing its own patch.
- Claim: each was reviewed and approved on its own head. Verified: an approving review exists at each of the twelve heads.
- Claim: the CLI rows are experimental and patch-level:
RenderAliased.configandpathsbecome optional,sameAsProjectanddiffersare added. Verified:render.type.mjs, the./api/experimentalentry and a patch[experimental]release note; no other public row changes. - Claim: the listed record changes (theme check, icon tie order, checkbox and switch label room, kept compile). Verified: exactly those five record edits, with the sentences and evidence rows described.
- Claim: each pull request is closed with a note after merge. Not checkable in code.
- Release note, Chat missing props: development builds name the missing prop and the fix; production unchanged. Verified:
ChatToolCalls.tsx:579,ChatDictationButton.tsx:127andChat.missingProps.test.tsx(development message, production TypeError, message absent from the production bundle). - Release note, checkbox and switch label room:
gapon the two targets sets it; default 8 px; hidden label keeps none. Verified:derivedVarRegistry.ts:58,:95,CheckboxInput.tsx:88,Switch.tsx:263and three tests; before, the outer field was not a flex box, sogapthere did nothing. - Release note, doc unions: Text
asand PowerSearchstatusVariantdocs list what the types allow, and the tooltip text matches PowerSearch. Verified:Text.tsx:164,fieldStatusPlacement.ts:18, Field renders no box and announces the message, PowerSearch draws no status icon; the drift test passes with both lines removed. - Release note, icon ties: a fully named id wins a tie (
plusbeforefolder-plus). Verified:icon-ranking.mjs:763and the new test. - Release note, checkout first paint: the summary wraps below the form on a narrow first paint; wide screens unchanged. Verified in code: wrap and minimum widths in both pages; the checkout switch (host over 900 px) stays above its 864 px wrap point, and payment's 768 px query above its ~652 px wrap point.
- Release note, provider advice: keep-one advice only when both manifests declare the ID, in the warning and doctor's fix. Verified:
provider-resolution.mjs:217,doctor.mjs:1850and the new tests. - Release note, render timings: React logs no render timings during export, and the file is the same. Verified:
page-worker.mjs:512and the new test; the 42 s to 29 s figure was not re-measured. - Release note, reverse alias: the project's identical files are reused (
sameAsProject), otherwise the page's copy returns withdiffers,projectWideandinstead, never into an existing folder, andconfig/pathsappear only with imports. Verified:_adapter.mjs:946-1056and the new render tests. - Release note, Selector width: the trigger-width minimum is clamped by the viewport cap in all three components. Verified: three tests and a 640 px to 388 px list in Chromium.
- Release note, dashboard sections: page regions leave cards; tiles, trend charts and notes keep theirs. Verified in code and before and after frames.
- Release note, theme check: another CLI release or command name no longer makes outputs stale in
--checkor doctor; headers still name them. Verified:build.mjs:945, doctor's check calls the same compare, and the new tests. - Release note, kept compile: the first build after an upgrade reuses the compiled JavaScript when the compiling module and Babel are unchanged; an invalid browserslist setting no longer breaks it. Verified:
self-contained.mjs:353and the new kept-compile tests; the timing figures were not re-measured. - Files, the twelve
.changeset/*.md: clear. - Files, the five records (
AST-050,AST-081,AST-084,CheckboxInput,Switchspecs): clear. - Files,
Selector.tsx,MultiSelector.tsx,ComplexSelector.tsxand their three viewport-cap tests: clear. - Files,
CheckboxInput.tsx,Switch.tsx: non-blocking (comment sentence over 25 words).CheckboxInput.doc.mjs,labelGap.source-build.test.mjs,derivedVarRegistry.ts, its test,generateThemeRules.test.ts: clear.Switch.doc.mjs: non-blocking (untranslated Chinese string). - Files,
ChatToolCalls.tsx,ChatDictationButton.tsx,Chat.missingProps.test.tsx: clear. - Files,
Text.doc.mjs,PowerSearch.doc.mjs,PowerSearch.tsx,core-prop-docs.test.mjs,core-prop-docs.known-drift.json: clear. - Files,
doctor.mjs,doctor.test.mjs,integrations.mjs,provider-resolution.mjs,provider-resolution.test.mjs: clear. - Files,
icon.doc.mjs,icon.test.mjs,icon-ranking.mjs: clear. - Files,
build.mjs,build.test.mjs,pack-check.mjs,pack-check.test.mjs: clear. - Files,
self-contained.mjs,self-contained.kept.test.mjs,gather-cache.mjs,loaded-files.mjs,lazy-dependencies.mjs: clear. - Files,
render/_adapter.mjs,render.doc.mjs,render.type.mjs,render.test.mjs,render-output.mjs,embedded-imports.mjs,relative-specifier.mjs,export-pages.doc.mjs,swizzle/_adapter.mjs,_moduleGraph.mjs,copy/copy.mjs: clear. - File,
page-worker.mjs: clear. - Files,
dashboard-scorecard/page.tsx: clear.checkout-wizard/page.tsx: non-blocking (page over 1,000 lines).dashboard-progress/page.tsx: non-blocking (page over 1,000 lines, rubric 74 as onmain, stale comment).payment-form/page.tsx: non-blocking (page over 1,000 lines, rubric about 65 as onmain).
| // The room between the box and its label. A theme sets it with gap on | ||
| // the `checkbox-input` target, which the compiler hands to this row as | ||
| // --_checkbox-input-gap (derivedVarRegistry): the target is the outer | ||
| // field, which also holds the status message below the row. |
There was a problem hiding this comment.
Optional (comment style): the second sentence runs about 37 words. A shorter form that keeps the reason: "A theme sets this room with gap on the checkbox-input target. The compiler passes it to this row as --_checkbox-input-gap. The target is the outer field, which also holds the status message." The same applies to Switch.tsx:259-262.
| { | ||
| name: '--_switch-field-gap', | ||
| description: | ||
| 'Room between the switch and its label; set by gap on the switch-field target', |
There was a problem hiding this comment.
Optional: this docsZh entry keeps the English description, while CheckboxInput.doc.mjs translates its twin (复选框与其标签之间的间距;由 checkbox-input 目标上的 gap 设置).
|
/approve-spec 8e36a2f |
This pull request lands twelve approved pull requests together in one CI run, merged onto main in order with no other changes. Each one was reviewed and approved on its own head.
Scope
Components: RenderAliased, ChatToolCalls, ChatDictationButton, CheckboxInput, Switch, Selector, MultiSelector, ComplexSelector, Text, PowerSearch
The CLI rows are experimental (
./api/experimental), patch-level, and named by their[experimental]changesets:RenderAliased.configandRenderAliased.pathsbecome optional, andRenderAliased.sameAsProjectandRenderAliased.differsare added.Records
spec:AST-050FR8 gains three sentences on what--checkcompares.spec:AST-084FR6 states the tie order.CheckboxInputFR9 andSwitchFR2 state the room between the control and its label, with their evidence rows.spec:AST-081FR7's kept-catalogs bullet gains three sentences.Writing rubric results
Each record change above was checked against the rubric on its own pull request: R1 narration none (present tense), R2 research none in the record, R3 no evidence cell names a change (new evidence rows name their tests), R4 no rejected alternatives added, R5 no change references, R6 no open questions touched, R7 no project status.
When this merges, each pull request above is closed with a note that names this one.