-
Notifications
You must be signed in to change notification settings - Fork 3k
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-04-09] [$500] Composer defocuses when editing parent message in thread #38878
Comments
👋 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:
|
Triggered auto assignment to @amyevans ( |
We think that this bug might be related to #vip-bills |
This is related to a new feature and also pretty minor so not worth considering a blocker. @kidroca do you have bandwidth to take this on and fix as polish? If not I can open it up to external proposals. cc @situchan @marcaaron |
Hmm actually I'm going to walk back my comment that it's related to the Image Markdown PR, I think it was just incidental that it was discovered during QA there. I can reproduce the bug on Will continue to investigate... |
Agree, I am not convinced why composer focus behavior is related to image MD. |
Job added to Upwork: https://www.upwork.com/jobs/~012dd2062cbe841507 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
Triggered auto assignment to @isabelastisser ( |
@amyevans I think this should block deployment here as it breaks crucial feature of editing messages. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The edit composer of a parent thread message lose focuses when clicking on it. What is the root cause of that problem?For the parent thread message, we set an on-press event that will navigate the user to the thread report. App/src/pages/home/report/ReportActionItemParentAction.tsx Lines 85 to 86 in d8361ee
In the video, the thread is 1 level deep, so pressing it will navigate to itself, so the composer loses the focus. What changes do you think we should make in order to solve the problem?Don't trigger the on-press when the message is in draft mode. App/src/pages/home/report/ReportActionItem.tsx Lines 798 to 800 in d8361ee
also, maybe we can improve the thread parent press logic to ignore the press if the report destination is the same as the current report |
@bernhardoj Please link offending PR here. |
It's related to the comment linking PR. The navigation triggers this memo to recalculate the ID which is passed to the chat list App/src/pages/home/report/ReportActionsView.tsx Lines 135 to 141 in d8361ee
We still need to apply my fix, otherwise we can't edit a thread ancestor message. Screen.Recording.2024-03-26.at.14.24.39.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Image MD - Composer defocuses when editing message with inline image mark down in thread What is the root cause of that problem?When we press anywhere in input, the event will bubble up the tree and call the What changes do you think we should make in order to solve the problem?Add What alternative solutions did you explore? (Optional)Replace this View with |
Looks to be caused by the comment linking PR #30269. @bernhardoj's proposal LGTM to get this fixed quickly! 🎀👀🎀 C+ reviewed |
Current assignee @amyevans is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
Proposal looks good @bernhardoj, thanks! Let us know when we can expect a PR |
📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Also cc @perunt @roryabraham (nothing y'all need to do here, just a tag for visibility since this came from comment linking) |
PR is ready cc: @jjcoffee |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.58-8 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-04-09. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@jjcoffee please complete the list above. Thanks! |
The payments were processed in Upwork. Waiting for @jjcoffee to complete the BZ list before this can be closed. |
Regression Test Proposal
Do we agree 👍 or 👎 |
Hi @amyevans, do you agree that we should create the regression test with the steps above? Thanks! |
@isabelastisser I think since the bug was caught during normal regression testing by Applause, it means that adding an explicit test case for this would be unnecessary. However if you want to be safe you can always open a GH for it and let Isabella make that call! |
Thanks for the context, Amy! I agree and will close it then. |
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.56-0
Reproducible in staging?: y
Reproducible in production?: n
Issue found when executing PR: #37566
Issue reported by: Applause - Internal Team
Action Performed:
An inline image and some text
Expected Result:
The composer will not defocus.
Actual Result:
The composer defocuses when editing message with inline image mark down in thread.
Workaround:
n/a
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6424058_1711173003900.20240323_134637.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: