Skip to content

[HOLD for payment on July 7] Web - Chat - Message not deleted when selecting delete option from the context menu #3767

Closed

Description

@kavimuru

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!

Upwork link: https://www.upwork.com/jobs/~01ea79ee49be020d89


Action Performed:

  1. Open e.cash in Web
  2. Navigate to a conversation
  3. Right click on any own message
  4. Choose Delete Comment option

Expected Result:

The comment is deleted when you click tab "Delete comment"

Actual Result:

The delete function does not work and message not deleted.

Workaround:

Unknown

Platform:

Where is this issue occurring?

Web ✔️
iOS
Android
Desktop App
Mobile Web

Version Number: 1.0.74-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

Bug5128072_Gravar__12.mp4

Expensify/Expensify Issue URL:

View all open jobs on Upwork

Activity

  1. MelvinBot commented on Jun 25, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @NikkiWines (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  2. NikkiWines commented on Jun 25, 2021

    @NikkiWines
    Contributor

    I'm not able to reproduce this on web on 1.0.74-0 - @kavimuru would you mind retesting this to confirm?

    Screen.Recording.2021-06-25.at.4.51.15.PM.mov
  3. isagoico commented on Jun 26, 2021

    @isagoico

    @NikkiWines I thought the same and noticed this is only reproducible when using the right click menu. The hover menu works as expected.

  4. NikkiWines commented on Jun 28, 2021

    @NikkiWines
    Contributor

    @isagoico nice catch! I didn't read those reproduction steps closely enough it seems. Can confirm there is an issue when using the right-click menu

    Screen.Recording.2021-06-28.at.10.37.16.AM.mov

    Adding the External label since this would be a good one for someone from UpWork to work on

  5. added
    Weekly
    Daily
    External
    and removed
    Daily
    on Jun 28, 2021
  6. MelvinBot commented on Jun 28, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @Jag96 (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

  7. 3 remaining items

  8. roryabraham commented on Jun 28, 2021

    @roryabraham
    Contributor

    So just to clarify my understanding of this issue:

    1. The ReportActionContextMenu needs to be closed on outside click.
    2. If you click on the ConfirmModal that appears for the delete action, you will have clicked outside the ReportActionContextMenu
    3. Thus, the ReportActionContextMenu is closed. Since the ConfirmModal is a child of the ReportActionContextMenu, the ConfirmModal is also closed.
    4. (the only part I'm fuzzy on) For some reason, no delete action is fired when the ConfirmModal is closed.

    And your proposals for potential solutions are:

    1. Prevent the click in the ConfirmModal being bubbled to its parent, the ReportActionContextMenu. Thus, prevent the outside click from closing the ReportActionContextMenu.
    2. Lift the ConfirmModal higher up in the component tree such that it's not a child of the ReportActionContextMenu. Open only open it once the ReportActionContextMenu is closed.

    Can you confirm that, @parasharrajat ?

    If so, I agree that 2 is better - it's probably a bad practice to allow two non-full-screen modals to be open at a time, or to nest modals in general. It also might be more efficient to have the single modal higher up in the component tree that can be reused and recycled for many different ReportActionContextMenu components.

  9. parasharrajat commented on Jun 28, 2021

    @parasharrajat
    Member

    Yeah, I confirm @roryabraham. We should lift up the ConfirmModal to the parent component and maybe we can make it singleton for all actions.

  10. roryabraham commented on Jun 28, 2021

    @roryabraham
    Contributor

    Cool, I don't think this needs to be a deploy blocker, but @parasharrajat do you have the bandwidth to work on this?

  11. parasharrajat commented on Jun 28, 2021

    @parasharrajat
    Member

    Yup, I have partial solution ready.

  12. Jag96 commented on Jun 29, 2021

    @Jag96
    Contributor

    Posted to Upwork and invited @parasharrajat to the job!

  13. added
    Weekly
    and removed
    Daily
    on Jun 29, 2021
  14. changed the title [-]Web - Chat - Message not deleted when selecting delete option from the context menu[/-] [+][HOLD for payment on July 7] Web - Chat - Message not deleted when selecting delete option from the context menu[/+] on Jul 1, 2021
  15. Jag96 commented on Jul 1, 2021

    @Jag96
    Contributor

    Reopening to keep track of payment date

  16. reopened this on Jul 1, 2021
  17. added
    Reviewing
    on Jul 1, 2021
  18. Jag96 commented on Jul 7, 2021

    @Jag96
    Contributor

    Paid!

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

Metadata

Metadata

Labels

EngineeringExternalReviewingWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions