Skip to content

spec(Tooltip, HoverCard): the touchTrigger codemod is available before the 0.8.0 removal - #9417

Merged
cixzhang merged 1 commit into
mainfrom
spec/dep-0016-early-codemod
Nov 2, 2026
Merged

cixzhang merged 1 commit into
mainfrom
spec/dep-0016-early-codemod

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Exact decision needed

When can callers run the touchTrigger → triggerBehavior codemod that component:Tooltip DEP-0016 and CLN-0024 record?

Existing authority searched

component:Tooltip DEP-0016 and CLN-0024, and component:HoverCard's compatibility section that applies them. DEP-0016's codemod already ships with the deprecating release, but it rewrote only tap on icon and span triggers and removed auto; nothing said a caller could use it as an early, full migration before the 0.8.0 removal.

Decision

The owner, on 2026-11-01: "we can have codemods for both" and "for 0.8.0 minor we can clean up these deprecated props".

  • DEP-0016's codemod is usable from the deprecating release as an opt-in early migration: a caller who runs astryx upgrade explicitly moves every touchTrigger site to triggerBehavior before the removal. "auto" is removed (the default adaptive reproduces it), "none" becomes triggerBehavior="hover", and "tap" becomes triggerBehavior="toggle" for the recorded trigger kinds. Each rewrite keeps that release's behavior; every other tap site is reported for a manual choice.
  • A caller who does not run it keeps touchTrigger working until 0.8.0.
  • 0.8.0's astryx upgrade runs the same codemod again with CLN-0024's removal, applying CLN-0024's recorded kinds.
  • CLN-0024 stays scheduled for 0.8.0.

Rejected alternatives

None recorded.

Claim scope and non-goals

Only the timing and reach of the codemod in DEP-0016, CLN-0024, and HoverCard's migration decision. The deprecated surface, the replacement, the trigger-kind mappings, and FR5's walk are unchanged.

Evidence and implementation relationship

Specification only; the codemod is not built yet (Tooltip's Current-state impact already says so).

Writing rubric results

  • R1 narration: the added text first said the codemod is an early migration "now"; rewritten as "from the deprecating release". The existing "only tap is deprecated now" in DEP-0016's surface and CLN-0024's delta is outside this change and left as is.
  • R2 research in the record: none.
  • R3 evidence naming a change: none.
  • R4 rejected alternatives over one line or outside a decision: none added.
  • R5 pull request or issue references remaining: none.
  • R6 ruled open questions still listing options: none touched.

Scope

  • This PR contains specification records only.
  • It records observable behavior and preserves equivalent internal implementations.
  • Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract.
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It records one intentional durable decision, not a rescue for a separable tagalong.
  • The canonical knowledge owner, affected current claims, and overlapping open work are named; any ownership collision is resolved or called out for human decision.
  • Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them.
  • Public text and artifacts contain no internal Meta context.

Validation

  • pnpm check:knowledge: Knowledge templates and records are aligned.
  • Prettier
  • git diff --check

@vercel

vercel Bot commented Nov 2, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
astryx Building Building Preview Nov 2, 2026 1:05am UTC

Request Review

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

astracat-bot Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🔄 In progress (for maintainers only) Nov 2, 2026, 1:05 AM UTC

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 2, 2026
@cixzhang

cixzhang commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 0e00702

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 2, 2026
@cixzhang
cixzhang merged commit 0de0e75 into main Nov 2, 2026
51 of 52 checks passed
@github-actions
github-actions Bot deleted the spec/dep-0016-early-codemod branch November 2, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 0e00702e Deployed Nov 2, 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