Skip to content

[Due for payment 2026-07-08] [$250] Expense - Referral RHP only opens after returning from participant list #94234

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): sdjnoisdjdosijsonssjo@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 on the referral banner at the bottom.
  5. Click RHP back button.

Expected Result:

In Step 4, referral RHP will open.

Actual Result:

In Step 4, referral RHP does not open.
In Step 5, referral RHP only opens after returning from participant list.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7188069_1782170667356.1.mp4

View all open jobs on GitHub

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

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

Activity

  1. added
    DeployBlockerCash
    Bug
    on Jun 22, 2026
  2. applause-bot commented on Jun 22, 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/064e271bd9961e34d59e857ef125ecaeadc520fb16d4542257d9ba5ee586aa9a

  3. melvin-bot commented on Jun 22, 2026

    @melvin-bot

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

  4. melvin-bot commented on Jun 22, 2026

    @melvin-bot

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

  5. github-actions commented on Jun 22, 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 22, 2026

    @MelvinBot
    Contributor

    Proposal

    🤖 Generated by MelvinBot — Confidence: High (code-verified, deterministic client-side navigation issue)

    Please re-state the problem that we are trying to solve in this issue.

    In the manual expense flow, opening the To participant selector and clicking the referral banner at the bottom does nothing on the first click. The referral RHP only becomes visible after backing out of the participant list. Introduced by #94134, which removed the isNewManualExpenseFlowEnabled beta and made the new manual flow the default.

    What is the root cause of that problem?

    In the new flow, the To selector is no longer a navigation screen — it's a JS RIGHT_DOCKED Modal (ParticipantPicker) whose visibility is driven by local React state in IOURequestStepConfirmation, layered on top of the confirmation RHP.

    When the referral banner is pressed, ReferralProgramCTA calls Navigation.navigate(...) which correctly swaps the underlying RHP to the referral panel. But nothing sets the picker modal's isVisible to false, so the still-mounted ParticipantPicker overlay covers the freshly-presented referral RHP — the user sees "nothing happened." Tapping the back button closes the picker overlay, revealing the referral RHP that was already underneath it the whole time. This exactly matches the reported "only opens after returning from participant list."

    By contrast, NewChatPage uses the same ReferralProgramCTA and works, because there the participant selector is a top-level RHP screen, so navigating to the referral RHP replaces it on the same modal stack with nothing layered on top.

    Code evidence

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

    Close the participant picker overlay as part of the referral banner press, so the referral RHP is no longer covered.

    1. Give ReferralProgramCTA an optional onBeforeNavigate?: () => void (or onPress) prop and call it just before Navigation.navigate(...) in ReferralProgramCTA.tsx:58-60.
    2. Thread closeParticipantPicker (already defined at IOURequestStepConfirmation.tsx:296-302) down through the selector → ParticipantSelectorFooter → ReferralProgramCTA and pass it as onBeforeNavigate.

    NewChatPage and other callers simply don't pass the prop, so their behavior is unchanged.

    Alternatives considered
    • Auto-dismiss the picker on route change — add a navigation listener / useEffect in ParticipantPicker that calls onClose when the active route is no longer the create/confirmation route. More robust (covers any forward navigation from the overlay) but broader-reaching; riskier as a deploy-blocker fix.
    • Revert PR feat: remove isNewManualExpenseFlowEnabled beta flag #94134 — clears the blocker immediately if a clean forward fix can't land in time, but reverts the whole beta removal.

    Next Steps for Contributor+ team:
    To accept: @MelvinBot implement [this](https://github.com/Expensify/App/issues/94234) 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

    Not repro, Chrome / v9.4.17-1

    Grabando.915.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 - Referral RHP only opens after returning from participant list[/-] [+][Due for payment 2026-07-08] [$250] Expense - Referral RHP only opens after returning from participant list[/+] 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 Eep! 4 days overdue now. Issues have feelings too...

  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. Open FAB > Create expense > Manual.
    2. Click the To field to open the participant selector.
    3. Click the referral banner at the bottom.
    4. Verify the referral RHP opens immediately (on the first click), without needing to back out of the participant list first.

    Do we agree 👍 or 👎

    Zapier Logs Run ID: 00040eee-e8e1-a777-5e6f-5df59aecea64
  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