Skip to content

test(cli): the swizzle proof renders Lab's MediaPlayer with its required label - #13001

Merged
josephfarina merged 1 commit into
mainfrom
josephfarina/swizzle-sample-media-player
Nov 19, 2026
Merged

josephfarina merged 1 commit into
mainfrom
josephfarina/swizzle-sample-media-player

Conversation

@josephfarina

Copy link
Copy Markdown
Contributor

User impact

None for users. Main's packages/cli/test/swizzle-proof/samples.test.mjs fails since Lab's MediaPlayer family merged: "swizzle target lab__MediaPlayer has no sample in samples.mjs, and its doc gives no default for its required prop(s) label". This change makes it pass again.

Problem and solution fit

The swizzle proof renders a copy of every swizzle target. A target whose doc gives no default for a required prop needs a sample. MediaPlayer requires label and needs a media element to play. The new lab__MediaPlayer sample renders the copy with label: 'Clip', a video MediaPlayerElement and a MediaPlayButton. It takes those parts from the copy's own module when it exports them, as the other media part samples do. It is a real sample, not a needsNoSample mark, because the component renders.

Smallest restoration

  • packages/cli/test/swizzle-proof/samples.mjs: one lab__MediaPlayer entry. No product code changes.

Scope

Components: none (test data only).

  • One defect is restored.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
  • Public text and artifacts contain no internal Meta context.

Testing

  • samples.test.mjs: fails on main with the message above and passes with this change; scope.test.mjs passes.

@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 19, 2026 9:07pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 19, 2026
@astracat-bot

astracat-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 19, 2026, 9:11 PM UTC

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 3c76e9b

josephfarina added a commit that referenced this pull request Nov 19, 2026
josephfarina added a commit that referenced this pull request Nov 19, 2026
josephfarina added a commit that referenced this pull request Nov 19, 2026
josephfarina added a commit that referenced this pull request Nov 19, 2026
josephfarina added a commit that referenced this pull request Nov 19, 2026
josephfarina added a commit that referenced this pull request Nov 19, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet.

The new lab__MediaPlayer sample gives the swizzle proof the player's required label. samples.test.mjs fails on the base with the message quoted in the description and passes on this head, and the proof renders the copy on the server. No changes are needed.

Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: the samples test fails on main with the quoted message — verified: running it on the base fails one test with exactly that message.
  • Claim: this change makes it pass — verified: all five tests pass on this head.
  • Claim: a target whose doc gives no default for a required prop needs a sample — verified: missingSample in proof.mjs (lines 891-900).
  • Claim: MediaPlayer requires label and hosts a media element — verified: MediaPlayer.tsx:78 and the doc's MediaPlayer entry (label required; children are one media part and control parts).
  • Claim: the sample renders the copy with label: 'Clip', a video MediaPlayerElement and a MediaPlayButton — verified: samples.mjs:632-641 and the proof's server render.
  • Claim: the parts come from the copy's own module when it exports them, as the other media part samples do — verified: mod.X ?? Pkg.X, as in mediaPart (samples.mjs:181-191); the copy's index exports both parts.
  • Claim: it is a real sample, not a needsNoSample mark, because the component renders — verified: the proof's eject, typecheck, bundle and render steps pass for this target; needsNoSample is unchanged.
  • Claim: one lab__MediaPlayer entry and no product code changes — verified: one file, 10 added lines.
  • Claim: no components, public API, visual representation, default or interaction model change — verified.
  • Claim: public text contains no internal context — verified.
  • Claim: scope.test.mjs passes — verified: 10 of 10 on this head.
  • File: packages/cli/test/swizzle-proof/samples.mjs — clear.

Automated review (maintainer link)

@josephfarina
josephfarina merged commit 45678b4 into main Nov 19, 2026
83 of 245 checks passed
josephfarina added a commit that referenced this pull request Nov 19, 2026
- #12941 fix(Table): the default cell renderer shows an Invalid Date as an empty cell
  Author: @josephfarina
- #12886 docs(core): the README setup loads the theme's fonts
  Author: @josephfarina
- #12887 fix(cli): doctor --built reads the setup stylesheet as wiring, not page styling
  Author: @josephfarina
- #12456 fix(cli): a doc may leave out a value the code deprecates everywhere
  Author: @josephfarina
- #12857 docs(cli): the styling and typography pages state their core rules
  Author: @josephfarina
- #12994 test(cli): the doctor golden leaves out a check only some computers report
  Author: @josephfarina
- #13001 test(cli): the swizzle proof renders Lab's MediaPlayer with its required label
  Author: @josephfarina
josephfarina added a commit that referenced this pull request Nov 19, 2026
- #12741 feat(cli): template icon table and the template-icons placeholder package
  Author: @josephfarina
- #12747 feat(cli): template copies write icon placeholders as the library icon that draws them
  Author: @josephfarina
- #12748 feat(cli): twenty-one refined icon meanings that fall back to the meaning templates used before
  Author: @josephfarina
- #12754 feat(cli): page templates ai-chat to kanban-board import icons by meaning
  Author: @josephfarina
- #12756 feat(cli): page templates library to work-item-detail import icons by meaning
  Author: @josephfarina
- #12759 feat(cli): block templates AlertDialog to MultiSelector import icons by meaning
  Author: @josephfarina
- #12762 feat(cli): block templates NavHeadingMenu to VStack import icons by meaning
  Author: @josephfarina
- #12767 feat(cli): bundled templates pick each icon by meaning
  Author: @josephfarina
- #13001 test(cli): the swizzle proof renders Lab's MediaPlayer with its required label
  Author: @josephfarina
josephfarina added a commit that referenced this pull request Nov 19, 2026
- #12953 fix(cli): a skill whose integration has a doc that did not load is unread, not left out
  Author: @josephfarina
- #12954 docs(cli): astryx docs --help names docs skills
  Author: @josephfarina
- #12955 test(cli): a skill on a placed guide reads that guide and init writes it
  Author: @josephfarina
- #12956 refactor(cli): one renderer for the SKILL.md files Astryx manages
  Author: @josephfarina
- #13001 test(cli): the swizzle proof renders Lab's MediaPlayer with its required label
  Author: @josephfarina
@github-actions
github-actions Bot deleted the josephfarina/swizzle-sample-media-player branch November 20, 2026 06:05

This branch was successfully deployed

1 active deployment
Preview — 3c76e9b3 Deployed Nov 19, 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.

1 participant