Repository navigation
spec(SideNav, AppShell): rail collapse by snap, clip and cross-fade (D38) - #8720
Conversation
…and cross-fades the content on one clock (FR6, FR17, DEC-2)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
/approve-spec a6e2086 |
|
AI review status for this pull request.
|
|
/approve-spec d69dae2 |
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewComponent Size
Sizes are gzip. Import counts the JavaScript the import loads eagerly; CSS counts the package stylesheet rules referenced by the modules it can load from its own package, lazily loaded ones included. Bundle Size SummaryGzip figures measure each package's entry file, not the code an import pulls in.
Accessibility AuditStatus: No accessibility violations detected. Visual Regression57 of 504 shot(s) changed. A change here is a question, not a failure: check whether the after is the
and 37 more. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
There was a problem hiding this comment.
Requesting changes: the snap, clip and cross-fade direction carries an exact-head spec-owner approval, but the records as written conflict with current specs they leave unamended. SideNav FR6 and AppShell FR17 move the main content on every collapse without the useAnimatedLayout handle that spec:AST-105 (the spec FR6 cites) is built on, and its FR2 says content after a change takes its place at once without one, so please amend AST-105 or name the area and handle FR6 uses. Please also give the content cross-fade a single owner (AppShell FR17, with SideNav's scope and AppShell's Owns and non-goal lines updated), state how the old wrap is rendered given architecture:component-style-authoring INV7, and record the not-yet-implemented motion in both records' compatibility lines; today the rail and the text change in one frame, so this adds motion rather than replacing a width animation.
[Automated review]
| | FR3 | In an expanded rail, in a flyout, and in the mobile navigation drawer, every SideNavItem row MUST span the full inline size of its list at any depth. A row at depth `n` MUST start its content `n` × `--spacing-6` beyond the row's own inline-start padding for its size, inside the row; the nested group MUST add no inset. A flyout's top level is depth 0. | `component:SideNav/DEC-1` | Settled intent; implementation may be staged | | ||
| | FR4 | The indent area MUST be part of the row's target: a click there, including a modified or middle click on a link row, does what the same click on the row's primary element does. When the row also carries an independent expand toggle or `actions`, the indent belongs to the primary link or button, and the toggle and actions keep their own activation at the row's trailing edge. | `component:SideNav/DEC-1`; `family:navigation-destinations` | Settled intent; implementation may be staged | | ||
| | FR5 | An expanded nested group MUST NOT clip its rows once it has finished opening, so a nested row's focus ring paints in full. The group MAY clip while collapsed and while it opens or closes. | `component:SideNav/DEC-1` | Settled intent; implementation may be staged | | ||
| | FR6 | Collapsing or expanding the rail plays one motion on one clock: layout snaps to the final rail width at once, with no width animation; the rail reveals or covers its labels by a clip and ends in the real collapsed state, icons only; and the main content's old wrap slides and fades out while its new wrap slides and fades in (`spec:AST-105` FR4, FR8). Under reduced motion it follows `design:reduced-motion` DR2 under a coarse primary pointer and DR3 otherwise. | `component:SideNav/DEC-2`; `spec:AST-105` FR4, FR8 | Not implemented | |
There was a problem hiding this comment.
This clause moves the main content on every collapse with no useAnimatedLayout handle, but spec:AST-105 FR2, part of the spec this row cites for the motion, says that without a handle content after a change takes its place at once, and FR1/FR6 make that motion a caller's opt-in. Please either amend AST-105 to admit an always-on rail collapse or name the area and handle this uses. Showing the old and new wrap together also needs a second rendering that architecture:component-style-authoring INV7 does not list; please say how the old wrap is rendered and that it stays out of the accessibility tree.
| | FR14 | Main content stays mounted across the breakpoint (`family:layout-regions` FR9); in addition, input values and focus inside `children` survive in both directions. | Current source and tests | | ||
| | FR15 | `className`, `style`, and `xstyle` merge onto the root after component styles. | Current source | | ||
| | FR16 | With `elevated`, a present `topNav`, and an inline side nav, the content area is a raised surface whose block-start, inline-start corner uses the page radius; otherwise the content wrapper creates no layout box. | Current source and stories | | ||
| | FR17 | While the side nav collapses or expands, the content area's old and new wrap move on the side nav's one clock, as `component:SideNav` FR6 states; the content area never animates its width. | `component:SideNav` FR6 | |
There was a problem hiding this comment.
The content area is AppShell's region, so this is the natural owner of the content wraps; consider stating them here as AppShell's own requirement and adding FR17 to the Owns list. FR17 is not implemented yet (on the current code the content re-wraps in one frame), so the compatibility lines that still say this record describes shipped behavior need a Current-state impact entry.
| - How SideNav renders in its inline, top-bar, drawer, and drawer-content modes, | ||
| and side nav collapse — owned by SideNav and uncontracted here | ||
| (`component:SideNav` covers only its row geometry). AppShell only selects the | ||
| (`component:SideNav` covers its row geometry and its collapse motion, |
There was a problem hiding this comment.
This non-goal still calls side nav collapse uncontracted here, while FR17 now contracts what the content area does during it; please reword it so the two agree.
… its own handle; the old wrap is INV7's transient copy; both records note the motion is not implemented
|
/approve-spec af17d8d |
There was a problem hiding this comment.
Requesting changes: the snap, clip and cross-fade direction carries an exact-head spec-owner approval, but the records leave three gaps to close before they can govern the implementation.
- AppShell FR17's old wrap is a copy that no current record produces:
spec:AST-105FR8 swaps two rendered elements andarchitecture:react-component-runtimeINV12 still says each moving element is one the page already renders, so please amend FR8 and INV12, or name another mechanism, for the transient copy INV7 now allows. - SideNav's scope paragraph, Owns list and Contract-at-a-glance rows still describe only row geometry while FR6 and AppShell's non-goal give SideNav the rail's collapse motion; please extend them, and update AppShell's glance rows, including its count of current-state gaps, for FR17.
- Both verification rows should test the reduced-motion forms FR6 and FR17 require, an opacity-only cross-fade of 200 ms or less on a coarse pointer and an immediate change otherwise, not only the absence of travel.
[Automated review]
| | FR14 | Main content stays mounted across the breakpoint (`family:layout-regions` FR9); in addition, input values and focus inside `children` survive in both directions. | Current source and tests | | ||
| | FR15 | `className`, `style`, and `xstyle` merge onto the root after component styles. | Current source | | ||
| | FR16 | With `elevated`, a present `topNav`, and an inline side nav, the content area is a raised surface whose block-start, inline-start corner uses the page radius; otherwise the content wrapper creates no layout box. | Current source and stories | | ||
| | FR17 | While the side nav collapses or expands, the content area holds its own animated layout handle (`spec:AST-105` FR1) and swaps its old wrap for its new one in place (`spec:AST-105` FR8): the old wrap slides and fades out while the new wrap slides and fades in, on the side nav's one clock (`component:SideNav` FR6). The old wrap is one transient copy, inert and hidden from assistive technology, removed when the swap ends (`architecture:component-style-authoring` INV7). The content area never animates its width. Under reduced motion the swap follows `design:reduced-motion` DR2 under a coarse primary pointer and DR3 otherwise. | `spec:AST-105` FR1, FR8; `component:SideNav` FR6 | |
There was a problem hiding this comment.
The old wrap that slides and fades out here is a copy no current record produces: spec:AST-105 FR8 swaps two elements the area already renders, and architecture:react-component-runtime INV12, which AST-105 gives its motion to, says each moving element is one the page already renders. INV7 now allows the copy only if one Core mechanism for its kind makes it; please amend FR8 and INV12 so the swap makes and removes this inert copy, or name the mechanism here.
| | FR3 | In an expanded rail, in a flyout, and in the mobile navigation drawer, every SideNavItem row MUST span the full inline size of its list at any depth. A row at depth `n` MUST start its content `n` × `--spacing-6` beyond the row's own inline-start padding for its size, inside the row; the nested group MUST add no inset. A flyout's top level is depth 0. | `component:SideNav/DEC-1` | Settled intent; implementation may be staged | | ||
| | FR4 | The indent area MUST be part of the row's target: a click there, including a modified or middle click on a link row, does what the same click on the row's primary element does. When the row also carries an independent expand toggle or `actions`, the indent belongs to the primary link or button, and the toggle and actions keep their own activation at the row's trailing edge. | `component:SideNav/DEC-1`; `family:navigation-destinations` | Settled intent; implementation may be staged | | ||
| | FR5 | An expanded nested group MUST NOT clip its rows once it has finished opening, so a nested row's focus ring paints in full. The group MAY clip while collapsed and while it opens or closes. | `component:SideNav/DEC-1` | Settled intent; implementation may be staged | | ||
| | FR6 | Collapsing or expanding the rail plays one motion on one clock: layout snaps to the final rail width at once, with no width animation, and the rail reveals or covers its labels by a clip and ends in the real collapsed state, icons only. The main content moves on the same clock, as `component:AppShell` FR17 states. Under reduced motion the rail follows `design:reduced-motion` DR2 under a coarse primary pointer and DR3 otherwise. | `component:SideNav/DEC-2`; `component:AppShell` FR17 | Not implemented | |
There was a problem hiding this comment.
FR6 puts the rail's collapse motion in this record, but the scope paragraph (line 37) still limits it to row geometry, and the Owns list and the glance rows (Behavior, End-user impact, Review checks, "Governing rules: DD1 and FR3–FR5") leave FR6 out, while AppShell's non-goal says SideNav covers its rail motion. Please extend them to FR6.
| | Behavior | One page frame: skip link, then a header region, an inline side region, and one `main` region. Below the mobile breakpoint the side nav leaves the page and AppShell composes a mobile drawer from the nav slots, unless `mobileNav` disables or replaces it. | | ||
| | End-user impact | Keyboard users get a skip link to the main region; screen-reader users get one banner and one main landmark; phone-width users reach the side nav through a toggle and drawer while page content, its input values, and focus survive the layout switch. | | ||
| | Builder impact | None. Callers fill slots and choose height, variant, content padding, and mobile behavior. | | ||
| | Compatibility/readiness | Records shipped behavior except FR17's content swap; no prop, default, or export changes. Five current-state gaps, listed under Current-state impact: page-level stacking values, a banner pinned against its docs, an unmeasured late header, a raw `content` drawer the toggle cannot reach, and a fill-height main region that is not a tab stop. | |
There was a problem hiding this comment.
This cell still counts "Five current-state gaps" while Current-state impact now lists six, and the End-user impact, Review checks and Governing rules rows don't mention FR17; please update the glance for the content swap.
| | FR9–FR12 | `AppShell.test.tsx` mobile suites; `MobileNavCloseEdgeCases.test.tsx` AppShell drawer suites | Sidenav only; both navs; heading-only TopNav; custom node | A missing toggle, duplicated items, a stale drawer, or an early hide fails. | `audit:AppShell/behavior` | | ||
| | FR13, AR3 | `AppShell.test.tsx` keyboard drawer and `useAppShellMobile` suites | Outside a shell; inside, closed and open | A wrong id link or stale state fails. | `audit:AppShell/accessibility` | | ||
| | FR14, AR4 | `AppShell.test.tsx` breakpoint continuity test | Desktop to mobile and back with a focused input | Remounting content loses the value or focus. | `audit:AppShell/behavior` | | ||
| | FR17 | Real-browser frame evidence of the content area during a side nav collapse (pending) | collapse and expand with an inline side nav | a content area that animates its width or moves on its own clock, an old wrap reachable by assistive technology or left after the swap, or travel under reduced motion fails | `audit:AppShell/behavior` | |
There was a problem hiding this comment.
FR17 requires DR2 (opacity only, 200 ms or less) on a coarse primary pointer and DR3 (immediate) otherwise, but this row lists no reduced-motion or pointer state and fails only on travel, so a 400 ms cross-fade or a fade under a mouse would pass. Please add both pointer states under Reduce Motion and the DR2 and DR3 failure signals; SideNav's FR6 row needs the same signals.
…nt copy; SideNav scope and glance cover FR6; reduced-motion forms tested
|
/approve-spec b9eb78e |
…old expanded state as the swap's transient copy
|
/approve-spec 82a8c6d |
There was a problem hiding this comment.
Requesting changes: the snap, clip and swap direction carries an exact-head spec-owner approval, and the earlier gaps (the copy's mechanism, SideNav's scope, the reduced-motion checks) are fixed, but three record edits remain before these records can govern the implementation.
- SideNav FR6 makes the rail's collapse copy through
spec:AST-105FR8's swap, yet AST-105 FR2 names only AppShell's content area as holding its own handle, and AppShell's area does not reach the rail; please name the rail's own handle in FR2 and FR6, or another mechanism. - AppShell FR17 copies its old wrap on a collapse and an expand, but INV7, FR2 and FR8 say "during a side nav collapse"; please make them say "collapse or expand".
- AppShell's End-user impact row says the content cross-fades "instead of relaying out each frame" and its compatibility line keeps "Released default preserved:
yes", while today the content re-wraps in one frame and FR17 changes that default; please describe the change as added motion and answernofor FR17.
[Automated review]
| | FR3 | In an expanded rail, in a flyout, and in the mobile navigation drawer, every SideNavItem row MUST span the full inline size of its list at any depth. A row at depth `n` MUST start its content `n` × `--spacing-6` beyond the row's own inline-start padding for its size, inside the row; the nested group MUST add no inset. A flyout's top level is depth 0. | `component:SideNav/DEC-1` | Settled intent; implementation may be staged | | ||
| | FR4 | The indent area MUST be part of the row's target: a click there, including a modified or middle click on a link row, does what the same click on the row's primary element does. When the row also carries an independent expand toggle or `actions`, the indent belongs to the primary link or button, and the toggle and actions keep their own activation at the row's trailing edge. | `component:SideNav/DEC-1`; `family:navigation-destinations` | Settled intent; implementation may be staged | | ||
| | FR5 | An expanded nested group MUST NOT clip its rows once it has finished opening, so a nested row's focus ring paints in full. The group MAY clip while collapsed and while it opens or closes. | `component:SideNav/DEC-1` | Settled intent; implementation may be staged | | ||
| | FR6 | Collapsing or expanding the rail plays one motion on one clock: layout snaps to the final rail width at once, with no width animation, and the rail reveals or covers its labels by a clip and ends in the real collapsed state, icons only. On a collapse the rail's old expanded state is one transient copy, inert and hidden from assistive technology, made through `spec:AST-105` FR8's swap and removed when the clip closes; an expand makes no copy. The main content moves on the same clock, as `component:AppShell` FR17 states. Under reduced motion the rail follows `design:reduced-motion` DR2 under a coarse primary pointer and DR3 otherwise. | `component:SideNav/DEC-2`; `component:AppShell` FR17; `spec:AST-105` FR8 | Not implemented | |
There was a problem hiding this comment.
This copy is made "through spec:AST-105 FR8's swap", but a swap is reported through a handle (spec:AST-105 FR1, architecture:react-component-runtime INV12), and the amended AST-105 FR2 names only AppShell's content area as holding its own. AppShell's handle cannot carry the rail, because its area is the content area and AST-105 leaves out content outside the area, and a SideNav outside AppShell has none. Could FR2 and this row name the rail's own handle, for example "and the SideNav rail holds its own for a collapse (component:SideNav FR6)"?
| handoff between sheets, such as the cross-fade | ||
| `design:reduced-motion` DR2 requires, or one moving preview while a | ||
| `design:reduced-motion` DR2 requires, AppShell's old content wrap during a | ||
| side nav collapse (`component:AppShell` FR17), the SideNav rail's old expanded state |
There was a problem hiding this comment.
AppShell FR17 copies its old wrap while the side nav collapses or expands, but this entry (like AST-105 FR2 and FR8) says "during a side nav collapse", right beside the SideNav entry where "during a collapse" is collapse-only because FR6 makes no copy on an expand. Since this list is exhaustive, please say "during a side nav collapse or expand" here and in FR2 and FR8. The new entries also follow "such as the cross-fade … DR2 requires", so they read as examples of a handoff between sheets; placing them before that clause would avoid it.
| | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| | Public contract | `AppShell` with `topNav`, `sideNav`, `banner`, `children`, `mobileNav` (`false`, a config object, or a node), `height` (`fill`, `auto`), `variant` (`wash`, `surface`, `section`, `elevated`), and `contentPadding`; targets `app-shell`, `app-shell-header`, `app-shell-sidenav`. | | ||
| | Behavior | One page frame: skip link, then a header region, an inline side region, and one `main` region. Below the mobile breakpoint the side nav leaves the page and AppShell composes a mobile drawer from the nav slots, unless `mobileNav` disables or replaces it. | | ||
| | End-user impact | Keyboard users get a skip link to the main region; screen-reader users get one banner and one main landmark; phone-width users reach the side nav through a toggle and drawer while page content, its input values, and focus survive the layout switch. When the side nav collapses, the content cross-fades to its new wrap instead of relaying out each frame (FR17). | |
There was a problem hiding this comment.
Today the content re-wraps in one frame (this record's Current-state impact says so, and SideNav.tsx sets the rail widths with no transition), so FR17 adds motion rather than removing a per-frame relayout. Suggest: "When the side nav collapses or expands, the content's old and new wrap swap on the rail's clock instead of re-wrapping in one frame (FR17)."
| @@ -53,8 +53,8 @@ at a theme-resolved width point. Consumer usage lives in `AppShell.doc.mjs`. | |||
| ## Compatibility and migration | |||
|
|
|||
| - Released default preserved: `yes` | |||
There was a problem hiding this comment.
FR17 changes what every AppShell with an inline collapsible SideNav does, with no prop to keep today's instant re-wrap, so this reads as no for FR17 once it ships, the way SideNav's record answers for its own default change.
| | Builder impact | None. Callers fill slots and choose height, variant, content padding, and mobile behavior. | | ||
| | Compatibility/readiness | Records shipped behavior except FR17's content swap; no prop, default, or export changes. Six current-state gaps, listed under Current-state impact: the content swap (FR17), page-level stacking values, a banner pinned against its docs, an unmeasured late header, a raw `content` drawer the toggle cannot reach, and a fill-height main region that is not a tab stop. | | ||
| | Review checks | Reject a second `main` or banner landmark from AppShell, a skip link that is not the first focusable element or does not move focus to `main`, a breakpoint that treats equality as mobile, or remounting page content when the breakpoint changes. Also reject a content area that animates its width during a side nav collapse (FR17). | | ||
| | Governing rules | `spec:AST-012` FR8 (width points), `family:layout-regions` FR9, `architecture:theme-application` INV10, `spec:AST-027` FR1–FR5 (local stacking), `architecture:component-theming-surface`.; `component:SideNav` FR6 and `spec:AST-105` FR8 (the content swap). | |
There was a problem hiding this comment.
Nit: stray .; after architecture:component-theming-surface.
|
/approve-spec 9dcf73f |
There was a problem hiding this comment.
Recommending approval: the snap, clip and swap direction for the side nav collapse carries an exact-head spec-owner approval, and the remaining record conflicts are fixed, with architecture:react-component-runtime INV12's verification row now exempting the swap's copy and spec:AST-105's Intent and DEC-1 carrying FR2's component-held handles. Nothing blocks these records from governing the implementation. Two optional touch-ups would let the pending FR17 and FR6 checks prove more: list fill and a scrolled auto page among FR17's states, and say what a second collapse or expand does while the half-second swap still runs.
[Automated review]
| | FR9–FR12 | `AppShell.test.tsx` mobile suites; `MobileNavCloseEdgeCases.test.tsx` AppShell drawer suites | Sidenav only; both navs; heading-only TopNav; custom node | A missing toggle, duplicated items, a stale drawer, or an early hide fails. | `audit:AppShell/behavior` | | ||
| | FR13, AR3 | `AppShell.test.tsx` keyboard drawer and `useAppShellMobile` suites | Outside a shell; inside, closed and open | A wrong id link or stale state fails. | `audit:AppShell/accessibility` | | ||
| | FR14, AR4 | `AppShell.test.tsx` breakpoint continuity test | Desktop to mobile and back with a focused input | Remounting content loses the value or focus. | `audit:AppShell/behavior` | | ||
| | FR17 | Real-browser frame evidence of the content area during a side nav collapse (pending) | collapse and expand with an inline side nav; Reduce Motion under a coarse and under a fine primary pointer | a content area that animates its width or moves on its own clock, an old wrap reachable by assistive technology or left after the swap, travel under Reduce Motion, anything but an opacity-only cross-fade of 200 ms or less under Reduce Motion on a coarse pointer (DR2), or any animated property under Reduce Motion on a fine pointer (DR3) fails | `audit:AppShell/behavior` | |
There was a problem hiding this comment.
Optional: this row names no height mode, though FR6 scrolls the main region on its own only in fill and lets the page scroll in auto. Listing fill and a scrolled auto page, and a second collapse or expand while the swap still runs, would make the row prove FR17 where it can fail; SideNav's FR6 row could take the same re-toggle state.
…-motion # Conflicts: # docs/architecture/react-component-runtime.md
|
/approve-spec e9ede11 |
There was a problem hiding this comment.
Requesting changes for one wording fix: the snap, clip and swap direction for the side nav collapse carries an exact-head spec-owner approval, and the amended records agree with each other and with the current reduced-motion and animated-layout specs. component:SideNav FR6, its glance Behavior row and its FR6 verification row say the rail "ends in the real collapsed state, icons only" after a collapse or an expand, so a test written from that row fails every correct expand; please scope the end state by direction (a collapse ends icons-only, an expand ends with its labels). Optional while you are there: name FR17's compatibility class beside AppShell's no released default, say "collapse or expand" in AppShell's Review checks row and non-goal, and list a theme set to reducedMotion: 'always' in the FR6 and FR17 verification rows.
[Automated review]
| | FR3 | In an expanded rail, in a flyout, and in the mobile navigation drawer, every SideNavItem row MUST span the full inline size of its list at any depth. A row at depth `n` MUST start its content `n` × `--spacing-6` beyond the row's own inline-start padding for its size, inside the row; the nested group MUST add no inset. A flyout's top level is depth 0. | `component:SideNav/DEC-1` | Settled intent; implementation may be staged | | ||
| | FR4 | The indent area MUST be part of the row's target: a click there, including a modified or middle click on a link row, does what the same click on the row's primary element does. When the row also carries an independent expand toggle or `actions`, the indent belongs to the primary link or button, and the toggle and actions keep their own activation at the row's trailing edge. | `component:SideNav/DEC-1`; `family:navigation-destinations` | Settled intent; implementation may be staged | | ||
| | FR5 | An expanded nested group MUST NOT clip its rows once it has finished opening, so a nested row's focus ring paints in full. The group MAY clip while collapsed and while it opens or closes. | `component:SideNav/DEC-1` | Settled intent; implementation may be staged | | ||
| | FR6 | Collapsing or expanding the rail plays one motion on one clock, `spec:AST-105` FR4's one shared motion (`springs.settle`): layout snaps to the final rail width at once, with no width animation, and the rail reveals or covers its labels by a clip and ends in the real collapsed state, icons only. On a collapse the rail's old expanded state is one transient copy, inert and hidden from assistive technology, made through `spec:AST-105` FR8's swap on the rail's own animated layout handle (`spec:AST-105` FR2) and removed when the clip closes; an expand makes no copy. The main content moves on the same clock, as `component:AppShell` FR17 states. Under reduced motion the rail follows `design:reduced-motion` DR2 under a coarse primary pointer and DR3 otherwise. | `component:SideNav/DEC-2`; `component:AppShell` FR17; `spec:AST-105` FR8 | Not implemented | |
There was a problem hiding this comment.
This sentence covers "Collapsing or expanding the rail" but ends with "ends in the real collapsed state, icons only", so read as written an expand also ends icons-only, and the glance Behavior row (line 50) says the same. Could the end state be scoped by direction, for example: "a collapse ends in the real collapsed state, icons only; an expand ends in the real expanded state, with its labels"?
| | FR5, AR2 | `SideNav.test.tsx` group clipping case and real-browser keyboard focus on nested rows | Only-child and last nested rows; after opening; collapsed | A focus ring cut at any edge of an expanded group, or an expanded group that still clips, fails. | `audit:SideNav/a11y` | | ||
| | FR2, FR3 | Real-browser collapsed rail and flyout | Collapsed rail with nested children | Any change to the collapsed rail, or an indent on the flyout's top level, fails. | `audit:SideNav/layout` | | ||
| | AR1 | Accessibility-tree comparison of nested rows | Plain, split, and actions rows | Any change in role, name, state, or order fails. | `audit:SideNav/a11y` | | ||
| | FR6 | Real-browser frame evidence of a collapse and an expand at desktop width (pending) | collapse and expand; a mouse and a finger; Reduce Motion under a coarse and under a fine primary pointer | an animated width, a rail that does not end icons-only, a collapse copy reachable by assistive technology or left after the clip closes, a copy on an expand, travel under Reduce Motion, anything but an opacity-only change of 200 ms or less under Reduce Motion on a coarse pointer (DR2), or any animated property under Reduce Motion on a fine pointer (DR3) fails | `audit:SideNav/behavior` | |
There was a problem hiding this comment.
This row lists "collapse and expand" as its states and fails "a rail that does not end icons-only", so a test written from it fails every correct expand. Suggest "a collapse that does not end icons-only, or an expand that does not end with its labels".
…for always, fill/auto, re-toggle
|
/approve-spec 45152dd |
There was a problem hiding this comment.
I recommend approval. The snap, clip and cross-fade direction for collapsing the side nav has spec-owner approval for this exact head, the amended records agree with each other and with the current reduced-motion and animated-layout specs, and FR6 now gives the end state for each direction. Nothing else is required here. Optionally, the FR6 and FR17 verification rows could also fail a copy that takes focus or a click (both FRs require the copy to be inert) and list a right-to-left state, since the clip and the slide run along the inline axis.
[Automated review]
| | FR5, AR2 | `SideNav.test.tsx` group clipping case and real-browser keyboard focus on nested rows | Only-child and last nested rows; after opening; collapsed | A focus ring cut at any edge of an expanded group, or an expanded group that still clips, fails. | `audit:SideNav/a11y` | | ||
| | FR2, FR3 | Real-browser collapsed rail and flyout | Collapsed rail with nested children | Any change to the collapsed rail, or an indent on the flyout's top level, fails. | `audit:SideNav/layout` | | ||
| | AR1 | Accessibility-tree comparison of nested rows | Plain, split, and actions rows | Any change in role, name, state, or order fails. | `audit:SideNav/a11y` | | ||
| | FR6 | Real-browser frame evidence of a collapse and an expand at desktop width (pending) | collapse and expand; a mouse and a finger; Reduce Motion under a coarse and under a fine primary pointer; a theme with `reducedMotion: 'always'`; a second toggle while the motion runs | an animated width, a collapse that does not end icons-only, an expand that does not end with its labels, a collapse copy reachable by assistive technology or left after the clip closes, a copy on an expand, travel under Reduce Motion, anything but an opacity-only change of 200 ms or less under Reduce Motion on a coarse pointer (DR2), or any animated property under Reduce Motion on a fine pointer (DR3) fails | `audit:SideNav/behavior` | |
There was a problem hiding this comment.
Optional: FR6 requires the collapse copy to be inert, but this row checks it only for assistive-technology reach and removal, so a copy that takes focus or a click would pass. Failing that, and listing a right-to-left state (the clip runs along the inline axis), would let the pending check prove all of FR6.
| | FR9–FR12 | `AppShell.test.tsx` mobile suites; `MobileNavCloseEdgeCases.test.tsx` AppShell drawer suites | Sidenav only; both navs; heading-only TopNav; custom node | A missing toggle, duplicated items, a stale drawer, or an early hide fails. | `audit:AppShell/behavior` | | ||
| | FR13, AR3 | `AppShell.test.tsx` keyboard drawer and `useAppShellMobile` suites | Outside a shell; inside, closed and open | A wrong id link or stale state fails. | `audit:AppShell/accessibility` | | ||
| | FR14, AR4 | `AppShell.test.tsx` breakpoint continuity test | Desktop to mobile and back with a focused input | Remounting content loses the value or focus. | `audit:AppShell/behavior` | | ||
| | FR17 | Real-browser frame evidence of the content area during a side nav collapse (pending) | collapse and expand with an inline side nav; Reduce Motion under a coarse and under a fine primary pointer; `fill` and a scrolled `auto` page; a theme with `reducedMotion: 'always'`; a second toggle while the swap runs | a content area that animates its width or moves on its own clock, an old wrap reachable by assistive technology or left after the swap, travel under Reduce Motion, anything but an opacity-only cross-fade of 200 ms or less under Reduce Motion on a coarse pointer (DR2), or any animated property under Reduce Motion on a fine pointer (DR3) fails | `audit:AppShell/behavior` | |
There was a problem hiding this comment.
Optional: FR17 requires the old wrap to be inert, but this row checks it only for assistive-technology reach and removal, so a copy that takes Tab focus or a click would pass. Consider failing that too, and listing a right-to-left state for the slide.
…swap copy on collapse and expand
|
/approve-spec cac37d3 |
…d elements; AppShell covers an uncopied expand's gap
|
/approve-spec 81143b8 |
…andle is unchanged
|
/approve-spec 50bdb23 |
There was a problem hiding this comment.
Requesting changes: the snap, clip and swap direction for the side nav collapse has exact-head spec-owner approval, and the records agree with each other and with the reduced-motion and animated-layout specs, but three new clauses write the internal mechanism into product specs, which architecture:knowledge-contracts INV18 keeps in architecture records. Please state FR6 (SideNav.spec.md), FR17 (AppShell.spec.md) and the new spec:AST-105 FR8 sentence by what a person sees (one clock, an inert copy hidden from assistive technology and removed when the motion ends, no visible gap, no width animation), and move the components' own handles, "made through FR8's swap", and the caller-supplied frames into architecture:react-component-runtime INV12. Optionally, also say when FR17's old wrap is not copied, and add that state to the FR17 verification row with a visible gap as its failure.
[Automated review]
| | FR3 | In an expanded rail, in a flyout, and in the mobile navigation drawer, every SideNavItem row MUST span the full inline size of its list at any depth. A row at depth `n` MUST start its content `n` × `--spacing-6` beyond the row's own inline-start padding for its size, inside the row; the nested group MUST add no inset. A flyout's top level is depth 0. | `component:SideNav/DEC-1` | Settled intent; implementation may be staged | | ||
| | FR4 | The indent area MUST be part of the row's target: a click there, including a modified or middle click on a link row, does what the same click on the row's primary element does. When the row also carries an independent expand toggle or `actions`, the indent belongs to the primary link or button, and the toggle and actions keep their own activation at the row's trailing edge. | `component:SideNav/DEC-1`; `family:navigation-destinations` | Settled intent; implementation may be staged | | ||
| | FR5 | An expanded nested group MUST NOT clip its rows once it has finished opening, so a nested row's focus ring paints in full. The group MAY clip while collapsed and while it opens or closes. | `component:SideNav/DEC-1` | Settled intent; implementation may be staged | | ||
| | FR6 | Collapsing or expanding the rail plays one motion on one clock, `spec:AST-105` FR4's one shared motion (`springs.settle`): layout snaps to the final rail width at once, with no width animation, and the rail reveals or covers its labels by a clip: a collapse ends in the real collapsed state, icons only, and an expand ends in the real expanded state, with its labels. On a collapse or an expand the rail's old state is one transient copy, inert and hidden from assistive technology, made through `spec:AST-105` FR8's swap on the rail's own animated layout handle (`spec:AST-105` FR2) and removed when the motion ends. The main content moves on the same clock, as `component:AppShell` FR17 states. Under reduced motion the rail follows `design:reduced-motion` DR2 under a coarse primary pointer and DR3 otherwise. | `component:SideNav/DEC-2`; `component:AppShell` FR17; `spec:AST-105` FR8 | Not implemented | |
There was a problem hiding this comment.
This clause fixes how the copy is built ("made through spec:AST-105 FR8's swap on the rail's own animated layout handle"). architecture:knowledge-contracts INV18 keeps internal mechanisms out of product specs: "Internal ownership, seams, and mechanisms belong in an architecture record." Could FR6 state only what a person sees (the old state as one inert copy, hidden from assistive technology and removed when the motion ends) and leave the handle and the swap to architecture:react-component-runtime INV12?
| | FR14 | Main content stays mounted across the breakpoint (`family:layout-regions` FR9); in addition, input values and focus inside `children` survive in both directions. | Current source and tests | | ||
| | FR15 | `className`, `style`, and `xstyle` merge onto the root after component styles. | Current source | | ||
| | FR16 | With `elevated`, a present `topNav`, and an inline side nav, the content area is a raised surface whose block-start, inline-start corner uses the page radius; otherwise the content wrapper creates no layout box. | Current source and stories | | ||
| | FR17 | While the side nav collapses or expands, the content area holds its own animated layout handle (`spec:AST-105` FR1) and swaps its old wrap for its new one in place (`spec:AST-105` FR8): the old wrap slides and fades out while the new wrap slides and fades in, on the side nav's one clock, `spec:AST-105` FR4's one shared motion (`springs.settle`; `component:SideNav` FR6). The old wrap is one transient copy, inert and hidden from assistive technology, removed when the swap ends (`architecture:component-style-authoring` INV7). When the old wrap is not copied, such as on a very large page, the content surface covers an expand's gap with frames played on the same motion, with no copy (`spec:AST-105` FR8). The content area never animates its width. Under reduced motion the swap follows `design:reduced-motion` DR2 under a coarse primary pointer and DR3 otherwise. | `spec:AST-105` FR1, FR8; `component:SideNav` FR6 | |
There was a problem hiding this comment.
"holds its own animated layout handle" and "frames played on the same motion, with no copy (spec:AST-105 FR8)" prescribe the module and an internal capability. INV18, and its DEC-7, ask for a mechanism like this to be proven public or moved to the architecture record. The observable parts (one clock with the rail, the inert copy, no visible gap on an uncopied expand, no width animation) can stay here, with the handle and the frames in architecture:react-component-runtime INV12. Separately, no record says when the old wrap is not copied; naming that condition would make the branch testable.
| (`component:SideNav` FR6). Beside the swap, as an internal capability for Core adopters, the module may | ||
| play caller-supplied frames on elements the page already renders, on FR4's one motion, with no copy, and releases | ||
| them when the motion ends; AppShell's content surface uses this to cover an | ||
| expand's gap when its old wrap is not copied (`component:AppShell` FR17). | ||
| Both are internal; `useAnimatedLayout`'s public contract is unchanged. |
There was a problem hiding this comment.
This sentence puts an internal module capability ("as an internal capability for Core adopters, the module may play caller-supplied frames ... Both are internal") into a system spec. This record's Non-goals leave how the glide is produced to architecture:react-component-runtime INV12, and architecture:knowledge-contracts INV18 places internal mechanisms in architecture records. Moving it into INV12, beside the swap's copy that INV12 already admits, would keep FR8 to the observable swap.
| | FR9–FR12 | `AppShell.test.tsx` mobile suites; `MobileNavCloseEdgeCases.test.tsx` AppShell drawer suites | Sidenav only; both navs; heading-only TopNav; custom node | A missing toggle, duplicated items, a stale drawer, or an early hide fails. | `audit:AppShell/behavior` | | ||
| | FR13, AR3 | `AppShell.test.tsx` keyboard drawer and `useAppShellMobile` suites | Outside a shell; inside, closed and open | A wrong id link or stale state fails. | `audit:AppShell/accessibility` | | ||
| | FR14, AR4 | `AppShell.test.tsx` breakpoint continuity test | Desktop to mobile and back with a focused input | Remounting content loses the value or focus. | `audit:AppShell/behavior` | | ||
| | FR17 | Real-browser frame evidence of the content area during a side nav collapse (pending) | collapse and expand with an inline side nav; Reduce Motion under a coarse and under a fine primary pointer; `fill` and a scrolled `auto` page; a theme with `reducedMotion: 'always'`; a second toggle while the swap runs | a content area that animates its width or moves on its own clock, an old wrap reachable by assistive technology or left after the swap, travel under Reduce Motion, anything but an opacity-only cross-fade of 200 ms or less under Reduce Motion on a coarse pointer (DR2), or any animated property under Reduce Motion on a fine pointer (DR3) fails | `audit:AppShell/behavior` | |
There was a problem hiding this comment.
Optional: FR17 now has a branch where the old wrap is not copied, but this row lists no such page and fails no gap. Adding "an expand whose old wrap is not copied" to the states, and "a visible gap between the rail and the content" to the failures, would let the row prove that branch.
…d caller frames live in runtime INV12
|
/approve-spec 46c9b34 |
There was a problem hiding this comment.
Recommending approval: the snap, clip and swap direction for collapsing the side nav has spec-owner approval for this exact head, and the product records now state only what a person sees, with the components' own handles, the swap's copies and the gap frames in architecture:react-component-runtime INV12. Before merging, consider refreshing the description, whose User impact still says the shell “no longer relays out … every frame” and that the rail “ends icons-only”, while today's collapse is a one-frame change and an expand ends with its labels. Two optional record touch-ups: INV12's closing “Neither is public” cites the transient-copy rule (INV7) and names no antecedent, and FR17 could say what an uncopied collapse or expand shows beyond “no visible gap”.
[Automated review]
| caller-supplied frames on elements the page already renders, on the one | ||
| shared motion, with no copy, releasing them when the motion ends; AppShell's | ||
| content surface uses this to cover an expand's gap when its old wrap is not | ||
| copied. Neither is public |
There was a problem hiding this comment.
Optional: “Neither is public” has no named antecedent, and the architecture:component-style-authoring INV7 citation on the next line now backs it, though INV7 is the transient-copy rule and says nothing about public API. Consider citing INV7 on the copy exception above and naming the two capabilities, for example “Neither the components' own handles nor the caller-supplied frames are public”.
| | FR14 | Main content stays mounted across the breakpoint (`family:layout-regions` FR9); in addition, input values and focus inside `children` survive in both directions. | Current source and tests | | ||
| | FR15 | `className`, `style`, and `xstyle` merge onto the root after component styles. | Current source | | ||
| | FR16 | With `elevated`, a present `topNav`, and an inline side nav, the content area is a raised surface whose block-start, inline-start corner uses the page radius; otherwise the content wrapper creates no layout box. | Current source and stories | | ||
| | FR17 | While the side nav collapses or expands, the content area swaps its old wrap for its new one in place: the old wrap slides and fades out while the new wrap slides and fades in, on the side nav's one clock, `spec:AST-105` FR4's one shared motion (`springs.settle`; `component:SideNav` FR6). The old wrap is one transient copy, inert and hidden from assistive technology, removed when the swap ends (`architecture:component-style-authoring` INV7). When the old wrap is not copied, such as on a page too large to copy, no visible gap opens between the rail and the content during an expand. The content area never animates its width. Under reduced motion the swap follows `design:reduced-motion` DR2 under a coarse primary pointer and DR3 otherwise. | `spec:AST-105` FR8; `component:SideNav` FR6 | |
There was a problem hiding this comment.
Optional: the first sentence says the old wrap “slides and fades out” without condition, then this row admits a branch where the old wrap is not copied and states only that no gap opens during an expand. Saying what a person sees in that branch for both directions (for example, the new wrap alone slides and fades in) would keep the first sentence true there.
Decided (Cindy, 2026-10-27 10:00, D38): "Probably we will do crossfade, but once this PR is ready we need to inspect the results for the AppShell."
User impact
Collapsing or expanding the side nav no longer relays out the whole shell every frame. The layout snaps to the final width, the rail reveals or covers its labels by a clip and ends icons-only, and the content's old and new wrap cross-fade on one clock. Reduced motion gets a cross-fade on touch and an instant change with a mouse.
Changes
component:SideNavFR6 and DEC-2: the rail snaps to its final width and reveals or covers its labels by a clip, ending icons-only. No width animation. Reduced motion follows DR2 on a coarse pointer and DR3 otherwise.component:AppShellFR17 (owner of the content cross-fade): the content area holds its own animated-layout handle and swaps its old wrap for the new one in place (spec:AST-105FR1, FR8) on the side nav's clock. The old wrap is one transient, inert copy. The content area never animates width. Owns and non-goal lines updated.spec:AST-105FR2: names AppShell's content area as holding its own handle for a side nav collapse.architecture:component-style-authoringINV7: lists AppShell's old content wrap among the transient copies.Outcome gate
The implementation PR merges only after Cindy inspects the AppShell result in a real browser.
Writing rubric results