Repository navigation
Rewrite block source imports to match the displayed file tree - #32
Merged
WaylandYang merged 3 commits intoOct 15, 2026
Merged
Conversation
Signed-off-by: Maya Kid <29959320+Maya-Kid@users.noreply.github.com>
Signed-off-by: Maya Kid <29959320+Maya-Kid@users.noreply.github.com>
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.
Why
Copied stock block code imports this site's
@/blocks/<name>/...folders even though the code panel shows files atcomponents/...,page.tsxandshared/overview.tsx.sidebar-16also delivers upstream preview-onlyiframeHeightanddescriptionexports that Next App Router pages reject.What changes
Rewrite the site-specific block and shared prefixes in the source delivered by each code panel. Remove the two known preview metadata declarations only from delivered
page.tsxtext. The original preview modules, their metadata exports, displayed paths and rendered examples remain unchanged.Validation
npm run docs,npm run typecheckandnpm run buildpass. Both themes mount all 389 examples with 0 failures and no page errors.@/blocks/imports. All 203 alias references resolve to delivered local files or existing UI/hook dependencies.sidebar-16copied page omits preview metadata while importing the original Vite module still returns both metadata exports; its preview renders without page errors.The consumer checks use the dependency versions above. A separate probe using Recharts 3.10.1 encountered an existing stock dashboard
labelFormattertype incompatibility (new Date(value)with its widened ReactNode label type); that upstream compatibility change is outside this source-delivery fix.