Skip to content

Use PUSH instead of REPLACE for 2FA Download codes navigation on web - #94761

Merged
danieldoglas merged 18 commits into
Expensify:mainfrom
MobileMage:fix/92564-2fa-download-codes-web-back
Nov 11, 2026
Merged

danieldoglas merged 18 commits into
Expensify:mainfrom
MobileMage:fix/92564-2fa-download-codes-web-back

Conversation

@MobileMage

@MobileMage MobileMage commented Jun 27, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

On web, the Download codes button on the 2FA recovery-codes step navigated to the Verify step with forceReplace: true (a REPLACE action). On macOS Chrome, the native "Save As" dialog blurs the tab and delays the popstate event past React Navigation's 100 ms history.go(-1) safety window. The delayed popstate is then treated as a user-initiated back press, so useLinking matches the cached pre-2FA /settings/security state and calls resetRoot, which unmounts the 2FA RHP and clears the recovery codes, so the page "closes" instead of advancing to the Verify/QR step.

The fix changes the navigation to forceReplace: !isWeb:

  • Web now uses PUSH, so the createMemoryHistory.go(-1) vs popstate race can never occur, and the browser Back button correctly returns from Verify to the Recovery-codes step.
  • Native is unchanged (still REPLACE / forceReplace: true), preserving the back-stack behavior fixed in [BT-128] Migrate forwardTo Routes - 2FA Flow #89608.

Fixed Issues

$ #92564
PROPOSAL: #92564 (comment)

Tests

  1. In Chrome on macOS, turn on Settings > Downloads > "Ask where to save each file before downloading".
  2. Sign in with a validated account that does not have 2FA enabled.
  3. Navigate to Account > Security > Two-factor authentication.
  4. Click "Download codes" and save the file.
  5. Verify the QR code page is displayed and the 2FA page does not close.
  6. If it does not reproduce on the first attempt, repeat steps 3 to 5.
  7. Press the browser Back button and verify it returns to the recovery codes page.
  8. Repeat steps 3 to 5 on iOS and Android and verify Download codes still opens the QR code page.
  • Verify that no errors appear in the JS console

Offline tests

Same as Tests. Generating recovery codes needs a server response, so there is no offline-specific behavior.

  • Verify that no errors appear in the JS console

QA Steps

Same as Tests, on staging.

  • 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 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 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 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)
  • 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.
  • 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
Kapture.2026-06-27.at.06.16.49.mp4
Android: mWeb Chrome
Cap.2026-08-18.at.03.23.34.mp4
iOS: Native
Kapture.2026-06-26.at.20.36.12.mp4
iOS: mWeb Safari
Cap.2026-08-18.at.02.25.25.mp4
MacOS: Chrome / Safari
Kapture.2026-06-25.at.16.32.55.mp4

@MobileMage
MobileMage requested review from a team as code owners June 27, 2026 05:32
@melvin-bot

melvin-bot Bot commented Jun 27, 2026

Copy link
Copy Markdown

@parasharrajat 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 request for a team June 27, 2026 05:32

@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: e9adf2eecb

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

setCodesAreCopied();
announceStatus(translate('fileDownload.success.title'));
Navigation.navigate(createDynamicRoute(DYNAMIC_ROUTES.TWO_FACTOR_AUTH_VERIFY.path, backPath), {forceReplace: true});
Navigation.navigate(createDynamicRoute(DYNAMIC_ROUTES.TWO_FACTOR_AUTH_VERIFY.path, backPath), {forceReplace: !isWeb});

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 Preserve non-settings back paths after success

When this runs on web from a dynamic entry point such as the bank-account 2FA prompt or the required-Xero overlay, using PUSH leaves the recovery-codes screen underneath the later success screen. After the user enables 2FA, browser Back from the success page lands on that root screen; the root page redirects any enabled account to ROUTES.SETTINGS_2FA_ENABLED (lines 73-75), so the user is taken to Settings instead of back to the originating flow. Either keep this intermediate page out of history for non-settings entries or make that enabled-account redirect honor backPath.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Both has a point here. There is bug on web, pressing back button on Success page, shows the recoverycode page which then redirects the user to success page again.

@MobileMage Please do check bot comments.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That's why I asked you the reason for using Forcereplace on the issue #92564 (comment). It seems this is the bug behind that.

@codecov

codecov Bot commented Jun 27, 2026 •

Copy link
Copy Markdown

Codecov Report

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

Files with missing lines Coverage Δ
...ecurity/TwoFactorAuth/DynamicTwoFactorAuthPage.tsx 86.00% <86.66%> (+6.73%) ⬆️
... and 10 files with indirect coverage changes

Comment on lines +52 to +54
const baseState = getStateFromPath(backPath);
const focusedRoute = baseState ? findFocusedRoute(baseState) : undefined;
const isSecuritySettingsFlow = focusedRoute?.name === SCREENS.SETTINGS.SECURITY;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why do we need this?

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.

Switching Download codes to PUSH on web leaves the recovery-codes page in history. After 2FA is enabled, browser Back from the success page re-mounts it, and the existing is2FAEnabled redirect then sends non-settings entries (bank account, Xero) to Settings instead of their originating flow. This makes that redirect honor backPath so those flows return correctly. Happy to pull it into a separate PR if you'd rather keep this one to the single-line change.

@parasharrajat

Copy link
Copy Markdown
Member

@MobileMage Can you please merge main?

@parasharrajat

Copy link
Copy Markdown
Member

I think the changes on this PR can cause issues. Testing those.

@parasharrajat parasharrajat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Resolve the import-block conflict from main's import reorganization: keep
findFocusedRoute/getStateFromPath/SCREENS additions in their new grouped
positions. No behavior change.
@MobileMage

Copy link
Copy Markdown
Contributor Author

Merging main and fixing my errors

When Download codes uses PUSH on web, the recovery-codes setup page stays in
history under the success page. Pressing browser Back from success re-focused it
with 2FA already enabled, and the redirect forwarded the user to the enabled
page, looping them straight back to success.

useTwoFactorAuthRoute already routes an already-enabled user to the enabled page,
so the setup page is only reached this way via back navigation. Go back out of
the flow (Navigation.goBack) instead of forwarding, which breaks the loop without
the forceReplace lever, and hide the recovery-codes content while 2FA is enabled
so it does not flash before the redirect runs.
@parasharrajat

Copy link
Copy Markdown
Member

Can you explain your solution?

@MobileMage

Copy link
Copy Markdown
Contributor Author

I figured since useTwoFactorAuthRoute already routes an already-enabled user straight to the enabled page, the setup page is only reached with 2FA on through the browser Back you described so instead of forwarding to the enabled page which caused the hoop, the redirect now calls Navigation.goBack() to exit the flow, so Back from Success lands on Security. I also tested this solution and it works very good.

@parasharrajat

Copy link
Copy Markdown
Member

Will this work if we refresh the page.

@parasharrajat

Copy link
Copy Markdown
Member

@MobileMage Can you answer that question?

@MobileMage

Copy link
Copy Markdown
Contributor Author

@parasharrajat apologies for the delay. A hardware failure took out the drive holding my local branch and repository for this PR. I'm rebuilding the environment now and will follow up on your open questions once it's restored.

@parasharrajat

Copy link
Copy Markdown
Member

Let me know once that is done.

A browser back on a freshly loaded page rebuilds the 2FA right modal, so
its beforeRemove listener clears the recovery codes after the setup page
has already mounted. The mount effect never saw that because it did not
depend on the codes, leaving an empty box with a copy button that copied
nothing and no download button. Depend on the codes so the page refetches,
and hide the copy button while there is nothing to copy.
@MobileMage

Copy link
Copy Markdown
Contributor Author

@parasharrajat Refresh does break it. Reloading and then pressing browser Back lands on the recovery codes page with an empty box,
image

I've fixed it now so the effect now depends on the codes so it refetches, and the copy button is hidden while there is nothing to copy.

@MobileMage

Copy link
Copy Markdown
Contributor Author

@parasharrajat the refresh case is fixed and pushed in 45344cb. Ready for another look when you get a chance.

@parasharrajat

Copy link
Copy Markdown
Member

will check tomorrow.

@MobileMage

Copy link
Copy Markdown
Contributor Author

@parasharrajat both comments are addressed and main is merged. Ready for another look when you have a minute.

@parasharrajat

parasharrajat commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

I will get this tested next working day.

@MobileMage

Copy link
Copy Markdown
Contributor Author

Gentle bump @parasharrajat

@parasharrajat

Copy link
Copy Markdown
Member

@MelvinBot review this.

@MelvinBot

Copy link
Copy Markdown
Contributor

Review

The core fix (PUSH on web at DynamicTwoFactorAuthPage.tsx:232) looks right. The new toggleTwoFactorAuth guard also fixes the double-enable risk. CI is green apart from the checklist jobs. I found two navigation gaps and one test nit.

1. The reload fallback never runs on web (L94-L101)
On a reload or deep link, getAdaptedState adds a full-screen route under the RHP (getAdaptedStateFromPath.ts:357-380). Because of that, navigationRef.current?.canGoBack() is true and the SETTINGS_2FA_ENABLED branch never runs. A reload with 2FA enabled closes the RHP instead of opening the Enabled page, which is what main does. The unit test mocks canGoBack, so it can't catch this. One option is to drop the branch and call quitAndNavigateBack(backPath). That returns the user to where they started (Security, bank account, or Xero) without the loop.

2. Browser Back from Success before "Got it" still doesn't leave the flow (L73-L77)
Download codes calls setCodesAreCopied, which sets twoFactorAuthSetupInProgress: true (TwoFactorAuthActions.ts:23-25). That flag stays set until "Got it". So in the normal Settings flow, shouldLeaveEnabledSetup is false on the Success page. The outcome of Back depends on whether recoveryCodes survive openApp:

  • Codes kept: the codes page shows with a working Download button, even though 2FA is already on. Download pushes Verify, which forwards straight back to Success (DynamicVerifyPage.tsx:58-63).
  • Codes cleared: shouldResumeForcedSetupHandoff is true for non-forced users too, so they bounce back to Success. That is the loop you reported earlier.

I didn't test this end to end. It needs a manual check: enable 2FA from Settings > Security on web, then press browser Back on the Success page. The comment at L70 ("only reachable by navigating back into it, so the effect below leaves the flow") only holds after "Got it".

3. Nit: The tests in tests/ui/DynamicTwoFactorAuthPageTest.tsx are missing the // Given / // When / // Then comments that tests/README.md requires.

…navigation on web

PUSH put the verify page on top of the recovery-codes page. The app builds a
dynamic route URL from the page underneath plus the page's own suffix, so the
URL became .../two-factor-auth/two-factor-auth/verify, the success page got the
wrong back path, and "Got it" no longer opened the enabled page. Browser Back
from the success page also returned to the recovery codes with 2FA already on.

Go back to REPLACE on every platform, which keeps the stack flat as on main, and
remove the redirect handling that PUSH needed. To still avoid the original bug,
start the download after the navigation on web, so the save dialog cannot open
while the history.go(-1) of the REPLACE is pending.
…ter the navigation on web"

This reverts commit e39b52a.
…lat under PUSH

With PUSH on web the recovery-codes page stays under the verify and success pages.

- Browser Back from the success or enabled page returned to the recovery codes
  with 2FA already on. A page that was open before 2FA got enabled now goes back
  once more, so Back leaves the flow as it does on main.
- The canGoBack fallback never ran, because a reload of this URL does not mount
  the page. A fresh mount with 2FA on opens the enabled page again, as on main.
- The redirect to the success page is removed. It made the page bounce.
- The hidden page no longer reacts when the forced-onboarding handoff resets the
  account data. It used to replace the success page with the verify-account page.
- getPathFromState added the suffix of the page underneath a second time, which
  gave /two-factor-auth/two-factor-auth/verify. The success page then got the
  wrong back path and "Got it" did not open the enabled page. A dynamic route
  that extends the suffix of the route underneath no longer repeats it.

Tests now follow Given / When / Then.
@MobileMage

Copy link
Copy Markdown
Contributor Author

@parasharrajat the PR is back on the PUSH approach. Review points fixed: browser Back from success or enabled leaves the flow, the canGoBack branch is gone, tests have Given/When/Then. Also fixed: with PUSH the URL became /two-factor-auth/two-factor-auth/verify and "Got it" stayed on the success page, so getPathFromState no longer repeats the shared part.

@MobileMage

Copy link
Copy Markdown
Contributor Author

Gentle bump @parasharrajat

…tead of changing getPathFromState

The getPathFromState change also flattened the URLs of other flows that stack a
dynamic route on the route it extends. The merge-transaction flow does that on
purpose (merge/:transactionID/receipt on top of merge/:transactionID), and it
lost the list step on a reload. getPathFromState is back to main's version.

With PUSH on web, the recovery codes page stays under the verify page. Once 2FA
is on, it now removes itself from the 2FA stack. The stack is then the same as on
native, where the verify page replaced it, so the success page gets its back and
forward paths from the plain URL, "Got it" opens the enabled page again, and
browser Back from the success or enabled page leaves the flow.
…'s behaviour on top

- The page removes itself only when another page of the 2FA stack is above it.
  A reset to an empty stack is not valid, so a covered page alone in its stack
  now does nothing.
- On top with 2FA on and no setup in progress, the page opens the enabled page
  again, as on main. That keeps native and stale local data unchanged.
- On top with 2FA on and the setup in progress, it leaves the flow instead of
  showing an empty page.
- Tests: remove an unused @ts-expect-error that failed the typecheck job, wrap
  Onyx updates in act(), and cover the new cases.
@parasharrajat

Copy link
Copy Markdown
Member

@MobileMage, can you resolve conflicts? I will wrap this one first.

@MobileMage

Copy link
Copy Markdown
Contributor Author

Yeah, resolving now

…d-codes-web-back

# Conflicts:
#	src/pages/settings/Security/TwoFactorAuth/DynamicTwoFactorAuthPage.tsx
#	tests/ui/DynamicTwoFactorAuthPageTest.tsx
@MobileMage

Copy link
Copy Markdown
Contributor Author

@parasharrajat conflicts resolved, ready for review.

@parasharrajat

Copy link
Copy Markdown
Member

@MelvinBot review this PR. Give me a summary of changes done over time on this PR.

@MelvinBot

Copy link
Copy Markdown
Contributor

Review

Reviewed head 30d8de9. I found no confirmed new blocking regression in the current diff. The November conflict resolution preserves the PR’s navigation logic and behavioral tests.

The final approach is:

  • PUSH on web; REPLACE on native when downloading recovery codes.
  • Remove the underlying recovery-codes page once 2FA becomes enabled, restoring the expected stack for Success and Enabled.
  • Avoid duplicate enable requests, refetch missing codes, and hide controls when there are no codes to copy.

See the navigation and enabled-state handling and Download handler.

How the PR evolved

Date (2026) Changes
June 27 Initial fix: switched Download codes to PUSH on web to avoid the reported Save As/history race. A follow-up added handling for non-Settings entry points.
July 22 Addressed the Success → Back loop: go back rather than forward to Enabled, and hide codes when 2FA is already on.
July 28–August 12 Fixed empty recovery codes after refresh/back: refetch when codes disappear and hide Copy while empty. Added an explanatory navigation comment.
September 18–19 Prevented duplicate enable requests, added direct-entry fallback/tests, then introduced a forced-onboarding redirect to Success.
October 5 Briefly tried REPLACE plus deferred downloading, then reverted that experiment. Returned to PUSH, removed the ineffective canGoBack fallback and bouncing Success redirect, added Given/When/Then comments, and temporarily changed shared URL serialization.
October 9 Reverted the shared URL-serialization change because it affected merge-transaction navigation. Replaced it with local 2FA-stack cleanup, then guarded against empty-stack resets.
November 7 Merged main and resolved conflicts, retaining the PR-specific behavior while incorporating main’s request-in-flight/retry handling.

Current scope: only the 2FA setup page and its UI test. There is no remaining shared navigation-serializer change, and deferred downloading is not the final implementation.

Validation and remaining coverage

  • Technical CI checks pass; Check independent approval is the only failing check.
  • The UI tests cover enabled-state handling, stack cleanup, request reuse, and retry behavior.
  • This was a static review, not browser verification. The tests mock navigation, so they do not prove the macOS Save As race or real browser-history behavior. Before merging, prioritize refresh/back from Verify, Back from Success before “Got it,” and forced-onboarding completion.

view run

@parasharrajat parasharrajat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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 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 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 and each prop has a /** comment above it */
    • The file is named correctly
    • 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
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • 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 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 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

🔲 iOS / native

08.11.2026_20.36.10_REC.mp4

🔲 iOS / Safari

08.11.2026_20.38.28_REC.mp4

🔲 MacOS / Chrome

08.11.2026_19.53.57_REC.mp4

🔲 Android / native

08.11.2026_20.24.18_REC.mp4

🎀 👀 🎀 C+ reviewed

@melvin-bot
melvin-bot Bot requested a review from danieldoglas November 8, 2026 15:10
@danieldoglas
danieldoglas merged commit 472b897 into Expensify:main Nov 11, 2026
37 of 39 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

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

@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@github-actions

Copy link
Copy Markdown
Contributor

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/danieldoglas in version: 9.5.37-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@MelvinBot

Copy link
Copy Markdown
Contributor

No help site update needed — this PR fixes navigation and recovery-code handling during existing 2FA setup, restoring expected behavior without adding a feature or making an existing article sentence incorrect.


view run

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.5.37-1 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 failure ❌
🍎 iOS 🍎 failure ❌

Bundle Size Analysis (Sentry):

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.

7 participants