Repository navigation
fix(docsite): remove duplicate playground key in Skeleton doc - #3197
Merged
Merged
Conversation
Skeleton.doc.mjs declared the playground key twice, failing the typecheck:docs gate (TS1117) and blocking the build job on every open PR. Keep the later block (the effective one) and drop the dead earlier duplicate; no change to the rendered properties-tab preview.
cixzhang
requested review from
ejhammond,
imdreamrunner,
josephfarina,
marie-lucas,
nynexman4464 and
thedjpetersen
as code owners
June 26, 2026 23:20
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
🚀 Vercel Preview Deployment
|
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
cixzhang
enabled auto-merge (squash)
June 26, 2026 23:31
thedjpetersen
approved these changes
Jun 27, 2026
github-actions
Bot
deleted the
navi/fix/skeleton-doc-duplicate-playground
branch
July 12, 2026 06:58
3 tasks done
cixzhang
pushed a commit
that referenced
this pull request
Oct 25, 2026
…core (#8318) Depends on #8313: until it merges, this branch carries its commit, and lab's typecheck needs it. Review the last commit. ## Maintainer impact A type error in the sources or tests of `@astryxdesign/lab`, `charts`, `richtext` or `vega` merges without a red check. CI's `typecheck` job and the push gate's `typecheck` lane run only these packages' `typecheck:docs`, which covers their `.doc.mjs` files; core alone also runs its full `typecheck`. Lab's `MobileTokenizer.test.tsx` merged with an error this way (TS2348, fixed in #8313), and anyone running `pnpm -F @astryxdesign/lab typecheck` hit it on main. ## Intended invariant Every component package's own sources and tests typecheck in both typecheck lanes, as core's do since #3197: a type error fails the required `build` join (and the release check) instead of landing on main. ## Change - `ci.yml` `typecheck` job: `Typecheck lab / charts / rich text / Vega (including tests)` after `Typecheck core (including tests)`, with the same specialized-lane guard. No new job, scope or join: `typecheck` already runs for every non-specialized change and feeds `build`. - `deploy.yml` `typecheck` lane: the same four gates after core's. - `ci-test-routing.test.mjs`: both workflows must run `pnpm -F @astryxdesign/<package> typecheck` (the exact command, so `typecheck:docs` does not count) for core, lab, charts, richtext and vega, guarded like core's. Cost: 1–8 s per package on a large machine. The `typecheck` job (about 4.5 min, mostly the build) runs beside `build-storybook` and stays off the critical path. ## Evidence - Failure before the change: the new routing cases fail on main's workflows ("ci.yml does not typecheck lab", and the same for deploy.yml). On main, `pnpm -F @astryxdesign/lab typecheck` exits 2. - Success after the change: with #8313, all four typechecks pass after `pnpm build` (lab 8 s, charts 2 s, rich text 5 s, Vega 1 s); the routing cases pass. - Product/runtime behavior verified unchanged: workflow and test files only. ## Scope - [x] No intended public API, product behavior, visual direction, or policy change. - [x] Product changes discovered during the work were removed or split. - [x] Public text and artifacts contain no internal Meta context. ## Testing - `pnpm exec vitest run .github/scripts`: 1,229 passed; with the workflow edits reverted, the two new cases fail. - `pnpm build`, then `pnpm -F @astryxdesign/{lab,charts,richtext,vega} typecheck`: all exit 0. - Prettier on the touched files and the pre-commit repo checks: clean.
3 tasks done
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.
Problem
packages/core/src/Skeleton/Skeleton.doc.mjsdeclares theplaygroundkey twice in thedocsobject. This fails thetypecheck:docsgate with:Because the
buildjob runstypecheck:docsagainst the PR-merged-with-maintree, this breaks the build check on every open PR, not just one. (main's own push only runstest, so the duplicate landed without thebuildgate catching it.)The two blocks came from two separate fixes for the same Skeleton properties-tab preview issue — one added a
playgroundblock afterkeywords, the other afterprops. In JS, the later key wins, so the first block was already dead.Fix
Remove the dead earlier
playgroundblock and keep the later one (the effective320 × 80preview). No change to the rendered properties-tab preview.Verification
pnpm -F @astryxdesign/core typecheck:docs→ passes (was TS1117).pnpm lint,sync-exports --check,generate-token-docs --check,check-changesets→ all clean.