Skip to content

fix(docsite): remove duplicate playground key in Skeleton doc - #3197

Merged
cixzhang merged 1 commit into
mainfrom
navi/fix/skeleton-doc-duplicate-playground
Jun 27, 2026
Merged

cixzhang merged 1 commit into
mainfrom
navi/fix/skeleton-doc-duplicate-playground

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

Problem

packages/core/src/Skeleton/Skeleton.doc.mjs declares the playground key twice in the docs object. This fails the typecheck:docs gate with:

src/Skeleton/Skeleton.doc.mjs(46,3): error TS1117: An object literal cannot have multiple properties with the same name.

Because the build job runs typecheck:docs against the PR-merged-with-main tree, this breaks the build check on every open PR, not just one. (main's own push only runs test, so the duplicate landed without the build gate catching it.)

The two blocks came from two separate fixes for the same Skeleton properties-tab preview issue — one added a playground block after keywords, the other after props. In JS, the later key wins, so the first block was already dead.

Fix

Remove the dead earlier playground block and keep the later one (the effective 320 × 80 preview). 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.
  • Docsite-internal only; no consumer-visible API change, so no changeset.

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.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 26, 2026
@vercel

vercel Bot commented Jun 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview, Comment Jun 26, 2026 11:22pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Vercel Preview Deployment

Status ✅ Deployed
Preview Open Preview
Commit b13f9e3
Inspect Vercel Dashboard
Workflow View Logs

No authentication required — anyone with the link can view the preview.

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.6KB 0B

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

github-actions Bot added a commit that referenced this pull request Jun 26, 2026
@cixzhang
cixzhang enabled auto-merge (squash) June 26, 2026 23:31
@cixzhang
cixzhang merged commit da05223 into main Jun 27, 2026
15 checks passed
@github-actions
github-actions Bot deleted the navi/fix/skeleton-doc-duplicate-playground branch July 12, 2026 06:58
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.

This branch was successfully deployed

1 active deployment
Preview — b13f9e34 Deployed Jun 26, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants