-
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
[Payment due 2023-12-21] [$500] Chat - Text in the composer loses the hightlight as soon as the cursor reaches the LHN #31573
Comments
Triggered auto assignment to @laurenreidexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~010f7879c01d6e7f2b |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Text in the composer loses the hightlight as soon as the cursor reaches the LNH What is the root cause of that problem?Here
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)N/A |
📣 @witehound! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@witehound The video is not a mobile browser |
@witehound Thanks for the proposal. I noticed that when we move the cursor on the items rendered above the FAB menu the highlight is not removed. only when the cursor is moved inline to FAB buttons, it hides. So I am not sure how your proposal solves the issue. Can you please explain the root cause on how it is really the root cause? |
@parasharrajat , @ZhenjaHorbach so i think this proposal might be redundant! this is my first time looking at the code base and i figured removing the userSelectNone might fix the bug! |
@parasharrajat I think It is not a bug. It is standard behavior . It related mouse position. Even here if you try to highlight any text from right to left and move mouse to down the highlight will disappear . |
ProposalPlease re-state the problem that we are trying to solve in this issue.Text in the composer loses the hightlight as soon as the cursor reaches the LNH What is the root cause of that problem?The expected behavior is that the text selection state should continue even if the mouse cursor moves outside of the input field. What changes do you think we should make in order to solve the problem?To achieve the expected behavior, you need to apply the user-select CSS property to the body element of the input field. This will ensure that the text selection state is preserved even if the mouse cursor moves outside of the input field. Please add following code to onFocus and onBlur function in /src/pages/home/report/ReportActionCompose/ReportActionCompose.js onFocus function: onBlur function: What alternative solutions did you explore? (Optional)---Safari--- |
This issue is not reproducible in the latest main |
I can reproduce... Let's wait for some decent proposals. Otherwise, it is not a big deal. |
Let's see if we get any more proposals by EOW and take it from there |
Can you please tell me if you're able to reproduce the issue in the latest main? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Yes, I can reproduce this on the latest main. Screen.Recording.2023-11-30.at.2.07.53.PM.mov |
Still no response on the original PR. IMO, we should be good to use margin instead of transform as we are not changing it dynamically so their overall impact on rendering should be the same as transform. The only difference is that currently it is rendered via GPU and the margin will force it to use CPU. @bernhardoj can you please do some testing around it and confirm that the margin does not change anything? If that is the case, we can go with your proposal. |
Hi, @parasharrajat |
I have seen it @sukach318 but I don't think it is a good solution because it does not target the root cause. We have disabled the selection on the sidebar intentionally and we don't want to change that. The problem here is to prevent selection from getting hidden from the composer. |
@parasharrajat So far I found no issue. The visual is still the same and the sidebar is still interactable. |
Let's roll then.... @bernhardoj suggestion looks good to me. @bernhardoj Please convert that post to a proposal. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @francoisl, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@parasharrajat The same phenomenon occurs not only when you move the mouse sideways but also when you move it down or to the up while selected. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The composer input text selection is lost as soon as we move our mouse while dragging the selection to the FAB. What is the root cause of that problem?I did play around with the layout and it looks like the issue is with how we style the layout. The sidebar screen has a translateX of -375px to shift it to the left. App/src/libs/Navigation/AppNavigator/getRootNavigatorScreenOptions.js Lines 37 to 44 in 9dbf39d
The current behavior is, that the selection is lost when it touches the FAB (the OP video). What changes do you think we should make in order to solve the problem?Replacing translateX with marginLeft: -375 seems to fix the selection issue (sidebar is still clickable). Screen.Recording.2023-12-04.at.16.17.21.mov |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @parasharrajat |
Heh - this should be paid on 21 Dec, looks like it was on prod from 14 Dec #32772 (comment) |
@francoisl, @parasharrajat, @bernhardoj, @laurenreidexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Payment Summary: Contributor: @bernhardoj $500 paid in Upwork Outstanding steps: @parasharrajat please complete a checklist and confirm if we need a regression test thanks |
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:
Regression Test StepsWeb/Desktop
Do you agree 👍 or 👎 ? |
@laurenreidexpensify Done. Please close the issue if nothing is left here. I will request the payment later and track it myself. Thanks. |
Payment requested as per #31573 (comment) |
$500 approved for @parasharrajat |
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: 1.4.1.4
Reproducible in staging?: Y
Reproducible in production?: y
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 - Internal Team
Slack conversation:
Action Performed:
Expected Result:
The text should be highlighted even when the cursor reaches the LNH
Actual Result:
The text in the composer loses the hightlight as soon as the cursor reaches the LNH
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6284256_1700505162669.bandicam_2023-11-20_18-35-47-842.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: