-
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 2023-11-22] [$500] Web - App adds extra line in edit message box #27622
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01619a8ea912ef60ce |
Triggered auto assignment to @peterdbarkerUK ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @greg-schroeder ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.App adds extra line in edit mesage box What is the root cause of that problem?We are using App/src/components/Composer/index.js Line 345 in 6e17b64
the issue here is Screen.Recording.2023-09-17.at.1.22.25.AM.movWhat changes do you think we should make in order to solve the problem?we need to add App/src/components/Composer/index.js Line 364 in 6e17b64
What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issueWhat is the root cause of that problem?The root problem was on What changes do you think we should make in order to solve the problem?We need to adjust the calculation of the number of lines in the
Full function
Resulthttps://www.loom.com/share/ff227d92866d4c2b835d07ee21299695?sid=28433597-00d6-4ee8-a89b-a5c22307090e What alternative solutions did you explore? (Optional)None |
ProposalPlease re-state the problem that we are trying to solve in this issue.Editing a full-width one-line text message will "add" another line to it. What is the root cause of that problem?We have a function App/src/components/Composer/index.js Lines 350 to 369 in 6be8fca
The line height of the text is 20 and the vertical padding is 10, so the Why there is a scrollbar? Before doing the calculation, we set the height of the input to 0. App/src/components/Composer/index.js Lines 354 to 355 in 6be8fca
Setting it to 0 will show a scrollbar, so the calculation is affected. We actually already have a solution to this scrollbar issue by setting an overflow hidden style to the input App/src/components/Composer/index.js Lines 442 to 444 in 6be8fca
but the initial value of Previously, we don't set the height to 0, but instead, we set the What changes do you think we should make in order to solve the problem?Setting the height to 0 is actually not equivalent to textInput.current.setAttribute('rows', 1); What alternative solutions did you explore? (Optional)Set default value of |
Hmmm - I was unable to reproduce this. Where am I going wrong @kbecciv ? |
Try to use the letters to the end of the line and save it. Use edit option and remove if doesn't fit the first line. Use edit option again and you will see the issue. Recording.4656.mp4 |
Steps to reproduce.
Screen.Recording.2023-09-20.at.9.20.05.PM.mov |
Hmmm, it's still not happening for me on Chrome web: https://app.screencast.com/Nzdg5mgnIlnx9 |
Hi @peterdbarkerUK, for me too, I wasn't able to reproduce on 2017 macbook air but was able to reproduce on 15.6 inch windows laptop and 15 inch 2015 macbook pro. It seems like it doesn't occur on all devices. |
@peterdbarkerUK Make sure "Show scroll bars" setting has either "Automatically based on mouse or trackpad" or "Always" selected |
ProposalPlease re-state the problem that we are trying to solve in this issueWeb - Application add extra line in edit message box if lowest text input line is full when click on edit message. What is the root cause of that problem?The root cause of the problem is on this line: App/src/components/Composer/index.js Line 444 in 7bebfd3
The style for first created composer component won't use The issue is really visible if there are many lines in text input, even if it is not last character of lowest line the blank line is added. Overly hidden demo:overflow_hidden_d.mp4What changes do you think we should make in order to solve the problem?To properly check on |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Current assignee @aimane-chnaif is eligible for the External assigner, not assigning anyone new. |
📣 @aimane-chnaif 🎉 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 |
📣 @dhanashree-sawant 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
PR is ready cc: @aimane-chnaif |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.99-0 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 2023-11-22. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
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:
|
@aimane-chnaif could you take care of the checklist? [$500] to @bernhardoj (Contributor) All paid |
This is edge case and happened on Windows only. So we can skip regression test. |
Thank you very much! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
App should not automatically add extra line below text in edit message box
Actual Result:
App automatically adds extra below text line in edit message box if text occupies full space in previous line
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.70.5
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
Notes/Photos/Videos: Any additional supporting documentation
extra.line.below.text.in.edit.message.mp4
Recording.4538.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694858423819399
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: