Repository navigation
chore(core): the touch motion tables register FR4's context-menu springs as roles - #9432
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC |
|---|---|---|
| PowerSearch | 177.7 kB (+63 B) · 20.4 kB CSS (0) | — |
| TreeList | 45.0 kB (+48 B) · 5.0 kB CSS (0) | — |
| AppShell | 72.6 kB (+46 B) · 12.0 kB CSS (0) | — |
2 more components
| Component | Size | LoC |
|---|---|---|
| SideNav | 70.1 kB (+45 B) · 10.9 kB CSS (0) | — |
| Collapsible | 22.4 kB (+42 B) · 4.5 kB CSS (0) | — |
Package size: @astryxdesign/core 5.78 MB packed (+518 B); no new dependencies.
API changes: none in this pull request
Committed API report behind this build: core 4 rows; run pnpm api:report.
Not run on this PR: add ci:run-visual, ci:run-a11y or ci:run-rtl to run them.
Generated by PR Enrichment workflow | View full report
|
/approve-spec d3645a6 |
There was a problem hiding this comment.
Registering the three context-menu springs restores FR4's roles test, and the restoration itself looks right; two small fixes are needed before it can land.
CONTEXT_MENU_MORPH_SPRING's@source(packages/core/src/motion/uikit/springs.ts:358-359) should name the app and the method of its measurement, as spec:AST-094 FR2 requires and the neighbouring rows do.docs/specs/components/ContextMenu/ContextMenu.spec.mdstill says the three roles are not registered (lines 106, 248 and 268-269); please drop those clauses along with the AST-094 bullet.
[Automated review]
| * @source measured: UIContextMenuInteraction's menu entrance and preview | ||
| * shadow, iOS 26.2 simulator, Oct 23 2026 (spec:AST-094 FR4) |
There was a problem hiding this comment.
spec:AST-094 FR2 asks a simulator measurement to name the app, the iOS version, the method and the date. This note names the subject, iOS 26.2 and the date, but not the app or the method; the lift row above names both ("UIKit lab (injected host app) … the same hook (0.8, 0.32, tracking)"). Please add the app and method of the Oct 23 measurement that FR4's row cites.
…ngs as roles spec:AST-094 FR4 names three springs that ContextMenu owns: springs.contextMenuLift, springs.contextMenuDismiss and springs.contextMenuMorph. The springs table carried the first two but registered none of them as motion roles, and had no row for the third, so the roles test, which holds the registered roles to FR4's table, failed. The table gains CONTEXT_MENU_MORPH_SPRING (response 0.3 s, damping ratio 0.8, FR4's measured row, with its measurement's app and method) and registers all three as internal roles. The clauses that named them unregistered go from AST-094's current-state section and from ContextMenu's FR5, verification and gap entries. No component reads them yet.
d3645a6 to
4615811
Compare
|
Both fixed in 4615811:
|
|
/approve-spec 4615811 |
There was a problem hiding this comment.
Registering the three context-menu springs restores the FR4 roles test, and both earlier points are fixed: the morph spring's @source now names its app and method, and the ContextMenu record no longer calls the roles unregistered. This looks ready to land. As an optional follow-up, no test pins the three roles to their FR4 values yet, and packages/core/src/motion/MEASUREMENTS.md still lists only the lift and dismiss springs for the context menu.
[Automated review]
User impact
No user-facing change; the changeset is
[chore].mainfailspackages/core/src/motion/roles.test.ts, "has exactly the roles spec:AST-094 FR4 names", so every pull request'stestjob andmain's own release check are red. AST-094 FR4 names three context-menu springs,springs.contextMenuLift,springs.contextMenuDismissandsprings.contextMenuMorph, but the touch motion tables do not register them as motion roles.Problem and solution fit
springs.contextMenu*roles (FR4) are not registered motion roles."testjob no longer tells a pull request anything.CONTEXT_MENU_MORPH_SPRING(response 0.3 s, damping ratio 0.8), FR4's measured row, with its measurement's app and method in@source. The three context-menu rows are added tospringsand to the roles the table registers, so the registered roles are FR4's again. The clauses that call them unregistered go from both records, since they no longer hold.Expected behavior and authority
spec:AST-094FR4: the role table names the motion roles, and the threesprings.contextMenu*rows are among them, owned bycomponent:ContextMenu(DEC-5). The registry (motion/roles.ts) registers exactly FR4's rows.Smallest restoration
springs.tsadds the morph row, puts the three rows insprings, and registers them as roles.uikit/index.tsexports the new constant beside the other two.AST-094loses the current-state bullet that called them unregistered.component:ContextMenuloses the same clause from FR5's implementation gap, from the FR5 motion-roles verification row ("Evidence gap: the three roles are not registered") and from the FR5 gap entry. The table's separator row re-pads with the shorter cell.Evidence
main, "has exactly the roles spec:AST-094 FR4 names" fails: FR4 names 20 roles and the tables register 17, missing the three context-menu springs. It passes on the commit before the record added the rows and fails from that commit on.springRows.test.ts) still passes. The registered roles carry no spring outside FR4, and the keyboard, alert and sheet-detent rows stay out of the bundle.main's springs table, both "has exactly the roles spec:AST-094 FR4 names" and "registers exactly the roles spec:AST-094 FR4 names, internally" fail; with this change both pass.Status at this head: the gates have finished. At this head, Prettier, ESLint on the changed files, type check,
check:knowledge,check:changesets, changeset coverage and the motion, theme and ContextMenu suites (2,429) pass. Fulltest:ui(17,838) and lint passed on the first head, whose code differs from this one only by the new row's doc comment.Writing rubric results
spec:AST-094:component:ContextMenu:Scope
Testing