Skip to content

feat(nav): slide in-tab pushes, keep crossfade on tab switches - #1217

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/nav-push-slide
Aug 12, 2026
Merged

feat(nav): slide in-tab pushes, keep crossfade on tab switches#1217
bmc08gt merged 1 commit into
code/cashfrom
fix/nav-push-slide

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

Differentiate navigation transitions in the v2 tab host: tab switches crossfade, in-tab pushes slide.

  • The nested tab nav host (NewAppContent) crossfaded every transition.
  • Now a forward move that lands on a tab home (Scanner/Wallet, via asNavBarTab) crossfades — a tab switch (replaceAll) — while any other forward move slides in (a push into a detail screen) and pops slide back out. Overlays/sheets keep their no-transition path.
  • Route is read via codeNavigator.currentRouteKey (the Scene.key is not the AppRoute at runtime).
  • Also switches the wallet's OpenScreen navigation from openAsSheet to push, so detail screens (e.g. Token Info) get the slide.

Test Plan

  • Switch tabs (Scanner ↔ Wallet) → crossfade
  • Wallet → tap a token card → Token Info slides in; back slides out
  • Sheets/overlays unaffected

The v2 tab nav host crossfaded every transition. Now a forward move that
lands on a tab home (Scanner/Wallet, via asNavBarTab) crossfades — a tab
switch — while any other forward move slides in (a push into a detail
screen) and pops slide back out. Overlays/sheets keep their no-transition.

Also switch the wallet's OpenScreen navigation from openAsSheet to push so
detail screens (e.g. Token Info) get the slide.
@github-actions github-actions Bot added the type: feature New functionality label Aug 11, 2026
@bmc08gt
bmc08gt merged commit 7187734 into code/cash Aug 12, 2026
3 checks passed
@bmc08gt
bmc08gt deleted the fix/nav-push-slide branch August 12, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant