Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOLD for payment 2024-01-17] Web – Chat – Edit mode doesn’t open when Press ArrowUp in DM if delete message using keyboard #33118

Closed
1 of 6 tasks
lanitochka17 opened this issue Dec 14, 2023 · 25 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering

Comments

@lanitochka17
Copy link

lanitochka17 commented Dec 14, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.13-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Intenral Team
Slack conversation:

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Log in with any account
  3. Navigate to the conversation between user A and B in both devices
  4. Send two messages to user B
  5. As user A press ArrowUp in the DM. Verify that the last message user A sent in the chat enters edit mode
  6. Delete all the text while editing the comment and press Enter
  7. Press ArrowUp in the DM

Expected Result:

The first message sent in step 4 enters edit mode

Actual Result:

Focus is losted. Nothing happenes. Last message edit mode doesn’t open when Press ArrowUp in the DM if delete the previous message using keyboard

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • Windows: Chrome
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6313468_1702579313132.Last_message_edit_mode_doesn_t_open_when_Press_ArrowUp.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Dec 14, 2023
Copy link
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.

Copy link

melvin-bot bot commented Dec 14, 2023

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

@situchan
Copy link
Contributor

This is regression from #32474
@tylerkaraszewski if we end up reverting approach, feel free to merge #33133 since it's straight revert

@dukenv0307
Copy link
Contributor

dukenv0307 commented Dec 15, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Focus is losted. Nothing happenes. Last message edit mode doesn’t open when Press ArrowUp in the DM if delete the previous message using keyboard

What is the root cause of that problem?

This is regression from this PR #32474 which makes composer doesn't re-focus after deleting the message

What changes do you think we should make in order to solve the problem?

  1. Revert this PR fix: hide pending deleted actions #32474

  2. To fix the issue of this PR fix: hide pending deleted actions #32474, We should check here if the reportAction is deleted by using isDeletedAction, we will return false because this reportAction still in the list of reportActions with optimistic data but it's invisible in the UI.

if (ReportActionsUtils.isDeletedAction(reportAction) && !isOffline) {
    return false;
}

let shouldDisplay = false;

What alternative solutions did you explore? (Optional)

@Julesssss
Copy link
Contributor

I can reproduce but this is only occuring on web/desktop and is a minor issue. Removing blocker label

@situchan
Copy link
Contributor

@s-alves10 can you please handle this as regression?

@s-alves10
Copy link
Contributor

@situchan Yes, I'll

@MonilBhavsar
Copy link
Contributor

@s-alves10 thanks! If you don't mind, should I assign this issue to you?

@s-alves10
Copy link
Contributor

yes

@s-alves10
Copy link
Contributor

@dukenv0307

This is regression from this PR #32474 which makes composer doesn't re-focus after deleting the message

What do you think is the root cause of not-focusing? Can you make it more clear?

@s-alves10
Copy link
Contributor

@MonilBhavsar

PR is ready for review #33162

@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Jan 8, 2024
Copy link

melvin-bot bot commented Jan 8, 2024

This issue has not been updated in over 15 days. @tylerkaraszewski, @s-alves10 eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@melvin-bot melvin-bot bot removed the Monthly KSv2 label Jan 10, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production labels Jan 10, 2024
@melvin-bot melvin-bot bot changed the title Web – Chat – Edit mode doesn’t open when Press ArrowUp in DM if delete message using keyboard [HOLD for payment 2024-01-17] Web – Chat – Edit mode doesn’t open when Press ArrowUp in DM if delete message using keyboard Jan 10, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 10, 2024
Copy link

melvin-bot bot commented Jan 10, 2024

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

Copy link

melvin-bot bot commented Jan 10, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.23-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 2024-01-17. 🎊

For reference, here are some details about the assignees on this issue:

  • @s-alves10 requires payment (Needs manual offer from BZ)

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jan 16, 2024
@situchan
Copy link
Contributor

Please assign me here for PR review

@MonilBhavsar
Copy link
Contributor

There was a suspicion that PR linked to this issue has caused a regression #34419
@s-alves10 @situchan anyone of you can please confirm, thank you!

@situchan
Copy link
Contributor

situchan commented Jan 17, 2024

There was a suspicion that PR linked to this issue has caused a regression #34419 @s-alves10 @situchan anyone of you can please confirm, thank you!

Straight revert failing so not able to confirm. But I don't think so as this (still reproducible after reverting this change) was the actual fix and other codes are just revert of previous PR.

Copy link

melvin-bot bot commented Jan 17, 2024

Issue is ready for payment but no BZ is assigned. @jliexpensify you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!

Copy link

melvin-bot bot commented Jan 17, 2024

Payment Summary

Upwork Job

  • ROLE: @s-alves10 paid $(AMOUNT) via Upwork (LINK)

BugZero Checklist (@jliexpensify)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@jliexpensify
Copy link
Contributor

jliexpensify commented Jan 17, 2024

@MonilBhavsar @tylerkaraszewski just to confirm, there's no regression here right?

Here's a payment summary for everyone's review:

Upworks Job

@situchan
Copy link
Contributor

situchan commented Jan 18, 2024

are you meant to be hired or are you just reviewing the PR?

This is follow-up (regression) of #31637.
The work is done already and I reviewed 2nd PR. (I was not involved in first PR which caused this regression)
@s-alves10's was already fully paid here for the work of first PR.

@jliexpensify
Copy link
Contributor

Oh hmm...so to clarify: I don't need to pay anyone?

@situchan
Copy link
Contributor

I am still eligible based on I was not involved in first PR which caused this regression

@jliexpensify
Copy link
Contributor

Thanks for clearing this up, I will withdraw the offer for Sangar and hire you @situchan

@jliexpensify
Copy link
Contributor

Paid and job closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

8 participants