Skip to content

Restart the HybridApp sign-in flow after closing an account - #105535

Merged
mollfpr merged 2 commits into
mainfrom
claude-resetHybridAppSignInAfterCloseAccount
Nov 2, 2026
Merged

mollfpr merged 2 commits into
mainfrom
claude-resetHybridAppSignInAfterCloseAccount

Conversation

@MelvinBot

@MelvinBot MelvinBot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

Closing an account on iOS or Android left the user unable to sign back in. A successful CloseAccount response clears all Onyx data, including the hybridApp flags the sign-in flow needs, and nothing restored them. So a valid magic code signed the user in, but the app stayed on the magic code screen. Tapping Sign in then resent the used code and showed an incorrect code error.

OldDot also stayed signed in to the closed account. closeAccount only signed it out after checking the response from API.write, but API.write resolves when the request is queued, with no response, so that sign-out never ran. Once sign-in works again, the next session would go to an OldDot still holding the closed account, so this is fixed here too.

Normal sign-out handles both in clearStorageAndRedirect, but closing an account never goes through it. This PR moves that work to the existing hybridApp connection in src/libs/HybridApp.ts, which now signs OldDot out and restarts the sign-in flow whenever a clear removes that key. One place now handles both normal sign-out and closing an account, and closeAccount goes back to a plain API.write.

Clears that keep the user signed in, like switching to a copilot, already preserve hybridApp, so they don't trigger this. A rejected validate code sends no clear, so both apps stay signed in.

Fixed Issues

$ #102528
PROPOSAL: #102528 (comment)

Tests

Test 1: Close an account and sign back in

  1. Sign in with a test account.
  2. Go to Account > Security > Close account.
  3. Type any reason in the first box.
  4. Type the account's email in the second box.
  5. Tap Close account, then tap Yes, continue in the popup.
  6. On the "Let's make sure it's you" screen, enter the security code from your email.
  7. Verify the sign-in page opens and shows "Account closed successfully".
  8. Enter the same email and tap Continue.
  9. Enter the new security code from your email.
  10. Verify you are signed in right after entering the code, without tapping Sign in and without any error.

Test 2: A wrong code does not close the account

  1. Follow Test 1, steps 1 to 5.
  2. On the "Let's make sure it's you" screen, enter a wrong 6-digit code.
  3. Verify an error appears and you stay on that screen.
  4. Go back and verify you are still signed in and the app works.
  5. Force close the app and reopen it.
  6. Verify you are still signed in.

Test 3: Reopen the app after closing an account

  1. Follow Test 1, steps 1 to 7.
  2. Force close the app and reopen it.
  3. Verify the sign-in page opens.
  4. Enter the same email and tap Continue, then enter the security code from your email.
  5. Verify you are signed in.

Test 4: Close one account and sign in to another

Account B must show Switch to Expensify Classic on its Account page. Check this before closing account A. If it doesn't show it, skip this test and note it. On a dev build, any account can use the same option under Account > Troubleshoot.

  1. Follow Test 1, steps 1 to 7, with account A.
  2. On the sign-in page, enter the email of account B and tap Continue, then enter the security code from your email.
  3. Verify you are signed in and the Account page shows account B's email.
  4. Tap Switch to Expensify Classic.
  5. Verify Expensify Classic opens and shows account B's email and data, with nothing from account A.

Test 5: Normal sign out

  1. Sign in with a test account.
  2. Go to Account and tap Sign out.
  3. Verify the sign-in page opens.
  4. Sign back in with the same email and the security code from your email.
  5. Verify you are signed in.

Test 6: Switching accounts as a copilot

Use an account that was added as a copilot on another account.

  1. Sign in and go to Account.
  2. Tap the Switch button and pick the other account.
  3. Verify the app switches to that account and you are not signed out.
  4. Tap Switch again and pick your own account.
  5. Force close the app and reopen it.
  6. Verify you are still signed in to your own account.
  • Verify that no errors appear in the JS console

Offline tests

These steps need a connection, because they use emailed codes and server responses.

QA Steps

Same as tests

  • 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari

The server clears Onyx when CloseAccount succeeds, which wipes the HybridApp
sign-in flags. Reopening the account then left the user stuck on the magic
code page. Apply the reset as successData so it lands after that clear.

Co-authored-by: TaduJR <TaduJR@users.noreply.github.com>
@MelvinBot
MelvinBot requested a review from a team October 30, 2026 22:00
@melvin-bot melvin-bot Bot added Melvin-Test-Android Melvin-Test-Web Triggers Melvin to run the testing steps of the PR on web labels Oct 30, 2026
@MelvinBot

Copy link
Copy Markdown
Contributor Author

I created this PR from an upstream branch since I don't have push access to your fork.

To take ownership of this branch and be able to push updates, run:

git remote add upstream https://github.com/Expensify/App.git
git fetch upstream claude-resetHybridAppSignInAfterCloseAccount
git checkout -b claude-resetHybridAppSignInAfterCloseAccount upstream/claude-resetHybridAppSignInAfterCloseAccount
git push -u origin claude-resetHybridAppSignInAfterCloseAccount

Then you can close this PR and open a new one from your fork.

@codecov

codecov Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codecov Report

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

Files with missing lines Coverage Δ
src/libs/HybridApp.ts 92.30% <100.00%> (+38.14%) ⬆️
src/libs/actions/SignInRedirect.ts 83.01% <ø> (+2.66%) ⬆️
src/libs/actions/User.ts 49.68% <ø> (+1.45%) ⬆️
... and 16 files with indirect coverage changes

@MelvinBot

MelvinBot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Web test steps verification results: ⚠️ partial

This PR has no written Tests steps yet, so I used the linked issue's steps. On Web, the Close account page works up to the confirm button. I could not run the close-and-reopen steps: they need a sign-out and a magic code from email, which automated testing can't do. The fix also targets HybridApp only, so iOS or Android testing by a human is still needed.
Navigated back to the Security settings page

Step Status
Go to Account > Security > Close account; the page opensThe page shows a reason input, an email confirmation input, and a Close account button.
Close account page with reason input, email confirmation input, and Close account button
✅
Enter text in the reason inputThe field accepted "Testing the close account flow", and the "This field is required" error cleared.
Reason input showing entered text
✅
Enter the account email; Close account button is availableThe email was accepted with no validation errors, and the Close account button was available. I did not press it, and Back returned to Security.
Both fields filled with Close account button visible, not yet pressedNavigated back to the Security settings page
✅
Confirm Close account; user is logged outNot run. Closing the account ends the test session, and automated testing can't recover from that.
⚠️
Enter the closed account's email, then a valid magic code; account reopens and signs inNot run. This needs a magic code from email, which automated testing can't get. This is the step the PR fixes.
⚠️
No console errors during the flowNo error banners or crash screens appeared. The Web test tools can't read the browser console, so this result is based only on the UI.
✅

view run · no recording available

@MelvinBot

MelvinBot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Android test steps verification results: ⚠️ partial

On Android, the Close account page, both inputs, and the confirmation modal all work. I did not confirm closure or reopen the account: closing ends the test session, and reopening needs a magic code from email. The emulator also runs standalone NewDot, not HybridApp, so this PR's fix still needs a human test on the HybridApp build.
Confirmation modal shown after tapping Close account

Step Status
Go to Account > Security > Close account; the page opensThe page shows a reason input, an email confirmation input, and a Close account button.
Close account page with reason input, email input, and Close account button
✅
Enter text in the reason inputThe field held the entered text after typing.
✅
Enter the account email; Close account button is availableThe field held the signed-in account's email, and the Close account button stayed enabled.
Close account page with both reason and email fields filled
✅
Tap Close account and confirm; user is logged outTapping Close account opened the "Closing your account cannot be undone" modal with Yes, continue and Cancel. I tapped Cancel, so the logout was not tested. This is not an app defect.
Confirmation modal shown after tapping Close account
⚠️
Enter the closed account's email, then a valid magic code; account reopens and signs inNot run. The account was never closed, and automated testing can't get a magic code from email. This is the step the PR fixes.
⚠️
No JS errors or crashes during the flowNo error banners, crash dialogs, or freezes appeared. The app stayed responsive throughout.
✅

view run · view recording

@TaduJR

This comment was marked as resolved.

…emoves the hybridApp key

Closing an account ends the session through the server's clear, which never
reached the HybridApp half of sign-out. Move the OldDot sign-out and sign-in
reset into the HYBRID_APP connection so every clear that ends the session runs
it, and drop the successData and the closeAccount .then that never ran.

Co-authored-by: TaduJR <TaduJR@users.noreply.github.com>
@TaduJR

TaduJR commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T14:48:57.777862Z a4c5fd6 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@MelvinBot

Copy link
Copy Markdown
Contributor Author

I reworked the PR as you described and pushed a4c5fd6. The diff against main now matches yours.

  • src/libs/HybridApp.ts: the HYBRID_APP connection resets the sign-in flow and signs OldDot out when a clear removes the key.
  • SignInRedirect.ts: the HybridApp block in clearStorageAndRedirect is gone.
  • User.ts: closeAccount is a plain API.write with no .then, and the "Pusher response" comment is corrected.
  • Removed getResetSignInFlowOnyxData, RESET_SIGN_IN_FLOW_VALUE, the successData, and the closeAccount tests in UserTest.ts. Both files now match main byte for byte.
  • Added tests/actions/HybridAppSignOutTest.ts exactly as you wrote it.

I also updated the PR description to match.

I couldn't run Jest, typecheck, or lint in this run, so CI is the first run of the new tests. I didn't run a Web check either: this code only runs on HybridApp, and automated tests can't close an account or sign out.


view run

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: a4c5fd6ba4

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

@TaduJR

TaduJR commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot Please update the replace the description with the below on in the details

Also Please test on below all tests for verification results on your side

Description

Explanation of Change

Closing an account on iOS or Android left the user unable to sign back in. A successful CloseAccount response clears all Onyx data, including the hybridApp flags the sign-in flow needs, and nothing restored them. So a valid magic code signed the user in, but the app stayed on the magic code screen. Tapping Sign in then resent the used code and showed an incorrect code error.

OldDot also stayed signed in to the closed account. closeAccount only signed it out after checking the response from API.write, but API.write resolves when the request is queued, with no response, so that sign-out never ran. Once sign-in works again, the next session would go to an OldDot still holding the closed account, so this is fixed here too.

Normal sign-out handles both in clearStorageAndRedirect, but closing an account never goes through it. This PR moves that work to the existing hybridApp connection in src/libs/HybridApp.ts, which now signs OldDot out and restarts the sign-in flow whenever a clear removes that key. One place now handles both normal sign-out and closing an account, and closeAccount goes back to a plain API.write.

Clears that keep the user signed in, like switching to a copilot, already preserve hybridApp, so they don't trigger this. A rejected validate code sends no clear, so both apps stay signed in.

Fixed Issues

$ #102528
PROPOSAL: #102528 (comment)

Tests

Test 1: Close an account and sign back in

  1. Sign in with a test account.
  2. Go to Account > Security > Close account.
  3. Type any reason in the first box.
  4. Type the account's email in the second box.
  5. Tap Close account, then tap Yes, continue in the popup.
  6. On the "Let's make sure it's you" screen, enter the security code from your email.
  7. Verify the sign-in page opens and shows "Account closed successfully".
  8. Enter the same email and tap Continue.
  9. Enter the new security code from your email.
  10. Verify you are signed in right after entering the code, without tapping Sign in and without any error.

Test 2: A wrong code does not close the account

  1. Follow Test 1, steps 1 to 5.
  2. On the "Let's make sure it's you" screen, enter a wrong 6-digit code.
  3. Verify an error appears and you stay on that screen.
  4. Go back and verify you are still signed in and the app works.
  5. Force close the app and reopen it.
  6. Verify you are still signed in.

Test 3: Reopen the app after closing an account

  1. Follow Test 1, steps 1 to 7.
  2. Force close the app and reopen it.
  3. Verify the sign-in page opens.
  4. Enter the same email and tap Continue, then enter the security code from your email.
  5. Verify you are signed in.

Test 4: Close one account and sign in to another

Account B must show Switch to Expensify Classic on its Account page. If it doesn't, skip this test and note it.

  1. Follow Test 1, steps 1 to 7, with account A.
  2. On the sign-in page, enter the email of account B and tap Continue, then enter the security code from your email.
  3. Verify you are signed in and the Account page shows account B's email.
  4. Tap Switch to Expensify Classic.
  5. Verify Expensify Classic opens and shows account B's email and data, with nothing from account A.

Test 5: Normal sign out

  1. Sign in with a test account.
  2. Go to Account and tap Sign out.
  3. Verify the sign-in page opens.
  4. Sign back in with the same email and the security code from your email.
  5. Verify you are signed in.

Test 6: Switching accounts as a copilot

Use an account that was added as a copilot on another account.

  1. Sign in and go to Account.
  2. Tap your name at the top of the page and pick the other account.
  3. Verify the app switches to that account and you are not signed out.
  4. Tap the name at the top again and switch back to your own account.
  5. Force close the app and reopen it.
  6. Verify you are still signed in to your own account.
  • Verify that no errors appear in the JS console

Offline tests

Same as tests

QA Steps

Same as tests

  • 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari

@MelvinBot

MelvinBot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Android test steps verification results: ⚠️ partial

I replaced the PR description with your text. On Android, I could only run the first part of Test 1: the Close account page, both inputs, and the confirmation popup all work. The other steps need a completed account closure, a sign-out, magic codes from email, a second account, or a copilot account, so the automated tester skipped them. This emulator also runs standalone NewDot, not HybridApp, so a human still needs to run Tests 1–6 on the HybridApp build.
Close account confirmation popup with Yes, continue and Cancel

Step Status
Test 1.2: Go to Account > Security > Close account; the page opensThe Close account page opened with the reason box and the email confirmation box.
Close account page opened
✅
Test 1.3: Type any reason in the first boxThe field held "Testing account closure flow".
✅
Test 1.4: Type the account's email in the second boxThe field held the signed-in account's email.
Close account form filled with reason and email
✅
Test 1.5: Tap Close account; the "Yes, continue" popup appearsThe popup appeared with "Yes, continue" and "Cancel". I tapped Cancel, and the account stayed open.
Close account confirmation popup with Yes, continue and Cancel
✅
Test 1.6: Enter the security code on "Let's make sure it's you"Not run. This needs a magic code from email and would close the test account.
⚠️
Test 1.7: Sign-in page shows "Account closed successfully"Not run. It depends on step 6.
⚠️
Test 1.8–1.10: Sign back in; signed in right after entering the code, with no errorNot run. This needs a closed account and a new magic code.
⚠️
Test 2.2–2.3: A wrong code shows an error and stays on the screenNot run. Reaching that screen requires tapping "Yes, continue", which the tester treats as unsafe.
⚠️
Test 2.4: Go back; still signed in and the app worksNot run. It depends on Test 2.2.
⚠️
Test 2.5–2.6: Force close and reopen; still signed inNot run. It depends on Test 2.2, and a force close can drop the test session.
⚠️
Test 3.2–3.3: After closing the account, reopen the app; the sign-in page opensNot run. This needs a closed account.
⚠️
Test 3.4–3.5: Sign in again with the same email and codeNot run. This needs a closed account and a magic code.
⚠️
Test 4.2–4.3: Sign in as account B; Account page shows B's emailNot run. The tester has only one account.
⚠️
Test 4.4–4.5: Switch to Expensify Classic shows only B's dataNot run. It depends on account B, and the emulator has no HybridApp build.
⚠️
Test 5.2–5.3: Sign out opens the sign-in pageNot run. Signing out ends the test session.
⚠️
Test 5.4–5.5: Sign back in with the same email and codeNot run. This needs a magic code from email.
⚠️
Test 6.2–6.3: Switch to another account as a copilot without signing outNot run. The test account has no copilot access to another account.
⚠️
Test 6.4–6.6: Switch back, force close and reopen; still signed inNot run. It depends on Test 6.2.
⚠️
No JS errors during the flowNo red boxes or error dialogs appeared, and the app stayed responsive after Cancel.
✅

view run · view recording

@TaduJR

TaduJR commented Nov 1, 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 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/Videos

Android: HybridApp
Android: mWeb Chrome
iOS: HybridApp
iOS: mWeb Safari
MacOS: Chrome / Safari
Android-Native.mp4

@TaduJR

This comment was marked as resolved.

@MelvinBot

Copy link
Copy Markdown
Contributor Author

I updated the PR description. There are no code changes.

  • Test 4: The note above the steps now uses your new text. It says to check for Switch to Expensify Classic before closing account A, and gives the Account > Troubleshoot option for dev builds.
  • Test 6: Steps 2 and 4 now use the Switch button.
  • Offline tests: "Same as tests" now reads "These steps need a connection, because they use emailed codes and server responses."

QA Steps still says "Same as tests".


view run

@TaduJR

TaduJR commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot

Please make the PR ready for review

@MelvinBot
MelvinBot marked this pull request as ready for review November 1, 2026 14:45
@MelvinBot
MelvinBot requested a review from a team as a code owner November 1, 2026 14:45
@MelvinBot

Copy link
Copy Markdown
Contributor Author

I marked this PR as ready for review.


view run

@melvin-bot
melvin-bot Bot requested review from TaduJR and removed request for a team November 1, 2026 14:45
@melvin-bot

melvin-bot Bot commented Nov 1, 2026

Copy link
Copy Markdown

@TaduJR 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 dylanexpensify and removed request for a team November 1, 2026 14:46

@TaduJR TaduJR 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.

LGTM!

@melvin-bot
melvin-bot Bot requested a review from mollfpr November 1, 2026 15:01

@mollfpr mollfpr 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.

LGTM!

@mollfpr
mollfpr merged commit d3ff808 into main Nov 2, 2026
55 of 57 checks passed
@mollfpr
mollfpr deleted the claude-resetHybridAppSignInAfterCloseAccount branch November 2, 2026 04:03
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

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

@OSBotify

OSBotify commented Nov 2, 2026

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

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

@OSBotify OSBotify mentioned this pull request Nov 2, 2026
75 tasks done
@OSBotify

OSBotify commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/mollfpr in version: 9.5.28-4 🚀

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

@MelvinBot

Copy link
Copy Markdown
Contributor Author

No help site update needed. This PR fixes a mobile bug where you couldn't sign back in after closing your account, so the app now works the way users already expect and no article sentence becomes incorrect.


view run

@jponikarchuk

Copy link
Copy Markdown

Deploy Blocker #105679 was identified to be related to this PR.

@OSBotify

OSBotify commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/mollfpr in version: 9.5.30-0 🚀

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

@OSBotify

OSBotify commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/blimpich in version: 9.5.30-0 🚀

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

Bundle Size Analysis (Sentry):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Melvin-Test-Android Melvin-Test-Web Triggers Melvin to run the testing steps of the PR on web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants