Skip to content

frontend: refactor back navigation for ios and android#3901

Draft
sutterseba wants to merge 1 commit intoBitBoxSwiss:masterfrom
sutterseba:refactor-back-navigation
Draft

frontend: refactor back navigation for ios and android#3901
sutterseba wants to merge 1 commit intoBitBoxSwiss:masterfrom
sutterseba:refactor-back-navigation

Conversation

@sutterseba
Copy link
Collaborator

Introduces a centralized back policy in BackNavigationContext that drives iOS swipe and Android back via a logical in-app stack instead of raw WebView history.

Backward navigation (i.e. swiping or pressing the back button) should only work in certain scenarios, e.g.:

  • If there is an UI element to navigate back or close
  • If there is a clear layered menu structure (e.g. individual account)

It should explicitly not work work in other scenarios, e.g.:

  • Switching between tabs
  • Old history items (e.g. when user clicks "More" > "Settings" > "Manage accounts" > "Portfolio", swiping back should not bring them to "Manage accounts" again)

@sutterseba sutterseba force-pushed the refactor-back-navigation branch from 655c50d to a32a87e Compare March 4, 2026 15:13
Introduces a centralized back policy in BackNavigationContext that
drives iOS swipe and Android back via a logical in-app stack instead
of raw WebView history.

Backward navigation (i.e. swiping or pressing the back button) should
only work in certain scenarios, e.g.:

- If there is an UI element to navigate back or close
- If there is a clear layered menu structure (e.g. individual account)

It should explicitly not work work in other scenarios, e.g.:

- Switching between tabs
- Old history items (e.g. when user clicks "More" > "Settings" >
  "Manage accounts" > "Portfolio", swiping back should not bring them
  to "Manage accounts" again)
@sutterseba sutterseba force-pushed the refactor-back-navigation branch from a32a87e to 3818395 Compare March 9, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant