You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-06-08] Self DM in To field does not show (You) on confirm page when creating expense from FAB #90668
Version Number: 9.3.74-0 Reproducible in staging?: Yes Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught during regression testing, add the test name, ID and link from BrowserStack:#87920 Email or phone of affected tester (no customers):sdsdjoijdoisnjodis@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.2 / Chrome App Component: Money Requests
Action Performed:
Precondition:
Run Onyx.merge('betas', ['newManualExpenseFlow']); in console.
Go to staging.new.expensify.com
Open FAB > Create expense > Manual.
Click To field.
Select self DM.
Expected Result:
Self DM in To field will show (You) on confirm page when creating expense from FAB.
Actual Result:
Self DM in To field does not show (You) on confirm page when creating expense from FAB.
👋 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:
Identify the pull request that introduced this issue and revert it.
PR #87920 introduced the new manual expense flow UI (behind the newManualExpenseFlow beta) and the bug is isolated to that new code path. The causing PR is large but clearly the sole source of this regression on staging, and reverting it would immediately resolve the issue without affecting production users.
Assigned: @ChavdaSachin (PR author), @ShridharGoel@puneetlath (approving reviewers) Labels: No label changes made — DeployBlockerCash is correct (this is an App/frontend regression).
The bug is staging-only and not reproducible in production because the newManualExpenseFlow is a new, beta-only feature that does not exist in production.
In the new manual expense flow, when a user selects a self-DM as the "To" participant via the new inline ParticipantPicker, the participant is committed to Onyx through a new callback chain:
The participantsList originates from ParticipantSearchResults.addSingleParticipant → sanitizedSelectedParticipant(option, iouType), which picks text from the raw option.
In useConfirmationSections.ts, the confirmation list renders the participant row by spreading ...participant directly. The text field used for display comes from the participant option computed through getReportOption → createOption → getReportName. While the derived reportName for a self-DM report (computed by computeReportName) includes "(You)" via shouldAddCurrentUserPostfix: true, the self-DM selection flow in the new embedded ParticipantPicker does not close the picker and navigate back the same way the old step-based navigator flow did.
In the old flow (navigating to IOURequestStepParticipants), useParticipantSubmission.addParticipant intercepted the self-DM selection at line 209 (if (firstParticipant?.isSelfDM && !isSplitRequest)) and called trackExpense(), which drove a full navigation event and re-initialization of participants via setMoneyRequestParticipantsFromReport. The new flow bypasses this logic entirely, resulting in the confirm page rendering the participant display name without the "(You)" postfix.
PR #87920 introduced a new ParticipantPicker flow for selecting expense recipients from the FAB. When a user selects the self-DM from this picker, sanitizedSelectedParticipant copies the user's real accountID (non-zero) from the search option data.
Falsy (0) → calls getReportOption → getReportName → getDisplayNameForParticipant({shouldAddCurrentUserPostfix: true}), which does add "(You)"
Previously, getMoneyRequestParticipantsFromReport always set accountID: 0 for self-DM participants, so the getReportOption path was always taken. The new picker stores a real accountID, switching to the wrong code path.
What changes do you think we should make in order to solve the problem?
In getParticipantsOption, when the participant has isSelfDM: true, pass shouldAddCurrentUserPostfix: true to getDisplayNameOrDefault so the "(You)" suffix is appended to the display name.
What alternative solutions did you explore? (Optional)
Route self-DM through getReportOption: Change the branch in IOURequestStepConfirmation.tsx to check participant.isSelfDM and use getReportOption for self-DM regardless of accountID. This works but couples the routing logic to a special case rather than fixing getParticipantsOption to handle self-DM correctly.
Set accountID: 0 in sanitizedSelectedParticipant for self-DM: Force the old behavior. This is fragile — it papers over the real issue (getParticipantsOption not handling self-DM) and could break other code that expects a real accountID.
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
Activity
melvin-bot commentedon May 14, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #87920
melvin-bot commentedon May 14, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon May 14, 2026
👋 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:
OSBotify commentedon May 14, 2026
Investigation Summary
Classification: Frontend bug
Causing PR: #87920 - "Feat: Manual expense flow UI refactor - r3" by @ChavdaSachin (High confidence)
Related Issues: None
Recommendation: REVERT
PR #87920 introduced the new manual expense flow UI (behind the
newManualExpenseFlowbeta) and the bug is isolated to that new code path. The causing PR is large but clearly the sole source of this regression on staging, and reverting it would immediately resolve the issue without affecting production users.Assigned: @ChavdaSachin (PR author), @ShridharGoel @puneetlath (approving reviewers)
Labels: No label changes made —
DeployBlockerCashis correct (this is an App/frontend regression).Detailed Analysis
Evidence
Onyx.merge('betas', ['newManualExpenseFlow']), confirming it is exclusive to new code introduced by PR Feat: Manual expense flow UI refactor - r3 #87920.9.3.74-0where the bug first appeared.newManualExpenseFlowis a new, beta-only feature that does not exist in production.Verification
src/pages/iou/request/step/IOURequestStepConfirmation.tsxgh pr view 87920 --json files.src/components/MoneyRequestConfirmationList.tsxsrc/components/MoneyRequestConfirmationList/hooks/useConfirmationSections.tssrc/components/ParticipantPicker.tsx(new file)src/pages/iou/request/IOURequestStartPage.tsxRoot Cause
In the new manual expense flow, when a user selects a self-DM as the "To" participant via the new inline
ParticipantPicker, the participant is committed to Onyx through a new callback chain:handleParticipantsAdded→setMoneyRequestParticipants(activeTransactionID, participantsList)The
participantsListoriginates fromParticipantSearchResults.addSingleParticipant→sanitizedSelectedParticipant(option, iouType), which pickstextfrom the raw option.In
useConfirmationSections.ts, the confirmation list renders the participant row by spreading...participantdirectly. Thetextfield used for display comes from the participant option computed throughgetReportOption→createOption→getReportName. While the derivedreportNamefor a self-DM report (computed bycomputeReportName) includes "(You)" viashouldAddCurrentUserPostfix: true, the self-DM selection flow in the new embeddedParticipantPickerdoes not close the picker and navigate back the same way the old step-based navigator flow did.In the old flow (navigating to
IOURequestStepParticipants),useParticipantSubmission.addParticipantintercepted the self-DM selection at line 209 (if (firstParticipant?.isSelfDM && !isSplitRequest)) and calledtrackExpense(), which drove a full navigation event and re-initialization of participants viasetMoneyRequestParticipantsFromReport. The new flow bypasses this logic entirely, resulting in the confirm page rendering the participant display name without the "(You)" postfix.MelvinBot commentedon May 14, 2026
Proposal
What is the root cause of that problem?
PR #87920 introduced a new
ParticipantPickerflow for selecting expense recipients from the FAB. When a user selects the self-DM from this picker,sanitizedSelectedParticipantcopies the user's realaccountID(non-zero) from the search option data.On the confirmation page,
IOURequestStepConfirmation.tsx:254branches onparticipant.accountIDtruthiness:getParticipantsOption, which does not add the "(You)" suffixgetReportOption→getReportName→getDisplayNameForParticipant({shouldAddCurrentUserPostfix: true}), which does add "(You)"Previously,
getMoneyRequestParticipantsFromReportalways setaccountID: 0for self-DM participants, so thegetReportOptionpath was always taken. The new picker stores a real accountID, switching to the wrong code path.What changes do you think we should make in order to solve the problem?
In
getParticipantsOption, when the participant hasisSelfDM: true, passshouldAddCurrentUserPostfix: truetogetDisplayNameOrDefaultso the "(You)" suffix is appended to the display name.What alternative solutions did you explore? (Optional)
getReportOption: Change the branch inIOURequestStepConfirmation.tsxto checkparticipant.isSelfDMand usegetReportOptionfor self-DM regardless of accountID. This works but couples the routing logic to a special case rather than fixinggetParticipantsOptionto handle self-DM correctly.accountID: 0insanitizedSelectedParticipantfor self-DM: Force the old behavior. This is fragile — it papers over the real issue (getParticipantsOptionnot handling self-DM) and could break other code that expects a real accountID.Related issues
Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.ChavdaSachin commentedon May 14, 2026
NAB: only happens on beta accounts
puneetlath commentedon May 14, 2026
Demoting.
21 remaining items
dukenv0307 commentedon Jun 2, 2026
Not overdue, @ChavdaSachin will do the checklist
ChavdaSachin commentedon Jun 3, 2026
This was a regression from my own PR - #91004
I am not due payment here.
My payment would be handled at #82586 at the end
dukenv0307 commentedon Jun 5, 2026
@JS00001 Could you please reopen the issue to process my payment?
melvin-bot commentedon Jun 8, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon Jun 8, 2026
Payment Summary
Upwork Job
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon Jun 8, 2026
Payment Summary
Contributor+: @dukenv0307 due $250 via NewDot
quinthar commentedon Jun 13, 2026
Approved $250 to @dukenv0307