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-01-29] [$250] Change Approver dialog - make options explicit & skip when single option #77306
What changes do you think we should make in order to solve the problem?
We can create a new translation key like iou.changeApprover.header and then update the header to use the new text format
header: ({workflowSettingLink}: WorkflowSettingsParam)=>`Choose an option to change the approver for this report. (Update your <a href="${workflowSettingLink}">workspace settings</a> to change this permanently for all reports.)`,
Initialize selectedApproverType with the first option
// Auto-select first option if none selecteduseEffect(()=>{if(selectedApproverType===undefined&&approverTypes.length>0){setSelectedApproverType(approverTypes[0].keyForListasApproverType);}},[approverTypes,selectedApproverType]);// Skip dialog if only one optionuseEffect(()=>{if(!isLoadingReportData&&!hasAutoAppliedRef.current&&approverTypes.length===1&&selectedApproverType===approverTypes[0].keyForList){hasAutoAppliedRef.current=true;changeApprover();}},[approverTypes,selectedApproverType,changeApprover,isLoadingReportData]);
After adding an approver, Navigation.dismissModal was called synchronously, which meant the report update from addReportApprover would cause ReportChangeApproverPage to re-render and trigger the auto-apply logic before the modal was dismissed. We can wrap Navigation.dismissModal in requestAnimationFrame or Navigation.setNavigationActionToMicrotaskQueue to prevent the skip dialog / auto-apply from retriggering
changed the title [-]Change Approver dialog - make options explicit & skip when single option[/-][+][HOLD] Change Approver dialog - make options explicit & skip when single option[/+]on Dec 11, 2025
changed the title [-][HOLD] Change Approver dialog - make options explicit & skip when single option[/-][+]Change Approver dialog - make options explicit & skip when single option[/+]on Dec 29, 2025
Issue is ready for payment but no BZ is assigned. @kadiealexander you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!
[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: No discussion was created
[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.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
The member has submitted an expense in the workspace
Test:
As the owner, open the expense created by the member
Click More -> Change approver
Verify that the Change approver dialog is skipped and the user is redirected to the Add approver screen
Choose one member as the approver and click Save
Click More -> Change approver
Verify that the Change approver dialog is not skipped because there are two options
Verify that the first option is selected by default
Verify that the header reads as Choose an option to change the approver for this report. (Update your workspace settings to change this permanently for all reports.)
Activity
melvin-bot commentedon Dec 11, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (
External)nyomanjyotisa commentedon Dec 11, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-12-11 01:09:15 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Change Approver dialog - make options explicit & skip when single option
What is the root cause of that problem?
The header is built from separate subtitle and description translations
App/src/pages/ReportChangeApproverPage.tsx
Lines 114 to 124 in 6db192d
And the
selectedApproverTypestate is initialized asundefined, so no option is preselectedApp/src/pages/ReportChangeApproverPage.tsx
Line 48 in 6db192d
What changes do you think we should make in order to solve the problem?
iou.changeApprover.headerand then update the header to use the new text formatApp/src/pages/ReportChangeApproverPage.tsx
Lines 114 to 124 in 6db192d
selectedApproverTypewith the first optionApp/src/pages/ReportChangeApproverPage.tsx
Line 101 in 6db192d
initiallyFocusedItemKey={selectedApproverType}to theSelectionListas well to make the preselected item highlightedApp/src/pages/ReportChangeApproverPage.tsx
Line 140 in 6db192d
Navigation.dismissModalwas called synchronously, which meant the report update fromaddReportApproverwould causeReportChangeApproverPageto re-render and trigger the auto-apply logic before the modal was dismissed. We can wrapNavigation.dismissModalinrequestAnimationFrameorNavigation.setNavigationActionToMicrotaskQueueto prevent the skip dialog / auto-apply from retriggeringApp/src/pages/ReportAddApproverPage.tsx
Line 103 in 6db192d
What alternative solutions did you explore? (Optional)
None
[-]Change Approver dialog - make options explicit & skip when single option[/-][+][HOLD] Change Approver dialog - make options explicit & skip when single option[/+]marcaaron commentedon Dec 11, 2025
Putting a hold on this while we continue to discuss.
[-][HOLD] Change Approver dialog - make options explicit & skip when single option[/-][+]Change Approver dialog - make options explicit & skip when single option[/+]31 remaining items
melvin-bot commentedon Jan 29, 2026
Issue is ready for payment but no BZ is assigned. @kadiealexander you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!
kadiealexander commentedon Feb 3, 2026
Payment Summary
@alitoshmatov please complete the checklist!
kadiealexander commentedon Feb 4, 2026
@alitoshmatov bump on this!
kadiealexander commentedon Feb 9, 2026
Bumped @alitoshmatov in Slack here.
alitoshmatov commentedon Feb 13, 2026
BugZero Checklist:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: This was not a bug, more like change of original behavior which was introduced in [Change Approver] Add support to bypass approver on an expense report #66899
[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: No discussion was created
[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.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: https://github.com/Expensify/Expensify/issues/600042
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
Zapier Logs
Run ID: 00040eee-75b6-acb2-4392-f501f25557f4kadiealexander commentedon Feb 13, 2026
Payment summary here.
JmillsExpensify commentedon Feb 21, 2026
$250 approved for @alitoshmatov