Skip to content

83867 travel workspace - #98631

Open
huult wants to merge 5 commits into
Expensify:mainfrom
huult:83867-travel-workspace
Open

83867 travel workspace#98631
huult wants to merge 5 commits into
Expensify:mainfrom
huult:83867-travel-workspace

Conversation

@huult

@huult huult commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Explanation of Change

Fixed Issues

$ #83867
PROPOSAL:

Tests

Same QA step

  • Verify that no errors appear in the JS console

Offline tests

QA Steps

TRAVEL_VERIFY_ACCOUNT

Precondition:

  • Travel feature is enabled.
  • Log in with a private domain account that has not been verified.
  1. Open the Expensify app.
  2. Go to Workspace → Travel.
  3. Click the Let's Go button
  4. Verify that the Verify Account step opens and that you can navigate forward and back normally.

TRAVEL_WORKSPACE_CONFIRMATION

Precondition:

  • Account doesn't have any workspace.
  • Log in with a private domain account.
  1. Open the Expensify app.
  2. Go to Spend.

Update the URL from:
https://staging.new.expensify.com/search?q=type%3Aexpense-report%20sortBy%3Adate%20sortOrder%3Adesc

to:
https://staging.new.expensify.com/search/travel-upgrade?q=type%3Aexpense-report%20sortBy%3Adate%20sortOrder%3Adesc

  1. Click the Upgrade button.
  2. Verify that the Workspace Confirmation screen appears and that you can proceed through the flow normally.
  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I verified there are no new alerts related to the canBeMissing param for useOnyx
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
      • If any non-english text was added/modified, I used JaimeGPT to get English > Spanish translation. I then posted it in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari

TRAVEL_VERIFY_ACCOUNT

Screen.Recording.2026-08-14.at.13.06.19.mov

TRAVEL_WORKSPACE_CONFIRMATION

Screen.Recording.2026-08-14.at.13.14.48.mov

@huult
huult requested review from a team as code owners August 14, 2026 06:15
@melvin-bot
melvin-bot Bot requested a review from suneox August 14, 2026 06:15
@melvin-bot

melvin-bot Bot commented Aug 14, 2026

Copy link
Copy Markdown

@suneox 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 requested review from garrettmknight and removed request for a team August 14, 2026 06:15
@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
src/ROUTES.ts 23.38% <100.00%> (+0.02%) ⬆️
src/SCREENS.ts 100.00% <ø> (ø)
src/components/BookTravelButton.tsx 81.57% <ø> (ø)
src/libs/Navigation/linkingConfig/OldRoutes.ts 100.00% <ø> (ø)
src/libs/Navigation/linkingConfig/config.ts 66.66% <ø> (ø)
src/pages/Travel/DynamicTravelUpgrade.tsx 0.00% <ø> (ø)
src/pages/Travel/EnableTravel/index.tsx 0.00% <ø> (ø)
...avel/DynamicWorkspaceConfirmationForTravelPage.tsx 0.00% <0.00%> (ø)
...gation/AppNavigator/ModalStackNavigators/index.tsx 6.38% <0.00%> (ø)
src/pages/Travel/DynamicVerifyAccountPage.tsx 0.00% <0.00%> (ø)
... and 12 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: 3b59ff97bd

ℹ️ 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".

}
setTravelProvisioningNextStep(ROUTES.TRAVEL_ENABLE.getRoute(policyID));
Navigation.navigate(ROUTES.TRAVEL_VERIFY_ACCOUNT.getRoute(undefined, policyID), {forceReplace: true});
Navigation.navigate(createDynamicRoute(DYNAMIC_ROUTES.TRAVEL_VERIFY_ACCOUNT.getRoute(policyID)), {forceReplace: true});

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 Avoid returning to the guarded enable route

When this redirect runs from EnableTravel for an unvalidated user, createDynamicRoute() uses the current /travel/enable/:policyID URL as the dynamic route base. DynamicVerifyAccountPage then derives navigateBackTo from that base, so dismissing the validation page navigates back to EnableTravel, whose effect immediately redirects to verify-account again. The previous static verify route with forceReplace did not set the enable stepper as the close target, so users can now get stuck in the verify screen unless they complete validation.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I can't reproduce this case. @suneox, can you reproduce it?

@huult

huult commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

@suneox it's ready for review

garrettmknight
garrettmknight previously approved these changes Aug 14, 2026

@garrettmknight garrettmknight left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good from a product perspective

@suneox

suneox commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Test cases base on current code change


DYNAMIC_ROUTES.TRAVEL_VERIFY_ACCOUNTverify-account gate before travel (4 entry screens)

Case A.1 — Legacy path: Workspace → Travel → Book travel (beta OFF)

Target: src/components/BookTravelButton.tsx:170, rendered by src/pages/workspace/travel/GetStartedTravel.tsx:41 (screen WORKSPACE.TRAVEL).

Precondition: isTravelVerified beta OFF, account not validated, paid workspace that is not provisioned for travel, admin on a private email domain.

// beta isTravelVerified OFF → falls into the "legacy request-access path"
Onyx.merge('betas', ['all']);
// validated=false → the `!isUserValidated` guard passes → navigate to verify-account
Onyx.merge('account', {validated: false});
// empty travelSettings → isWorkspaceProvisionedForTravel() === false
Onyx.merge('policy_<POLICY_ID>', {travelSettings: {}});
// NOT settable via Onyx: you need a real paid group policy you own (isPaidGroupPolicy + groupPaidPolicies.length >= 1)
// and an admin with a private email domain (getAdminsPrivateEmailDomains).

Steps:

  1. Open the app and log in with the test account.
  2. LHN → Workspaces → pick the workspace → Travel.
  3. Click Book travel.
  4. Verify the Verify account RHP opens (magic-code input).
  5. Verify the URL is /workspaces/<POLICY_ID>/travel/travel-verify-account?policyID=<POLICY_ID> — no ?backTo= anymore.
  6. Click back.

Expected: returns to /workspaces/<POLICY_ID>/travel; both the suffix and ?policyID= are gone from the URL.


Case A.2 — Entry from My Trips (/travel)

Target: src/pages/Travel/ManageTrips.tsx:94 (screen TRAVEL.MY_TRIPS).

Precondition: same as A.1.

Onyx.merge('betas', ['all']);
Onyx.merge('account', {validated: false});
Onyx.merge('policy_<POLICY_ID>', {travelSettings: {}});

Steps:

  1. Open the app and log in.
  2. Go to /travel (or LHN → Travel).
  3. Click Book travel.
  4. Click back.

Expected: step 3 opens the Verify account RHP at /travel/travel-verify-account?policyID=<POLICY_ID>; step 4 returns to /travel.


Case A.2b — ⚠️ My Trips opened from the FAB (active route already carries ?policyID=)

Target: src/pages/inbox/sidebar/FABPopoverContent/menuItems/TravelMenuItem.tsx:50ROUTES.TRAVEL_MY_TRIPS.getRoute(policyID)BookTravelButton.

Precondition: same as A.1, plus a workspace with travel enabled so the FAB shows the Travel item.

Onyx.merge('betas', ['all']);
Onyx.merge('account', {validated: false});
Onyx.merge('policy_<POLICY_ID>', {travelSettings: {}});

Steps:

  1. Log in with the unvalidated account.
  2. Open the FABTravel (any path that lands on /travel?policyID=<POLICY_ID>).
  3. Confirm the URL is /travel?policyID=<POLICY_ID>.
  4. Click Book travel.

Expected: the Verify account RHP opens at /travel/travel-verify-account?policyID=<POLICY_ID> with a single policyID param.

⚠️ Note: not fixed in this PR yet. If step 4 opens nothing and the console shows [createDynamicRoute] Query param "policyID" exists in both base path and dynamic suffix, it is not a pass — that is the reported P0. Re-run after the hasPolicyIDInActiveRoute() guard is added.


Case A.3 — Entry from Search (keeps the ?q= query)

Target: src/pages/Search/EmptySearchView.tsx:273 (screen SEARCH.ROOT).

Precondition: same as A.1, plus Search must be in its empty state so EmptySearchView renders the Book travel button.

Onyx.merge('betas', ['all']);
Onyx.merge('account', {validated: false});
Onyx.merge('policy_<POLICY_ID>', {travelSettings: {}});
// NOT settable via Onyx: the empty state is derived from server search results — use a query that is
// guaranteed to return nothing (e.g. switch the type or filter on a future date range).

Steps:

  1. Open Search so the URL looks like /search?q=type%3Aexpense-report%20sortBy%3Adate%20sortOrder%3Adesc.
  2. Adjust the query until the list is empty and the Book travel button shows.
  3. Click Book travel.
  4. Click back.

Expected: step 3 gives /search/travel-verify-account?q=<original query>&policyID=<POLICY_ID> — both query params present, q is not lost. Step 4 returns to /search?q=<original query> (suffix and policyID stripped, q preserved).


Case A.4 — Beta ON: verify → forward into the enablement stepper after the magic code

Target: src/components/BookTravelButton.tsx:201 and src/pages/Travel/VerifyAccountPage.tsx:44.

Precondition: isTravelVerified beta ON, account not validated, paid workspace not provisioned.

// beta ON → willUseEnablementStepper === true → stepper branch
Onyx.merge('betas', ['all', 'isTravelVerified']);
Onyx.merge('account', {validated: false});
Onyx.merge('policy_<POLICY_ID>', {travelSettings: {}});
// After step 2, TRAVEL_PROVISIONING should hold {nextStepRoute: 'travel/enable/<POLICY_ID>'}

Steps:

  1. Open Workspaces → → Travel.
  2. Click Book travel — the URL should be /workspaces/<POLICY_ID>/travel/travel-verify-account?policyID=<POLICY_ID>.
  3. Enter the magic code from your email (or run Onyx.merge('account', {validated: true})).
  4. Click back on the stepper.

Expected: step 3 replaces (does not stack) the page with the stepper at /travel/enable/<POLICY_ID>; step 4 does not return to the verify-account page, since it was force-replaced out of history.


Case A.5 — ⚠️ Deep link straight into the stepper while unvalidated (entry TRAVEL.ENABLE)

Target: src/pages/Travel/EnableTravel/index.tsx:51.

Precondition: isTravelVerified beta ON, account not validated, you are an admin of <POLICY_ID>.

Onyx.merge('betas', ['all', 'isTravelVerified']);
Onyx.merge('account', {validated: false});
// clear any leftover nextStepRoute so this is an entry mount, not a mid-flow one
Onyx.merge('travelProvisioning', {nextStepRoute: null});

Steps:

  1. Log in with the unvalidated account.
  2. Paste /travel/enable/<POLICY_ID> into the address bar and hit Enter.
  3. Confirm you are redirected to /travel/enable/<POLICY_ID>/travel-verify-account?policyID=<POLICY_ID>.
  4. Click back.
  5. Reload (F5) on the URL from step 3.

Expected: step 4 leaves the verify flow — you land on the screen underneath the RHP (Workspaces / Travel) and travel-verify-account is gone from the URL. Step 5 restores the stack with verify-account as an RHP on top of the stepper.

⚠️ Note: this PR does not fix the back loop yet. If step 4 only flashes and returns to the same Verify account page (URL unchanged), it is not a pass — that is the reported P1. Re-run this case after the fix.


Case A.6 — OldRoutes redirect from the old path

Target: src/libs/Navigation/linkingConfig/OldRoutes.ts'/travel/verify-account': '/travel/travel-verify-account'.

Precondition: account not validated.

Onyx.merge('account', {validated: false});

Steps:

  1. In a new tab, paste /travel/verify-account?policyID=<POLICY_ID> and hit Enter.
  2. Click back.

Expected: the URL rewrites itself to /travel/travel-verify-account?policyID=<POLICY_ID> and the Verify account page renders on top of My Trips (not Not-found, not Home). Back returns to /travel.


Case A.7 — Reload / deep link on the new URL (stack restore)

Precondition: same as A.1.

Onyx.merge('account', {validated: false});

Steps:

  1. Paste /workspaces/<POLICY_ID>/travel/travel-verify-account?policyID=<POLICY_ID> and hit Enter.
  2. Reload (F5).
  3. Click back.

Expected: the Verify account RHP opens over Workspace → Travel and survives the reload; back returns to /workspaces/<POLICY_ID>/travel.


Case A.8 — Invalid entry screen (negative)

Steps:

  1. Paste /settings/profile/travel-verify-account and hit Enter.

Expected: the Verify account page does not open — Not-found (or the getStateFromPath fallback) is shown, and the console logs [getStateFromPath.ts][DynamicRoute] None of the … candidate(s) passed entryScreens validation.


DYNAMIC_ROUTES.TRAVEL_WORKSPACE_CONFIRMATIONcreate a workspace from Travel upgrade (nested under travel-upgrade)

Case B.1 — My Trips → Travel upgrade → Upgrade

Target: src/pages/Travel/DynamicTravelUpgrade.tsx:37.

Precondition: the account owns no paid group workspace (groupPaidPolicies.length < 1 is what routes Book travel to the upgrade page).

Onyx.merge('account', {validated: true});
// NOT settable via Onyx: groupPaidPolicies is derived from the policy_ collection — use a fresh account
// with no paid workspace, or go straight to the travel-upgrade URL in step 1.

Steps:

  1. Go to /travel and click Book travel (or open /travel/travel-upgrade directly).
  2. Click Upgrade.
  3. Click back.

Expected: step 2 opens the Confirm workspace form at /travel/travel-upgrade/workspace-confirmation; step 3 returns to /travel/travel-upgrade (the Upgrade page — not /travel).


Case B.2 — Entry from Search: /search/travel-upgrade (keeps ?q=)

Precondition: same as B.1.

Onyx.merge('account', {validated: true});

Steps:

  1. Open Search at /search?q=type%3Aexpense-report%20sortBy%3Adate%20sortOrder%3Adesc.
  2. Change the URL to /search/travel-upgrade?q=<same query> and hit Enter.
  3. Click Upgrade.
  4. Click back twice.

Expected: step 3 gives /search/travel-upgrade/workspace-confirmation?q=<same query> with q intact; the two backs go to /search/travel-upgrade?q=… and then /search?q=….


Case B.3 — Entry from Workspace → Travel

Steps:

  1. Open /workspaces/<POLICY_ID>/travel/travel-upgrade.
  2. Click Upgrade.
  3. Click back.

Expected: step 2 gives /workspaces/<POLICY_ID>/travel/travel-upgrade/workspace-confirmation with the Confirm workspace form; step 3 returns to /workspaces/<POLICY_ID>/travel/travel-upgrade.


Case B.4 — Submit the form → workspace created → back on Upgrade confirmation

Target: onSubmitcreateDraftWorkspace + createWorkspacegoBack() in WorkspaceConfirmationForTravelPage.tsx (renamed to DynamicWorkspaceConfirmationForTravelPage.tsx in this PR).

Steps:

  1. Get to step 2 of B.1 (/travel/travel-upgrade/workspace-confirmation).
  2. Enter a workspace name, pick a currency, click Confirm.
  3. Click the final confirmation button.

Expected: step 2 returns to /travel/travel-upgrade now showing the Upgrade confirmation state (a paid workspace exists, so isUpgraded === true) instead of the upgrade intro; step 3 leaves the flow.


Case B.5 — Three-level nesting: Currency / Plan type / Avatar crop inside Confirm workspace

Target: DYNAMIC_ROUTES.WORKSPACE_CONFIRMATION_CURRENCY, …_PLAN_TYPE and AVATAR_CROP — all three swap their entry screen to SCREENS.TRAVEL.DYNAMIC_WORKSPACE_CONFIRMATION in this PR.

Steps:

  1. Get to step 2 of B.1.
  2. Click the Currency row, pick a currency.
  3. Click the workspace avatar and choose an image.
  4. If the form exposes Plan type, open it as well.

Expected: step 2 opens /travel/travel-upgrade/workspace-confirmation/currency and returns to the form with the new value; step 3 opens …/workspace-confirmation/avatar-crop and returns to the form; step 4 opens …/workspace-confirmation/plan-type and returns to the form.


Case B.6 — OldRoutes redirect from the old path

Target: '/travel/upgrade/workspace/confirmation': '/travel/travel-upgrade/workspace-confirmation'.

Steps:

  1. In a new tab, paste /travel/upgrade/workspace/confirmation and hit Enter.
  2. Click back.
  3. Repeat step 1 with /travel/upgrade/workspace/confirmation?backTo=/home.

Expected: the URL rewrites to /travel/travel-upgrade/workspace-confirmation and the Confirm workspace form renders (not Not-found, not Home); back returns to /travel/travel-upgrade. In step 3 the redirect keeps ?backTo=/home on the new URL — the param is no longer read, it just must not break anything.


Case B.7 — Reload on the nested URL

Steps:

  1. Paste /travel/travel-upgrade/workspace-confirmation and hit Enter.
  2. Reload (F5).
  3. Click back twice.

Expected: the Confirm workspace form opens on top of the Travel upgrade page and survives the reload; the two backs go to /travel/travel-upgrade and then /travel.

@suneox

suneox commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

@huult Test case A.2b, A.5 failed.

CleanShot.2026-08-18.at.15.17.01.1.mp4
Staging
CleanShot.2026-08-18.at.15.12.40.1.mp4

@suneox

suneox commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp
Android: mWeb Chrome
iOS: HybridApp
iOS: mWeb Safari
MacOS: Chrome / Safari
CleanShot.2026-08-18.at.15.42.45.1.mp4
DYNAMIC_ROUTES.TRAVEL_VERIFY_ACCOUNTverify-account gate before travel (4 entry screens)

Case A.1 — Legacy path: Workspace → Travel → Book travel (beta OFF)

A 1-1-before-workspace-travel-root A 1-2-entry-verify-account-rhp A 1-3-after-back-workspace-travel-root

Case A.2 — Entry from My Trips (/travel)


Case A.2b — ⚠️ My Trips opened from the FAB (active route already carries ?policyID=)

A 2b-1-before-my-trips-from-fab-policyid A 2b-2-entry-p0-policyid-collision

Case A.3 — Entry from Search (keeps the ?q= query)

A 3-1-before-search-empty-trip A 3-2-entry-verify-account-keeps-q A 3-3-after-back-search-query-restored

Case A.4 — Beta ON: verify → forward into the enablement stepper after the magic code

A 4-1-before-workspace-travel-beta-on A 4-2-entry-verify-account-beta-on A 4-3-after-back-stepper-back-not-verify A 4-3-after-submit-stepper-replaced-verify

Case A.5 — ⚠️ Deep link straight into the stepper while unvalidated (entry TRAVEL.ENABLE)

A 5-1-before-stepper-before-unvalidate A 5-2-entry-deeplink-redirect-verify

Case A.6 — OldRoutes redirect from the old path

A 6-1-before-verify-account-oldurl A 6-2-entry-verify-account-redirected A 6-3-after-back-my-trips-root

Case A.7 — Reload / deep link on the new URL (stack restore)

A 7-2-entry-verify-on-workspace-bg A 7-3-after-submit-refresh-restores-stack

Case A.8 — Invalid entry screen (negative)

A 8-2-entry-invalid-entry-blocked

DYNAMIC_ROUTES.TRAVEL_WORKSPACE_CONFIRMATIONcreate a workspace from Travel upgrade (nested under travel-upgrade)

Case B.1 — My Trips → Travel upgrade → Upgrade

B 1-1-before-travel-upgrade-intro B 1-2-entry-workspace-confirmation-form B 1-3-after-back-travel-upgrade-root

Case B.2 — Entry from Search: /search/travel-upgrade (keeps ?q=)

B 2-1-before-search-travel-upgrade B 2-2-entry-workspace-confirmation-keeps-q B 2-3-after-back-search-query-restored

Case B.3 — Entry from Workspace → Travel

B 3-1-before-workspace-travel-upgrade-nested B 3-3-after-back-workspace-travel-root

Case B.4 — Submit the form → workspace created → back on Upgrade confirmation

B 4-1-before-confirmation-form-filled B 4-3-after-submit-upgrade-confirmation

Case B.5 — Three-level nesting: Currency / Plan type / Avatar crop inside Confirm workspace

B 5-1-before-confirmation-form-currency-row B 5-2-entry-currency-selector-nested

Case B.6 — OldRoutes redirect from the old path

B 6-2-entry-backto-param-preserved B 6-2-entry-workspace-confirmation-redirected

Case B.7 — Reload on the nested URL

On video

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.

3 participants