Repository navigation
Description
Context
Changing destination is instant. Chat, Graph and Activity (labelled "Actions" in the phone tab bar, packages/ui-react/src/components/layout/mobile-tab-bar.tsx:94-103) are views that the store swaps with no transition:
setActiveView(packages/ui-react/src/stores/ui-state.ts:240) andpressDestination(ui-state.ts:254-265) do the swap.- Graph and Activity are lazy chunks behind an empty
Suspensefallback (packages/ui-react/src/lazy-pages.tsx:18-26).
The panel destinations (Files, Settings and the others) are Overlay panels. They already have entry-only motion: a sheet, panel or fade keyframe chosen by overlay variant, under prefers-reduced-motion: no-preference only (packages/ui-kit/src/tokens.css:2477-2490). Their close is instant by D54 (docs/decisions/design-kit/overlays.md:9-16).
document.startViewTransition is not used anywhere.
Guide ui-behaviors/same-document-transitions wraps the DOM update in document.startViewTransition(). React needs flushSync inside the callback so the update commits synchronously. The guide also says: "DO respect user preferences for reduced motion using the prefers-reduced-motion media query."
Support: Chrome Android 111, Samsung 22, Firefox Android 144 (MDN browser-compat-data). Without support, the change stays instant.
Binding decisions:
- D22's "one ambient animation" (
docs/decisions/design-kit/components-and-interactions.md:122). The ruling classifies the transition as responsive rather than ambient motion; the decision note records that. - D54's "Closing is instant" (
docs/decisions/design-kit/overlays.md:14). Pressing Chat while a panel is open closes that panel. The ruling amends D54 for view-change closes only (below).
Accepted motion policy (maintainer, 2026-10-22)
The maintainer ruling selects a 120ms ease-out crossfade of the main view region only. Navigation chrome remains still. An open panel leaves with the old view’s snapshot while being removed from the live DOM at t=0; this explicitly amends D54’s instant-close rule for view-change closes only. Esc, Back, ✕, scrim and panel-to-panel closes stay instant. The proposal’s skip-when-overlay-open condition is superseded.
The rest of the supplied brief stands: responsive rather than ambient motion under D22; cuts for unresolved chunks, current destination, cold/hash changes, unsupported browsers and reduced motion (no startViewTransition call). Focus/input are live immediately and must be proven in real browsers, including composer interaction 50ms after a Chat press. The accepted follow-up order is decision note plus D54 amendment, kit snapshot styles, one app changeView helper, then optional independent idle prefetch of Graph/Activity.
This issue owns the durable accepted specification and scoped follow-up briefs; it does not implement the transition. No motion choice or amendment approval remains outstanding.
Scope
The motion choice is accepted (the 120 ms crossfade of the main view region above); this issue records it and prepares the implementation. It produces:
- The decision note: the crossfade, its cuts, D22's responsive-motion classification, and the D54 amendment for view-change closes only, with Esc, Back, ✕, scrim and panel-to-panel closes staying instant.
- Follow-up implementation issues in the accepted order, attached to Epic: layout and type adapt to the phone's viewport, keyboard and text size #2596: kit snapshot styles; one app
changeViewhelper around the store update (startViewTransitionplusflushSync, behind"startViewTransition" in document, with no call under reduced motion); then the optional, independent idle prefetch of Graph/Activity.
Delivery of the transition is gated on those implementation issues, not on closing this one.
Out of scope
- Transition implementation; it belongs in the follow-ups even though the design is accepted.
- Cross-document transitions: the app is one document.
- Animating ordinary overlay closes. Only the explicitly approved view-change snapshot exception is allowed; record its D54 amendment.
- In-view transitions such as list reorders and card arrival.
Acceptance criteria
- The maintainer accepted the 120ms crossfade and view-change-only D54 exception.
- Record the accepted decision note and D54 amendment; file the scoped implementation follow-ups under native parent Epic: layout and type adapt to the phone's viewport, keyboard and text size #2596 with the ruled timing, focus, reduced-motion and lazy-chunk criteria.
- The D54 amendment is explicitly approved; no pending decision label is needed.
- The helper follow-up tests that a panel is gone from the live DOM at t=0 while its old snapshot fades, and that a composer tap at 50ms succeeds.
- Any follow-up's acceptance criteria require all of the following:
- a real-browser test that the transition runs under
no-preferenceand is skipped underreduce - a test that a browser without
startViewTransitionstill changes view - a test that focus lands where
pressDestinationputs it today
- a real-browser test that the transition runs under
Verification
# For the follow-ups; this issue is verified by the recorded ruling.
node scripts/visual.mjs --project=rail-fine --filter=desktop-navigation
node scripts/visual.mjs --project=rail-coarse --filter=phone-navigationContract impact
- This touches the integration contract, so it needs the
contractlabel, aCONTRACT:commit prefix, and the doc updated in the same commit. - This changes a published package's behaviour, so it needs a changeset.
None: this issue produces a design ruling.
2026-10-24: retitled and retyped as documentation (type: docs); rewrote Scope to the accepted branch (it still offered "a crossfade, a directional slide, or nothing"); made the implementation issues the delivery gate; removed the superseded 2026-10-22 readiness notes (they are in the comments).
Activity
schlessera commentedon Oct 22, 2026
Design needed: should moving between Chat, Graph and Activity animate?
Some motion is already settled. Panels animate on entry and close instantly (D54), reduced motion removes entry motion, and D22 allows one ambient animation. The open question is whether the three view destinations get a transition at all. If they do, it needs a shape, a direction, a duration and a lazy-load behaviour that sit next to the existing panel slide without making the app feel slower. That is a judgement about feel. The code can do any of the options, and a "no" is as valid as any of them.
schlessera commentedon Oct 22, 2026
2026-10-22 triage at main
aa8c8966b59f031f054f4876dbca84048b40ae4f: the complete brief produces a design answer and follow-up issues, not transition implementation. Classify it as type: spike, remove the circular needs: design prerequisite and add agent-ready. Its proposal still requires maintainer acceptance; D54 instant close, focus, reduced-motion and the documented-no outcome remain binding. Verified current destination/store and overlay motion source; native parent #2596 and explicit p3 are preserved. No animation choice or implementation is approved.schlessera commentedon Oct 22, 2026
Design brief: should changing destination animate?
Recommendation: use a 120 ms crossfade of the main region only, and only when nothing else is moving. Otherwise the change stays a cut, exactly as today.
Runner-up: "No", destination changes stay instant. Rejected: a directional slide.
Answers
tokens.css(thefadeoverlay), so this adds no new tempo.startViewTransitioncallback withflushSync, so the DOM, focus and the composer are live at t=0. Only the painted snapshot fades.ease-out, the same duration and easing as the existingfadeentry.view-transition-name. The root snapshot is turned off.onAfterClose, after the sheet has already been cut. So the crossfade runs on its own.Suspensefallback would fade to blank and then pop.pressDestinationrecords adestinationPressand changes no view (N3).reduce, change instantly. The helper does not callstartViewTransitionat all, so no snapshot is taken.Also covered:
popstate, if ui-react: Back has no in-app history because every route write replaces the entry #2582 lands B or C): the same crossfade, because Back should feel like the same move reversed.Decision note (for
components-and-interactions.md, next to D22)Storyboard: 390 px, Chat → Actions
Storyboard: 390 px, Actions → Chat
Storyboard: 1280 px, Chat → Actions (Actions → Chat is the same frames reversed)
Follow-up issues, in landing order
::view-transition-old/new(<main>)at 120 ms ease-out, only underno-preference.changeViewhelper wrapssetActiveViewandpressDestinationview changes.startViewTransitionplusflushSync, behind"startViewTransition" in document.no-preferenceand is skipped underreduce.startViewTransitionstill changes view.pressDestinationputs it today.For the maintainer
fade) or 150 ms (the upper end of the existing fades)?schlessera commentedon Oct 22, 2026
2026-10-22 concurrent-state reconciliation: the requested design proposal arrived while triage readback was running. Folded its link, unapproved status and three remaining maintainer choices into the body, replacing the now-completed design-production scope note. Preserve the concurrent needs: decision/type: feat change and absence of agent-ready. This supersedes the earlier readiness-only spike note without approving motion or changing D54.
schlessera commentedon Oct 22, 2026
Maintainer ruling
docs/decisions/design-kit/overlays.md:14, "Closing is instant"). The panel's close is instant except when the close is part of a view change. Then it leaves with the old snapshot in the same 120 ms crossfade. Every other close (Esc, Back, ✕, scrim tap, switching between panels) stays a cut.fadeentry.The rest of the brief stands as written (#2604 (comment)). That covers what persists, the lazy chunk (cut, never wait), the current destination (no transition), reduced motion (instant, with no
startViewTransitioncall) and unsupported browsers (instant). One change follows from ruling 2: the "skip when an overlay is open" condition is dropped from the helper and from the decision note.Updated decision note
D54 amendment (
overlays.md)Follow-ups (landing order)
changeViewhelper, with the acceptance criteria from the brief. Add one test that a panel open at press time is gone from the DOM at t=0 (focus is not trapped in it) while its snapshot fades.schlessera commentedon Oct 22, 2026
2026-10-22 readiness reconciliation: folded the maintainer ruling into the body, replacing the unresolved-choice specification and aligning scope/criteria with the accepted branch. The remaining work is explicitly scoped; add agent-ready. Preserve priority, native parent, assignment and release attribution. This is issue preparation, not implementation, runtime proof or delivery.
[-]ui-react: decide whether changing destination animates[/-][+]ui-react: record the accepted destination crossfade and its D54 exception, and file its implementation briefs[/+]