Skip to content

test(Tokenizer): the row-action warning test asks for the sheet with presentation - #9847

Closed
imdreamrunner wants to merge 1 commit into
mainfrom
fix/tokenizer-row-action-test-stable-presentation
Closed

imdreamrunner wants to merge 1 commit into
mainfrom
fix/tokenizer-row-action-test-stable-presentation

Conversation

@imdreamrunner

@imdreamrunner imdreamrunner commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Maintainer impact

main fails typecheck, build and a test-ui leg for every pull request: packages/core/src/Tokenizer/TokenizerBottomSheet.test.tsx(1814,11): error TS2769: No overload matches this call.

A separate test-node failure on main (the resolution-compat.test.mjs snapshot for useLightbox) has a different cause, and this change leaves it as it is.

Intended invariant

main type-checks. Tokenizer's only presentation spelling is the stable presentation prop; experimental.presentation is removed.

Change

The row-action warning test (added with the render-time row-action check, #9808) passed experimental={{presentation: 'bottom-sheet'}}. The removal of Tokenizer's experimental spelling (#9836) was open at the same time and based before it, so each passed on its own and the combination fails. The test now passes presentation="bottom-sheet". One line, test only.

Evidence

  • Failure before the change: typecheck on main reports TS2769 at the line above, which also fails build, and the StrictMode row-action test fails in its test-ui leg.
  • Success after the change: no experimental={{presentation remains under packages/core/src or the Tokenizer and PowerSearch stories; typecheck, build and test-ui on this pull request.
  • Product/runtime behavior verified unchanged: test file only.

Scope

  • No intended public API, product behavior, visual direction, or policy change.
  • Product changes discovered during the work were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

CI typecheck, build and test-ui on this pull request. The test-node useLightbox snapshot failure is separate and not addressed here.

…presentation

The test added with the render-time row-action check passed
`experimental={{presentation: 'bottom-sheet'}}`, which the removal of
Tokenizer's experimental spelling took away while both changes were open,
so main fails typecheck (TS2769). It now passes `presentation="bottom-sheet"`,
the only spelling.
@vercel

vercel Bot commented Nov 4, 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 4, 2026 1:17am UTC

Request Review

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

astracat-bot Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 4, 2026, 1:49 AM UTC

@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.

Requesting changes to the description only; the code change is correct.

Moving the StrictMode row-action test to presentation="bottom-sheet" makes Core's typecheck and that test pass again.

Blocking

  • The description says main fails "the Node test shards" because of this line, but their only failure on main is the resolution-compat.test.mjs snapshot for useLightbox, which this change leaves failing, while the shard it does fix is a test-ui leg; please reword Maintainer impact and Testing to name typecheck, build and test-ui, and say the test-node snapshot failure is separate.

[Automated review]

@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.

No blocking findings: the one-line test change is correct and the description matches CI.

Passing presentation="bottom-sheet" lets typecheck and build pass again, and the StrictMode row-action test reaches the sheet once more: it fails on main and passes here. The separate test-node snapshot failure in resolution-compat.test.mjs is left alone, as the description says; it mismatches the usePressPin row as well as useLightbox, so its fix should cover both.

[Automated review]

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 7bbbaeb

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC Visual · A11y · RTL
Tokenizer · Storybook 70.3 kB (0) · 17.1 kB CSS (0) 2,114 (0) — · ✓ · ✓

Package size: no published package changed; no new dependencies.

API changes: none in this pull request

Committed API report behind this build: core 2 rows; run pnpm api:report.

Touched components checked; add ci:run-visual, ci:run-a11y or ci:run-rtl to run the full suites.

Current run: CI concluded failure; parts of this report may be missing.


Generated by PR Enrichment workflow | View full report

cixzhang added a commit that referenced this pull request Nov 4, 2026
…ved experimental prop

#9808 added the test with experimental.presentation; #9836 removed that
prop. Each was green alone; together main typecheck fails (TS2769).
Same change as #9847, folded in here so one pull request turns main green.

Co-authored-by: Xinzi Zhou <2252473+imdreamrunner@users.noreply.github.com>
cixzhang added a commit that referenced this pull request Nov 4, 2026
…tion, and the recorded module resolutions follow core (#9851)

* test(cli): the recorded module resolutions follow useLightbox's doc and drop the deleted usePressPin

#9752 gave useLightbox its own doc; #9756 deleted the internal
Layer/usePressPin.ts. Each was green alone because PR checks skip this
fixture test; main test-node fails on both lines.

* test(Tokenizer): the sheet-row test passes presentation, not the removed experimental prop

#9808 added the test with experimental.presentation; #9836 removed that
prop. Each was green alone; together main typecheck fails (TS2769).
Same change as #9847, folded in here so one pull request turns main green.

Co-authored-by: Xinzi Zhou <2252473+imdreamrunner@users.noreply.github.com>
@imdreamrunner

Copy link
Copy Markdown
Contributor Author

Closing: #9851 landed the same one-line test change together with the resolution fixture update, so main type-checks again.

@github-actions
github-actions Bot deleted the fix/tokenizer-row-action-test-stable-presentation branch November 4, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 7bbbaebb Deployed Nov 4, 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