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

fix(docsite): remove duplicate playground key in Skeleton doc#3197
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
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