-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Create navigation guards + implement Onboarding Guard #79898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mjasikowski
merged 60 commits into
Expensify:main
from
callstack-internal:navigation-guards
Feb 3, 2026
Merged
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
e187919
create basic guard setup
TMisiukiewicz b7cb35c
add TwoFactorAuthGuard
TMisiukiewicz 3f08445
add tests for guard setup and 2FA guard
TMisiukiewicz cb5646e
fix lint
TMisiukiewicz a7b5e51
fix lint
TMisiukiewicz c64153e
declare function globally
TMisiukiewicz 4c1cc30
Merge remote-tracking branch 'origin/main' into navigation-guards
TMisiukiewicz 65ea0e9
immediately apply the 2fa guard
TMisiukiewicz d88379c
remove unnecessary test
TMisiukiewicz dee7ecd
prevent navigating to onboarding from 2fa
TMisiukiewicz c919c5d
Merge remote-tracking branch 'origin/main' into navigation-guards
TMisiukiewicz ec932e2
navigation guards for initial state
TMisiukiewicz 4df2560
add canBeMissing
TMisiukiewicz 96473ca
temporarily use guardedLastVisitedState in navigationroot
TMisiukiewicz bacf417
reduce the diff
TMisiukiewicz 7611092
prevent navigating away from 2fa flow
TMisiukiewicz 5b5a2cd
Revert "prevent navigating away from 2fa flow"
TMisiukiewicz 170a8d9
add early return
TMisiukiewicz 34dfad2
Merge remote-tracking branch 'origin/main' into navigation-guards
TMisiukiewicz 74ddc8c
Revert "Merge remote-tracking branch 'origin/main' into navigation-gu…
TMisiukiewicz cfbeda7
remove 2fa guard
TMisiukiewicz 03cd0f8
Reapply "Merge remote-tracking branch 'origin/main' into navigation-g…
TMisiukiewicz 84d423c
remove 2fa tests
TMisiukiewicz 6dc1bdd
create onboarding guard
TMisiukiewicz 6212c5b
wip: onboarding guard
TMisiukiewicz b8c3b08
reduce diff
TMisiukiewicz 0f337eb
simplify onboarding guard logic
TMisiukiewicz 15f4549
simplify onboarding guard
TMisiukiewicz c249972
cleanup
TMisiukiewicz 21d388c
fix lint
TMisiukiewicz 7a6ff9b
add logs
TMisiukiewicz 68248cf
guard cleanup
TMisiukiewicz 6d4e2b6
fix spellcheck
TMisiukiewicz c865998
add unit tests
TMisiukiewicz 9d987ad
defer evaluation until app is loaded
TMisiukiewicz 4325cab
fix code review comments
TMisiukiewicz 8cfbb48
Merge remote-tracking branch 'origin/main' into navigation-guards
TMisiukiewicz 2d5a040
code review updates
TMisiukiewicz 9c4f575
fix tests
TMisiukiewicz ce30384
Merge branch 'main' into navigation-guards
TMisiukiewicz abbea9c
cleanup Welcome actions
TMisiukiewicz 5a73f1b
Merge branch 'main' into navigation-guards
TMisiukiewicz a520526
do not call handleDeepLinkNavigation on every fn call
TMisiukiewicz 4cfe39f
navigate to test drive modal
TMisiukiewicz 53f8e1a
fix spellcheck
TMisiukiewicz 83a4f92
Merge remote-tracking branch 'origin/main' into navigation-guards
TMisiukiewicz 17c0702
remove shouldAllow method
TMisiukiewicz c68dcd6
evaluate navigation guards for deep links on cold start
TMisiukiewicz 779a31b
Merge branch 'main' into navigation-guards
TMisiukiewicz ce3d538
update path check
TMisiukiewicz 065ef17
Merge remote-tracking branch 'origin/main' into navigation-guards
TMisiukiewicz 1ebe63d
add missing dependency in array
TMisiukiewicz 31664f5
simplify OnboardingGuard
TMisiukiewicz b42e000
create single ALLOW condition
TMisiukiewicz f098daf
add BLOCK operations to OnboardingGuard
TMisiukiewicz 3365c2c
simplify OnboardingGuard logic
TMisiukiewicz d3db6dc
add BLOCK test
TMisiukiewicz 107a652
reduce diff
TMisiukiewicz 282d6ff
fix tests
TMisiukiewicz 1ff1768
Merge remote-tracking branch 'origin/main' into navigation-guards
TMisiukiewicz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.