Skip to content

[Due for payment 2026-07-08] [$250] Expense-Clicking outside RHP does not close expense creation RHP when recipient list is opened #94246

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.4.17-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #94134
Email or phone of affected tester (no customers): joisjdnosjdoijso@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.5 / Chrome
App Component: Money Requests

Action Performed:

  1. Go to staging.new.expensify.com
  2. Open FAB > Create expense > Manual.
  3. Click To field.
  4. Click outside RHP.

Expected Result:

Expense creation RHP will close.

Actual Result:

Expense creation RHP does not close. Only the participant list closes.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7188071_1782170668940.3.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Mita Rachim
Bug ID: 7188071

Issue OwnerCurrent Issue Owner: @mallenexpensify
Upwork Automation - Do Not Edit

Activity

  1. applause-bot commented on Jun 23, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/3aee50d96eb649e23298b7907e9c4f0ed3f3b19d44e8afaeb176d58023d07e24

  2. added
    DeployBlockerCash
    Bug
    on Jun 23, 2026
  3. melvin-bot commented on Jun 23, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #94134

  4. melvin-bot commented on Jun 23, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. github-actions commented on Jun 23, 2026

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  6. MelvinBot commented on Jun 23, 2026

    @MelvinBot
    Contributor

    Proposal

    Posted by MelvinBot 🤖 — Root cause confidence: High (code-traced). Regression from Expensify/App#94134.

    What is the root cause of that problem?

    The new manual expense flow (shipped by #94134, which removed the newManualExpenseFlow beta) embeds the confirmation form directly inside the expense‑creation RHP. The To field no longer navigates to a participants page inside that same RHP — it now opens the recipient list as a separate RIGHT_DOCKED Modal stacked on top of the RHP.

    Clicking outside the panel hits the picker modal's backdrop, which fires onClose={closeParticipantPicker}. That handler only flips local visibility state — it never dismisses the underlying navigation RHP:

    So clicking outside closes only the top modal (the participant list) and leaves the expense RHP open. This is consistent with the report: not reproducible in production (the old navigation‑based flow lived in the same RHP stack, so one outside‑click dismissed the whole panel) but reproducible in staging where the new flow is now on for everyone.

    Why production behaved differently

    Before #94134, the "To" tap called Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_PARTICIPANTS…) — the participants step was another screen in the same RHP navigator, so the RHP backdrop dismissed everything. The diff replaced that Navigation.navigate(...) with onOpenParticipantPicker?.() and removed the isNewManualExpenseFlowEnabled && guard that previously gated the stacked ParticipantPicker modal (see the MoneyRequestConfirmationList.tsx and IOURequestStepConfirmation.tsx hunks in the PR diff).

    What changes do you think we should make in order to solve the problem?

    Make an outside/backdrop click on the picker dismiss the entire expense RHP, not just the picker layer. Two viable directions:

    1. Distinguish backdrop dismiss from the back button. Keep the back button (onBackButtonPress) returning to the confirmation form, but on backdrop press also dismiss the parent RHP (e.g. call Navigation.dismissModal() / the RHP close in addition to closeParticipantPicker). The Modal component exposes separate backdrop vs. back-button handlers, so these can be wired independently in ParticipantPicker.tsx.
    2. Don't stack a second modal. Render the recipient list as a screen swap within the existing RHP (closer to the pre‑feat: remove isNewManualExpenseFlowEnabled beta flag #94134 navigation model) instead of a separate RIGHT_DOCKED Modal, so there is only one dismissable layer.

    Option 1 is the smaller, lower‑risk change for a deploy blocker; option 2 is the more architecturally consistent fix. This is a UX decision for the team — confirm whether an outside click on the open recipient list should close the whole flow or just the list.

    What alternative solutions did you explore? (Optional)

    Considered leaving the stacked behavior as-is (clicking outside closes only the list). Rejected — it contradicts the reported expected behavior and standard RHP dismissal, and was flagged as a significant UX deterioration.


    Next Steps for Contributor+ team:
    To accept: @MelvinBot implement [this](https://github.com/Expensify/App/issues/94246) to create a draft PR.
    To refine: @MelvinBot <your feedback>
    To reject: Explain why you are rejecting Melvin's proposal.

  7. m-natarajan commented on Jun 23, 2026

    @m-natarajan

    Chrome / v9.4.17-1, Not repro

    REC-20260623175559.mp4
  8. removed
    DeployBlockerCash
    on Jun 23, 2026
  9. 27 remaining items

  10. changed the title [-][$250] [Due for payment 2026-07-01] [Due for payment 2026-06-30] Expense-Clicking outside RHP does not close expense creation RHP when recipient list is opened[/-] [+][Due for payment 2026-07-08] [$250] Expense-Clicking outside RHP does not close expense creation RHP when recipient list is opened[/+] on Jul 1, 2026
  11. melvin-bot commented on Jul 1, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  12. melvin-bot commented on Jul 1, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.25-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-07-08. 🎊

    For reference, here are some details about the assignees on this issue:

  13. melvin-bot commented on Jul 1, 2026

    @melvin-bot

    @thelullabyy The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]

  14. melvin-bot commented on Jul 6, 2026

    @melvin-bot

    @thelullabyy Huh... This is 4 days overdue. Who can take care of this?

  15. added
    Awaiting Payment
    on Jul 7, 2026
  16. melvin-bot commented on Jul 7, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  17. thelullabyy commented on Jul 9, 2026

    @thelullabyy
    Contributor

    BugZero Checklist:

    • [Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

      Link to the comment on the PR: NA
      Link to the comment on the Issue:

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

      Link to discussion:

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    Test:

    Requires the new manual expense flow

    1. Go to FAB > Create expense > Manual.
    2. Open the confirmation page and click the To field to open the recipient list.
    3. Click outside the panel (on the dimmed backdrop area).
    4. Verify the entire expense-creation RHP closes (not just the recipient list).
    5. Re-open the recipient list and instead press the back arrow in the header — verify it returns to the confirmation form (does not close the whole RHP).
    6. Verify that no errors appear in the JS console.

    Do we agree 👍 or 👎

    Zapier Logs Run ID: 00040eee-885c-ada6-aa3f-af3adbb5bc14
  18. mallenexpensify commented on Jul 9, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @thelullabyy due $250 via NewDot

    Seeing a lot of these where @thelullabyy is the only one due payment and regressions aren't applicable. @puneetlath update, if needed

    ^ Test case created. Thx

  19. laurenreidexpensify commented on Aug 12, 2026

    @laurenreidexpensify
    Contributor

    $250 approved for @thelullabyy

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions