Skip to content

[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

Closed

Description

@jponikarchuk

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,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:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Send the message.
  4. Resize screen to narrow (skip this step on narrow screen such as mweb and native apps).
  5. 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.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Video.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @hungvu193

Activity

  1. added
    DeployBlockerCash
    Bug
    on May 13, 2026
  2. melvin-bot commented on May 13, 2026

    @melvin-bot

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

  3. melvin-bot commented on May 13, 2026

    @melvin-bot

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

  4. github-actions commented on May 13, 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.
  5. OSBotify commented on May 13, 2026

    @OSBotify
    Contributor

    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: 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.
    • PR New editing mechanism for small screens #76741 is explicitly listed in the StagingDeployCash checklist (Deploy Checklist: New Expensify 2026-05-13 #90410) for this version.
    • 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).

    Verification

    Affected files confirmed modified by PR #76741:

    • 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:

    const isEditingInComposer = shouldUseNarrowLayout && editingState !== 'off' && !didResetComposerHeight;
    

    This means:

    1. 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.
    2. 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.

  6. MelvinBot commented on May 13, 2026

    @MelvinBot
    Contributor

    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, 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.

  7. 12 remaining items

  8. 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
  9. melvin-bot commented on May 13, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  10. melvin-bot commented on May 13, 2026

    @melvin-bot

    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:

    • @hungvu193 requires payment through NewDot Manual Requests
    • @chrispader does not require payment (Contractor)
  11. melvin-bot commented on May 13, 2026

    @melvin-bot

    @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]

  12. 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
  13. melvin-bot commented on May 15, 2026

    @melvin-bot

    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:

    • @hungvu193 requires payment through NewDot Manual Requests
    • @chrispader does not require payment (Contractor)
  14. melvin-bot commented on May 15, 2026

    @melvin-bot

    @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]

  15. melvin-bot commented on May 15, 2026

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    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.

  16. lanitochka17 commented on May 15, 2026

    @lanitochka17

    Deploy Blocker ##90841 was identified to be related to the PR ##90516 that attempted to fix this issue.

  17. melvin-bot commented on May 15, 2026

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    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.

  18. melvin-bot commented on May 16, 2026

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    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.

  19. melvin-bot commented on May 16, 2026

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    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.

  20. jponikarchuk commented on May 16, 2026

    @jponikarchuk
    Author

    Deploy Blocker #90889 was identified to be related to the PR #90516 that attempted to fix this issue.

  21. melvin-bot commented on May 16, 2026

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    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.

  22. lanitochka17 commented on May 16, 2026

    @lanitochka17

    Deploy Blocker ##90891 was identified to be related to the PR ##90516 that attempted to fix this issue

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

Metadata

Metadata

Labels

BugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions