Repository navigation
fix(docsite): sync ThemingTarget/DerivedVar with the authoring types - #4915
Merged
Merged
Conversation
The docsite generator keeps its own copy of the authoring doc types. ComponentThemingTarget.deprecatedFor and ComponentThemingDerivedVar.replaces were added upstream but never mirrored here, so componentRegistry.ts emits fields its own interfaces reject and the docsite build fails type checking.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
nynexman4464
marked this pull request as ready for review
August 11, 2026 22:50
imdreamrunner
pushed a commit
to is-jain/astryx
that referenced
this pull request
Aug 14, 2026
…eta#4915) The docsite generator keeps its own copy of the authoring doc types. ComponentThemingTarget.deprecatedFor and ComponentThemingDerivedVar.replaces were added upstream but never mirrored here, so componentRegistry.ts emits fields its own interfaces reject and the docsite build fails type checking.
imdreamrunner
added a commit
that referenced
this pull request
Aug 14, 2026
…) (#4916) * fix(core): TopNavMegaMenu anchors to its trigger outside a <nav> (#4905) DefaultMegaMenu set its CSS anchor via triggerButtonRef.current?.closest('nav') and skipped the triggerRef call entirely when no <nav> ancestor exists — so a standalone render (like the docsite Properties preview) left no element carrying the anchor name. The panel's position-area then computes to 'none' and the top-layer popover pins to the viewport top-left corner. Fall back to anchoring on the trigger button itself so the panel opens below its trigger wherever the component is rendered. * fixup: wrap the docs preview in a TopNav instead of changing the anchor logic Per review: the Properties preview should render TopNavMegaMenu in its real context. Declare playground.wrapper: TopNav in TopNavMegaMenu.doc.mjs (the preview injects the component as children, an alias for startContent) so the panel anchors to the wrapper's <nav> and opens below the bar. Revert the trigger-anchor fallback in TopNavMegaMenu.tsx and its tests; drop the changeset since the published component behavior no longer changes. * fix(docsite): sync ThemingTarget/DerivedVar with the authoring types (#4915) The docsite generator keeps its own copy of the authoring doc types. ComponentThemingTarget.deprecatedFor and ComponentThemingDerivedVar.replaces were added upstream but never mirrored here, so componentRegistry.ts emits fields its own interfaces reject and the docsite build fails type checking. --------- Co-authored-by: nynexman4464 <[email protected]> Co-authored-by: Ivor Zhou <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The docsite data generator emits its own copy of the authoring doc types into
src/generated/componentRegistry.ts. Two fields that exist on the canonical types inpackages/cli/authoring/doctypes/base/type.tswere never mirrored into that copy:ComponentThemingTarget.deprecatedFor— used byIndicator,CheckboxInput,RadioListComponentThemingDerivedVar.replaces— used byTextAreaSo the generator writes those fields into the registry and then the registry's own interfaces reject them.
tscfails on the generated file:This blocks
pnpm -F @astryxdesign/docsite build— the build compiles, then dies in the TypeScript step.Verification
Also green:
pnpm check:repo,pnpm -F @astryxdesign/docsite test(364 passed), and a fullpnpm -F @astryxdesign/docsite build.No changeset —
@astryxdesign/docsiteis private and unpublished.Note on the underlying pattern
The generator's copy has to be kept in step with the authoring types by hand, and nothing checks the two against each other, so this drift is silent until a component actually authors the new field. Worth a follow-up to either derive the emitted interfaces from the authoring types or add a
check:syncguard — out of scope here.