Repository navigation
spec(AST-057): the swipe codemod's paths match it in any lifecycle folder - #12447
josephfarina wants to merge 1 commit into
Conversation
…lder The record named the codemod's staged paths under transforms/next/, so a release that promotes it to its version folder had to keep duplicate copies in next/ for the record's path list to stay valid, which AST-017 FR52 rules out. The two patterns now match the codemod in any transforms folder: next/ today, the version folder after promotion.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Approved pending CI: CI has not finished on this head yet.
The two transforms/*/ patterns match the swipe codemod and its test in next/ today and in the version folder after promotion, as the knowledge-contracts path-applicability rules and spec:AST-017 FR52 and DEC-19 allow, and no requirement in the record changes. A simulated promotion keeps pnpm check:knowledge aligned with the new patterns, while the old ones fail with two "matches no repository file" errors. Merge still needs the repository's spec approval: an engineering owner comments /approve-spec <full head SHA>, and the author may do so as an engineering owner.
Claims and files checked
Review mode: full; reason: no-earlier-review
Claims:
- The record's two codemod paths become single-segment
transforms/*/patterns: verified (record lines 61-62). - They match the codemod in
next/now and in its version folder after promotion: verified (the repository's matcher on the head file list and on a simulated promotion). - A release no longer needs duplicate
next/copies for the record to stay valid: verified (the old patterns fail after a simulated promotion; the new ones pass). - The record's contract is unchanged: verified (only path-list lines change; no requirement, decision or table row).
- The release-compatibility record forbids keeping a duplicate transform to preserve the staged path, and the knowledge-contracts record says
*matches within one segment: verified (FR52 and DEC-19; the path-applicability section). pnpm check:knowledgeis aligned at this head: verified.- After a simulated promotion,
pnpm check:knowledgestays aligned andpnpm specs:foron the moved file still routes to the swipe-actions record: verified. - The change is the spec record only, with no components in scope: verified (one changed file).
- Writing rubric: no narration, and the other items do not apply because no prose changed: verified.
Files:
docs/specs/AST-057-row-actions/spec.md: clear.
|
/approve-spec 715e6c9 |
- #12694 fix(cli): the Order Detail template's discount uses a minus sign held to its amount Author: @josephfarina - #12114 fix(templates): reset, reply, send and go-into icons mirror in right-to-left pages Author: @josephfarina - #12143 refactor(templates): example blocks lay out with HStack and VStack instead of flex wrappers Author: @josephfarina - #12158 fix(core): ChatComposer keeps its send action inside the composer on a narrow screen Author: @josephfarina - #12242 fix(cli): the npm commands the CLI runs for itself use npm's own noproxy setting Author: @josephfarina - #12283 fix(core): dark secondary text meets 4.5:1 on the neutral fill over the page and cards Author: @josephfarina - #12290 fix(Markdown): keep bulleted and numbered lists inside their column Author: @josephfarina - #12372 [fix] Heading: a missing level renders an h2 and warns, instead of crashing Author: @josephfarina - #12447 spec(AST-057): the swipe codemod's paths match it in any lifecycle folder Author: @josephfarina - #12475 fix(templates): on a phone the settings search moves under the title Author: @josephfarina - #12530 fix(cli): the contact-form template fits a phone; its section fills the width up to 800px Author: @josephfarina
|
Landed in #12812. |
Exact decision needed
Whether
spec:AST-057's path list may name the swipe-action codemod in anytransforms/folder instead of onlytransforms/next/.Existing authority searched
spec:AST-057(itspath-applicability:v1list),spec:AST-017FR52 and DEC-19 (a promotion must not keep a duplicate transform to preserve the staged path), and the path-applicability rules inarchitecture:knowledge-contracts(*matches within one segment).Decision
The two codemod paths in AST-057's path list become
packages/cli/assets/codemods/transforms/*/migrate-item-swipe-actions-to-swipe.mjsandpackages/cli/assets/codemods/transforms/*/__tests__/migrate-item-swipe-actions-to-swipe.test.mjs. They match the codemod innext/today and in its version folder once a release promotes it, so a release no longer has to keep duplicatenext/copies for the record to stay valid. The record's contract is unchanged.Evidence
pnpm check:knowledge: aligned at this head.next/tov0.7.17/,next/copies gone):pnpm check:knowledgestays aligned, andpnpm specs:foron the moved file still routes tospec:AST-057.Scope
Components: none (path metadata of
spec:AST-057only).Writing rubric results