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

[$500] Chat - The composer jumps when editing a message #36374

Closed
2 of 6 tasks
m-natarajan opened this issue Feb 12, 2024 · 87 comments
Closed
2 of 6 tasks

[$500] Chat - The composer jumps when editing a message #36374

m-natarajan opened this issue Feb 12, 2024 · 87 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@m-natarajan
Copy link

m-natarajan commented Feb 12, 2024

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.40-0
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:

  1. Navigate to a chat with a lot of text messages
  2. Edit the text closest to the composer

Expected Result:

It shouldn't shake or jump

Actual Result:

The composer jumps when editing a message - see this video for an example

Workaround:

unknown

Platforms:

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

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

Screenshots/Videos

Add any screenshot/video evidence

Bug6377229_1707770858558.YFNY4432.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~011ebf704e63731d68
  • Upwork Job ID: 1757147558004047872
  • Last Price Increase: 2024-04-01
@m-natarajan m-natarajan added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 12, 2024
@melvin-bot melvin-bot bot changed the title Chat - The composer shakes when editing a message [$500] Chat - The composer shakes when editing a message Feb 12, 2024
Copy link

melvin-bot bot commented Feb 12, 2024

Job added to Upwork: https://www.upwork.com/jobs/~011ebf704e63731d68

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 12, 2024
Copy link

melvin-bot bot commented Feb 12, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary (External)

Copy link

melvin-bot bot commented Feb 12, 2024

Triggered auto assignment to @jliexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@m-natarajan
Copy link
Author

We (Applause) think this bug might be related to #vip-vsb

@jliexpensify
Copy link
Contributor

@ntdiary I got assigned a similar action (i.e. shaking occurs when tapping on something) here: #34300

Do you think the root cause would be the same?

@ntdiary
Copy link
Contributor

ntdiary commented Feb 13, 2024

@ntdiary I got assigned a similar action (i.e. shaking occurs when tapping on something) here: #34300

Do you think the root cause would be the same?

Hi, @jliexpensify, I'm still OOO. If this is a urgent issue, please feel free to reassign another c+, or maybe I'll have 1-2 hours to dig deeper tomorrow. :)

@jliexpensify jliexpensify added External Added to denote the issue can be worked on by a contributor and removed External Added to denote the issue can be worked on by a contributor labels Feb 13, 2024
Copy link

melvin-bot bot commented Feb 13, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt (External)

@jliexpensify
Copy link
Contributor

Than ks @ntdiary - going to reassign for now! @s77rt - please see my question here!

@s77rt
Copy link
Contributor

s77rt commented Feb 13, 2024

@jliexpensify No they seem different. This one is related to the main composer getting hidden which makes the editing composer change position (jump)

@jliexpensify
Copy link
Contributor

@m-natarajan you checked the ios: native box but your video seems to be iOS Safari (or another browser).

I also can't really reproduce this, @s77rt could this issue be related to how the keyboard pops up?

@jliexpensify jliexpensify added the Needs Reproduction Reproducible steps needed label Feb 14, 2024
@s77rt
Copy link
Contributor

s77rt commented Feb 14, 2024

@jliexpensify No, it's only due to the fact that we are hiding the main composer so everything shift down including the edit composer

Screen.Recording.2024-02-14.at.2.13.26.AM.mov
Before After
Screenshot 2024-02-14 at 2 21 01 AM Screenshot 2024-02-14 at 2 21 06 AM

@jliexpensify
Copy link
Contributor

Thanks for sharing that video @s77rt - I can see it a bit more clearly now. Is it something that is a pretty simple/straightforward fix?

@s77rt
Copy link
Contributor

s77rt commented Feb 14, 2024

@jliexpensify I didn't check in depth but I don't think fixing this would be straightforward.

@jliexpensify jliexpensify removed the Needs Reproduction Reproducible steps needed label Feb 14, 2024
@jliexpensify
Copy link
Contributor

jliexpensify commented Feb 14, 2024

Cool, lets wait for some proposals then - thanks!

EDIT: posted here - https://expensify.slack.com/archives/C066HJM2CAZ/p1707880547642609

@melvin-bot melvin-bot bot added the Overdue label Feb 16, 2024
@s77rt
Copy link
Contributor

s77rt commented Feb 16, 2024

Not overdue. Looking for proposals

@melvin-bot melvin-bot bot removed the Overdue label Feb 16, 2024
Copy link

melvin-bot bot commented Mar 18, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@s77rt
Copy link
Contributor

s77rt commented Mar 18, 2024

Still looking for proposals

@melvin-bot melvin-bot bot removed the Overdue label Mar 18, 2024
@jliexpensify jliexpensify removed the Bug Something is broken. Auto assigns a BugZero manager. label Mar 19, 2024
@jliexpensify jliexpensify removed their assignment Mar 19, 2024
@jliexpensify jliexpensify added the Bug Something is broken. Auto assigns a BugZero manager. label Mar 19, 2024
Copy link

melvin-bot bot commented Mar 19, 2024

Triggered auto assignment to @sakluger (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@jliexpensify jliexpensify self-assigned this Mar 19, 2024
@jliexpensify
Copy link
Contributor

Hello @sakluger - I am headed OOO from the 21st to 31st March so have assigned you as a buddy here.

Summary:

  • @s77rt is still awaiting suitable proposals

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@jliexpensify
Copy link
Contributor

@mvtglobally can you share a video please? Thanks!

@sakluger
Copy link
Contributor

Sounds like this may be fixed. Is anyone due payment? My assumption is no, @s77rt can you please confirm.

@s77rt
Copy link
Contributor

s77rt commented Mar 20, 2024

@sakluger If this is fixed already then no one would be due payment

@brunovjk
Copy link
Contributor

@s77rt I believe we've made significant progress in mitigating the 'shake or jump' issue by ensuring simultaneous rendering/hiding of the composer and text. I actually don't know how it was done, but it seems like that's what happened hehe.
However, a small 'shake or jump' persists due to the '2 lines' issue. I couldn't pinpoint the root cause, but it seems related to passing numberOfLines=undefined and multiline=true in the composer at ReportActionItemMessageEdit. As calculating numberOfLines upfront remains challenging, setting numberOfLines=1 has resolved the issue, but I wonder about potential regressions.
I'm questioning the use of 0 as the default value in src/components/Composer/index.tsx. Since I can't think of a scenario where 0 would be appropriate, changing it to 1 would also resolve the 'two-line composer issue'. Do you think this is worth fixing? If yes, here? Or should we create another issue?
Thank you for your time.

@s77rt
Copy link
Contributor

s77rt commented Mar 23, 2024

@brunovjk If the fix will only cover the case of 2 lines then it may not be worth it as it will only sound like a workaround (issue would still be reproducible where we have multiple lines)

@melvin-bot melvin-bot bot added the Overdue label Mar 25, 2024
@brunovjk
Copy link
Contributor

Update:

@s77rt please take a look #30964 (comment):
"We set the default value of numberOfLines in ReportActionItemMessageEdit composer to be undefined.
This is the same as not setting the rows property of textarea. If we don't set the rows property, textarea will have 2 rows by default."

I didn't find any related issue. I'm still working on the function to calculate numberOfLines before render the composer.

Copy link

melvin-bot bot commented Mar 25, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@s77rt
Copy link
Contributor

s77rt commented Mar 25, 2024

Still looking for proposals. Though it has been reported that the behaviour is no longer that buggy but there is still room for improvements

@jliexpensify
Copy link
Contributor

jliexpensify commented Mar 31, 2024

Back, thanks Sasha - unassigning you!

Copy link

melvin-bot bot commented Apr 1, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@brunovjk
Copy link
Contributor

brunovjk commented Apr 4, 2024

@s77rt what do you think about closing this current issue and opening another one? Regarding the 'Number of Lines when Editing a Message', I believe it would be cool to be similar to Slack:

2024-04-04.13-15-12.mp4

I couldn't find a solution, maybe another issue will bring the right eyes to the problem.

@melvin-bot melvin-bot bot added the Overdue label Apr 4, 2024
@s77rt
Copy link
Contributor

s77rt commented Apr 5, 2024

Since the original bug does not seem to be reproducible anymore it makes sense to close this issue cc @jliexpensify

@melvin-bot melvin-bot bot removed the Overdue label Apr 5, 2024
@s77rt
Copy link
Contributor

s77rt commented Apr 5, 2024

@brunovjk I don't think that issue is important enough given that bug reports are limited but feel free to raise on Slack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
No open projects
Status: CRITICAL
Development

No branches or pull requests