Skip to content

[Payment due 2026-03-13] Payment issue for E/App PR#83103 #83104

Closed

Description

@melvin-bot

Issue created to compensate the Contributor+ member for their work on #83103
E/E issue linked to the PR - https://www.github.com/Expensify/Expensify/issues/601056.
Contributor+ member who reviewed the PR - @situchan.

Wait 7 days after the PR is deployed to production before issuing payment in case there are regressions.

Activity

  1. added
    Internal
    Weekly
    Awaiting Payment
    Bug
    on Feb 20, 2026
  2. melvin-bot commented on Feb 20, 2026

    @melvin-bot
    Author

    Triggered auto assignment to @heyjennahay (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. added
    Daily
    and removed
    Weekly
    on Feb 20, 2026
  4. MelvinBot commented on Feb 20, 2026

    @MelvinBot
    Contributor

    🔍 Issue Analysis

    Note: This issue (#83104) is a payment tracking issue for PR Expensify/App#83103. The underlying technical bug is tracked in Expensify/Expensify#601056. Below is the analysis of the technical problem and the proposed fix.

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

    When a user opens an existing expense report and clicks "Add expense" (or "Create expense" from the composer's + menu), the expense confirmation screen still shows a "To:" section displaying the destination participant. This is confusing because the destination is already implicitly determined by the current report — the user intended to add the expense to that report, not submit it elsewhere. Showing the "To:" field introduces potential misrouting risk and unnecessary UI clutter.

    What is the root cause of that problem?

    In MoneyRequestConfirmationList.tsx, the sections useMemo (line ~820-863) always pushes a "To:" section for non-split expense types, regardless of how the expense creation flow was initiated:

    // src/components/MoneyRequestConfirmationList.tsx:844-848
    options.push({
        title: translate('common.to'),
        data: formattedSelectedParticipants,
        sectionIndex: 0,
    });

    The existing isFromGlobalCreateAndCanEditParticipant flag (derived from transaction?.isFromGlobalCreate at line ~331) only controls whether the participant rows are interactive (clickable with a navigation caret) — it does not control whether the "To:" section is visible.

    The flow works as follows:

    1. From within a report: AttachmentPickerWithMenuItems.tsx:232 or MoneyReportHeader.tsx:1624 calls startMoneyRequest(iouType, report.reportID) with the actual report's ID. Since this ID maps to an existing report in Onyx, isFromGlobalCreate is set to false in IOURequestStartPage.tsx:121. The participant is auto-assigned from the report context (via MoneyRequest.ts:331), and the user skips participant selection.
    2. From global FAB: FloatingActionButtonAndPopover.tsx:190,444 generates a random optimistic reportID. Since this ID doesn't exist in Onyx, isFromGlobalCreate is true, and the user goes through participant selection with an editable "To:" section.

    In both cases, the "To:" section is rendered — the only difference is interactivity. There was no mechanism to hide it entirely.

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

    The fix in PR Expensify/App#83103 adds a shouldHideToSection prop to MoneyRequestConfirmationList:

    1. IOURequestStepConfirmation.tsx: Compute shouldHideToSection using isMoneyRequestReport(reportWithDraftFallback). When the report associated with the expense flow is a money request report (type 'expense' or 'iou'), the destination is already known, so the "To:" section should be hidden.

    2. MoneyRequestConfirmationList.tsx: Accept the new shouldHideToSection prop (default false). In the sections useMemo, wrap the "To:" section push in a if (!shouldHideToSection) guard, so the section is completely omitted when the expense is being added to an existing report.

    3. The memo comparison function is also updated to include the new prop.

    What alternative solutions did you explore?

    An alternative would be to reuse the existing isFromGlobalCreate flag to determine visibility. However, isFromGlobalCreate is stored on the transaction draft and depends on whether the route's reportID resolves in Onyx — it controls participant editability, not section visibility. Using isMoneyRequestReport(reportWithDraftFallback) is more semantically correct because it directly answers the question "is the user already inside a money request report?" rather than inferring it from the transaction's creation context.


    Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, or @MelvinBot <your feedback> to refine this analysis.

  5. heyjennahay commented on Feb 24, 2026

    @heyjennahay
    Contributor

    PR not yet deployed, setting payment date for 7 days from now to check again

  6. changed the title [-]Payment issue for E/App PR#83103[/-] [+][Payment maybe due 2026-03-02] Payment issue for E/App PR#83103[/+] on Feb 24, 2026
  7. justinpersaud commented on Feb 24, 2026

    @justinpersaud
    Contributor

    @MelvinBot what caused you to run an issue analysis on this issue which is just a payment issue? #83104 (comment)

  8. 17 remaining items

  9. melvin-bot commented on Mar 9, 2026

    @melvin-bot
    Author

    @heyjennahay, @situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  10. changed the title [-][Payment maybe due 2026-03-13] Payment issue for E/App PR#83103[/-] [+][Payment due 2026-03-13] Payment issue for E/App PR#83103[/+] on Mar 10, 2026
  11. heyjennahay commented on Mar 10, 2026

    @heyjennahay
    Contributor

    Payment not due yet

  12. melvin-bot commented on Mar 13, 2026

    @melvin-bot
    Author

    @heyjennahay, @situchan Whoops! This issue is 2 days overdue. Let's get this updated quick!

  13. heyjennahay commented on Mar 16, 2026

    @heyjennahay
    Contributor

    Hi @situchan I have sent you an Upwork offer. Can you please accept it so I can send your payment?

    https://www.upwork.com/nx/wm/offer/110792358

  14. heyjennahay commented on Mar 18, 2026

    @heyjennahay
    Contributor

    Hi @situchan gentle bump on ^^

  15. heyjennahay commented on Mar 24, 2026

    @heyjennahay
    Contributor

    Payment summary:

    @situchan paid $250 via Upwork + contract closed.

    Thanks for your work!

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyInternalTask

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions