Skip to content

Revert "Create Navigation guards with OnboardingGuard & TestDriveModalGuard"#82396

Closed
lakchote wants to merge 3 commits into
mainfrom
revert-81689-navigation-guards-v2
Closed

Revert "Create Navigation guards with OnboardingGuard & TestDriveModalGuard"#82396
lakchote wants to merge 3 commits into
mainfrom
revert-81689-navigation-guards-v2

Conversation

@lakchote

Copy link
Copy Markdown
Contributor

Reverts #81689

@lakchote lakchote requested review from a team as code owners February 13, 2026 10:00
@melvin-bot melvin-bot Bot requested review from mjasikowski and trjExpensify and removed request for a team February 13, 2026 10:00
@melvin-bot

melvin-bot Bot commented Feb 13, 2026

Copy link
Copy Markdown

@mjasikowski Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot melvin-bot Bot removed the request for review from a team February 13, 2026 10:01
@github-actions

Copy link
Copy Markdown
Contributor

🚧 @lakchote has triggered a test Expensify/App build. You can view the workflow run here.

@lakchote

Copy link
Copy Markdown
Contributor Author

@lakchote lakchote closed this Feb 13, 2026
@github-actions

This comment has been minimized.

@codecov

codecov Bot commented Feb 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.

Files with missing lines Coverage Δ
.../pages/OnboardingPurpose/BaseOnboardingPurpose.tsx 2.85% <ø> (ø)
src/Expensify.tsx 84.34% <80.00%> (+0.24%) ⬆️
src/hooks/useOnboardingFlow.ts 87.09% <88.88%> (-0.41%) ⬇️
src/libs/Navigation/NavigationRoot.tsx 77.77% <87.50%> (+0.85%) ⬆️
src/libs/navigateAfterOnboarding.ts 68.96% <75.00%> (-1.41%) ⬇️
...igator/createRootStackNavigator/RootStackRouter.ts 78.84% <66.66%> (+5.16%) ⬆️
src/libs/actions/Link.ts 23.31% <44.44%> (+0.61%) ⬆️
src/libs/actions/Welcome/index.ts 42.42% <45.00%> (+1.74%) ⬆️
... and 15 files with indirect coverage changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 476727bd17

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +111 to +113
InteractionManager.runAfterInteractions(() => {
Navigation.navigate(ROUTES.TEST_DRIVE_MODAL_ROOT.route);
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Skip test-drive modal for accessible policy onboarding path

This branch runs specifically for private-domain users who already have accessible policies, but it now unconditionally navigates to TEST_DRIVE_MODAL_ROOT after completeOnboarding(). That bypasses the skip condition used elsewhere (onboardingPolicyID with no admins chat) and sends users who are joining an existing workspace into the test-drive modal instead of finishing onboarding in their workspace flow.

Useful? React with 👍 / 👎.

Comment thread src/Expensify.tsx
Comment on lines +353 to +355
currentOnboardingPurposeSelected,
currentOnboardingCompanySize,
onboardingInitialPath,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use fresh onboarding state when handling deep links

The deep-link handler now passes onboarding purpose/company size/last path into openReportFromDeepLink(), but this effect still only re-subscribes on session/concierge/intro changes. If onboarding progress changes after mount, the listener keeps stale values and startOnboardingFlow() can restart users from an outdated onboarding step when a new deep link is opened.

Useful? React with 👍 / 👎.

@github-actions

Copy link
Copy Markdown
Contributor

🚧 @lakchote has triggered a test Expensify/App build. You can view the workflow run here.

@github-actions

Copy link
Copy Markdown
Contributor

🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
Built from App PR #82396.

Android 🤖 iOS 🍎
https://ad-hoc-expensify-cash.s3.us-east-1.amazonaws.com/rock-artifacts/ad-hoc/rock-android-Adhoc-476727bd175bc939753314174e5951a08124799e-7651e83217265ec00c08a80c5e415faab71d47c8/index.html ⏩ SKIPPED ⏩
Android The build for iOS was skipped
Web 🕸️
⏩ SKIPPED ⏩
The build for Web was skipped

👀 View the workflow run that generated this build 👀

@lakchote lakchote reopened this Feb 13, 2026
@lakchote lakchote changed the title [HOLD] Revert "Create Navigation guards with OnboardingGuard & TestDriveModalGuard" Revert "Create Navigation guards with OnboardingGuard & TestDriveModalGuard" Feb 13, 2026
@trjExpensify trjExpensify removed their request for review February 13, 2026 17:20
@trjExpensify

Copy link
Copy Markdown
Contributor

Revert PR, doesn't need product review.

@lakchote lakchote closed this Feb 18, 2026
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.

2 participants