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-05-22] [Due for payment 2026-05-20] Chat - Send button is shown on the composer instead of Save changes #90431
Version Number: 9,3.73-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:#76741 Email or phone of affected tester (no customers):sdiosjdnjdsoidjiosj@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.2 / Chrome App Component: Chat Report View
Action Performed:
Go to staging.new.expensify.com
Go to workspace chat.
Send the message.
Resize screen to narrow (skip this step on narrow screen such as mweb and native apps).
Right click on the message > Edit message.
Expected Result:
Save changes button will be shown on the edit composer.
Actual Result:
Send button is shown on the composer instead of Save changes.
👋 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.
Classification: Frontend bug Causing PR: #76741 - "Adapt message editing behavior based on screen size" by @Kureev (High confidence) Related Issues: None
Recommendation: REVERT
PR #76741 directly introduced the broken behavior where the Send button is shown instead of Save changes when editing a message on a narrow/resized layout. The fix requires reverting or patching the App PR.
Assigned: @Kureev (PR author), @hungvu193@adhorodyski@mountiny (approving reviewers) Labels: DeployBlockerCash kept (frontend bug in App). DeployBlocker is not present and was not changed.
Detailed Analysis
Evidence
The issue is only reproducible on staging (version 9.3.73-0), not on production, confirming it was introduced in this staging cycle.
The melvin-bot auto-assigned based on this exact PR.
The PR's stated goal is to "adapt message editing behavior based on screen size" — directly matching the affected area (chat message edit composer behavior).
src/pages/inbox/report/ReportActionCompose/ComposerSendButton.tsx — the button that should switch between Send and Save changes
src/pages/inbox/report/ReportActionCompose/ComposerProvider.tsx — where isEditingInComposer is computed
src/pages/inbox/report/ReportActionCompose/ComposerContext.ts — where ComposerEditState and isEditingInComposer are typed and exposed
Root Cause
In the new ComposerSendButton.tsx, isEditingInComposer from useComposerEditState() is used to set the accessibility label to "Save changes", but the visible SubmitDraftButton is always rendered with label={translate('common.send')} regardless of edit state. The isEditingInComposer flag only affects the invisible accessibility label, not the visible button text/icon that users see.
Additionally, isEditingInComposer in ComposerProvider.tsx is computed as:
On a wide screen layout where the user right-clicks to edit, shouldUseNarrowLayout is false, so isEditingInComposer is false — the composer stays in Send mode rather than Save changes mode.
Even on narrow screen (after resizing), the Save changes label is only applied to the accessibility label but the visible button label always says "Send".
The fix is in the App — either revert the PR or patch ComposerSendButton.tsx to pass the correct label to SubmitDraftButton when isEditingInComposer is true, and ensure ComposerEditingButtons is shown on wide-screen edits as well.
PR #76741 introduced a new editing mechanism for small screens where editing happens in the main composer instead of inline. On narrow screens, ComposerSendButton always renders with the Send icon and "Send" label — it never switches to Checkmark / "Save changes" when the composer enters edit mode.
The component already reads isEditingInComposer (line 18) and uses it for the accessibility label (line 32), but the visual icon and label props on the SubmitDraftButton are hardcoded.
On wide screens this isn't visible because editing is inline via ReportActionItemMessageEdit, which has its own button with Checkmark icon and "Save changes" label.
What changes do you think we should make in order to solve the problem?
In ComposerSendButton.tsx, add Checkmark to the lazy icon import, then conditionally switch icon and label based on isEditingInComposer:
icon: use Checkmark when editing, Send otherwise
label: use translate('common.saveChanges') when editing, translate('common.send') otherwise
This mirrors what ReportActionItemMessageEdit already does for the wide-screen edit flow.
What alternative solutions did you explore? (Optional)
Considered hiding ComposerSendButton entirely during editing and rendering a separate save button inside ComposerEditingButtons, but that would duplicate submit logic and break the existing gesture handling. The conditional swap is simpler and consistent with how the accessibility label already works.
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.
changed the title [-]Chat - Send button is shown on the composer instead of Save changes[/-][+][Due for payment 2026-05-20] Chat - Send button is shown on the composer instead of Save changes[/+]on May 13, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.73-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@hungvu193 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]
changed the title [-][Due for payment 2026-05-20] Chat - Send button is shown on the composer instead of Save changes[/-][+][Due for payment 2026-05-22] [Due for payment 2026-05-20] Chat - Send button is shown on the composer instead of Save changes[/+]on May 15, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.74-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@hungvu193 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]
Activity
melvin-bot commentedon May 13, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #76741
melvin-bot commentedon May 13, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon May 13, 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 13, 2026
Investigation Summary
Classification: Frontend bug
Causing PR: #76741 - "Adapt message editing behavior based on screen size" by @Kureev (High confidence)
Related Issues: None
Recommendation: REVERT
PR #76741 directly introduced the broken behavior where the Send button is shown instead of Save changes when editing a message on a narrow/resized layout. The fix requires reverting or patching the App PR.
Assigned: @Kureev (PR author), @hungvu193 @adhorodyski @mountiny (approving reviewers)
Labels:
DeployBlockerCashkept (frontend bug in App).DeployBlockeris not present and was not changed.Detailed Analysis
Evidence
9.3.73-0), not on production, confirming it was introduced in this staging cycle.Verification
Affected files confirmed modified by PR #76741:
src/pages/inbox/report/ReportActionCompose/ComposerSendButton.tsx— the button that should switch between Send and Save changessrc/pages/inbox/report/ReportActionCompose/ComposerProvider.tsx— whereisEditingInComposeris computedsrc/pages/inbox/report/ReportActionCompose/ComposerContext.ts— whereComposerEditStateandisEditingInComposerare typed and exposedRoot Cause
In the new
ComposerSendButton.tsx,isEditingInComposerfromuseComposerEditState()is used to set the accessibility label to "Save changes", but the visibleSubmitDraftButtonis always rendered withlabel={translate('common.send')}regardless of edit state. TheisEditingInComposerflag only affects the invisible accessibility label, not the visible button text/icon that users see.Additionally,
isEditingInComposerinComposerProvider.tsxis computed as:This means:
shouldUseNarrowLayoutis false, soisEditingInComposeris false — the composer stays in Send mode rather than Save changes mode.The fix is in the App — either revert the PR or patch
ComposerSendButton.tsxto pass the correct label toSubmitDraftButtonwhenisEditingInComposeris true, and ensureComposerEditingButtonsis shown on wide-screen edits as well.MelvinBot commentedon May 13, 2026
Proposal
What is the root cause of that problem?
PR #76741 introduced a new editing mechanism for small screens where editing happens in the main composer instead of inline. On narrow screens,
ComposerSendButtonalways renders with theSendicon and"Send"label — it never switches toCheckmark/"Save changes"when the composer enters edit mode.The component already reads
isEditingInComposer(line 18) and uses it for the accessibility label (line 32), but the visualiconandlabelprops on theSubmitDraftButtonare hardcoded.On wide screens this isn't visible because editing is inline via
ReportActionItemMessageEdit, which has its own button withCheckmarkicon and"Save changes"label.What changes do you think we should make in order to solve the problem?
In
ComposerSendButton.tsx, addCheckmarkto the lazy icon import, then conditionally switchiconandlabelbased onisEditingInComposer:icon: useCheckmarkwhen editing,Sendotherwiselabel: usetranslate('common.saveChanges')when editing,translate('common.send')otherwiseThis mirrors what
ReportActionItemMessageEditalready does for the wide-screen edit flow.What alternative solutions did you explore? (Optional)
Considered hiding
ComposerSendButtonentirely during editing and rendering a separate save button insideComposerEditingButtons, but that would duplicate submit logic and break the existing gesture handling. The conditional swap is simpler and consistent with how the accessibility label already works.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.12 remaining items
[-]Chat - Send button is shown on the composer instead of Save changes[/-][+][Due for payment 2026-05-20] Chat - Send button is shown on the composer instead of Save changes[/+]melvin-bot commentedon May 13, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon May 13, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.73-4 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-05-20. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon May 13, 2026
@hungvu193 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]
[-][Due for payment 2026-05-20] Chat - Send button is shown on the composer instead of Save changes[/-][+][Due for payment 2026-05-22] [Due for payment 2026-05-20] Chat - Send button is shown on the composer instead of Save changes[/+]melvin-bot commentedon May 15, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.74-7 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-05-22. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon May 15, 2026
@hungvu193 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]
melvin-bot commentedon May 15, 2026
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
lanitochka17 commentedon May 15, 2026
Deploy Blocker ##90841 was identified to be related to the PR ##90516 that attempted to fix this issue.
melvin-bot commentedon May 15, 2026
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
melvin-bot commentedon May 16, 2026
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
melvin-bot commentedon May 16, 2026
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
jponikarchuk commentedon May 16, 2026
Deploy Blocker #90889 was identified to be related to the PR #90516 that attempted to fix this issue.
melvin-bot commentedon May 16, 2026
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
lanitochka17 commentedon May 16, 2026
Deploy Blocker ##90891 was identified to be related to the PR ##90516 that attempted to fix this issue