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

[$250] mWeb/Chrome -Chat - When adding emoji in multiline message composer is not completelly autoscrolled #50174

Open
1 of 6 tasks
lanitochka17 opened this issue Oct 3, 2024 · 19 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 3, 2024

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: 9.0.44-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: https://expensify.testrail.io/index.php?/tests/view/5043700&group_by=cases:section_id&group_order=asc&group_id=306201
Issue reported by: Applause - Internal Team

Action Performed:

  1. Open the staging.new.expensify.com website
  2. Open any chat
  3. Start typing a multiline message until a scroller is displayed
  4. In the next line, add an emoji
  5. Verify the compose box is autoscrolled to the bottom and the emoji is not overlapped

Expected Result:

When adding an emoji in a multiline message, the compose box should be scrolled to the bottom so the emoji is not overlapped

Actual Result:

When the scrollbar is displayed in a multiline message and the user adds an emoji in a new line, the compose box is not autoscrolled to the bottom and the emoji is overlapped until the user scrolls down

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
Bug6623459_1727975277132.Multiemoji.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021843658720204692310
  • Upwork Job ID: 1843658720204692310
  • Last Price Increase: 2024-10-08
Issue OwnerCurrent Issue Owner: @s77rt
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 3, 2024
Copy link

melvin-bot bot commented Oct 3, 2024

Triggered auto assignment to @OfstadC (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@lanitochka17
Copy link
Author

@OfstadC FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@melvin-bot melvin-bot bot added the Overdue label Oct 7, 2024
@OfstadC
Copy link
Contributor

OfstadC commented Oct 8, 2024

I tested this end of last week and then got side tracked. Reviewing again

@melvin-bot melvin-bot bot removed the Overdue label Oct 8, 2024
@OfstadC
Copy link
Contributor

OfstadC commented Oct 8, 2024

i believe this is ND Quality - posted in Slack to confirm

@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label Oct 8, 2024
@melvin-bot melvin-bot bot changed the title mWeb/Chrome -Chat - When adding emoji in multiline message composer is not completelly autoscrolled [$250] mWeb/Chrome -Chat - When adding emoji in multiline message composer is not completelly autoscrolled Oct 8, 2024
Copy link

melvin-bot bot commented Oct 8, 2024

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

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

melvin-bot bot commented Oct 8, 2024

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

@Skalakid
Copy link
Contributor

Skalakid commented Oct 8, 2024

Hello, I'm Michał from SWM, an expert agency, and I will investigate this issue

@s77rt
Copy link
Contributor

s77rt commented Oct 8, 2024

@OfstadC Please assign @Skalakid

@Skalakid
Copy link
Contributor

Skalakid commented Oct 9, 2024

Hello, I've investigated this topic, and two problems are causing this issue.

The first is connected to our current scroll-into-view logic inside the Live Markdown library. When trying to insert the emoji from the modal, we add the emoji and the space after it to the input value. Because of this space, the target element for scrolling-into-view is the text node, which has a different line height than the emoji. To fix it, we can take the parent line element and scroll the view into it. Also, we can use the #45885 (comment) fix and add some bottom padding on the scroll, like 4px.

The second problem is connected to default text input behavior. By default, HTML input/text area elements don't include padding at the bottom when scrolling text into view. The same happens in the native RN TextInput component. Because of that, the input isn't scrolled fully to the bottom when inserting the new line and adding text there.

Video
Screen.Recording.2024-10-08.at.18.39.50.mov

Because of that, I think we shouldn't care about scrolling the input fully to the bottom because it's the default input behavior. Instead, let's focus on scrolling input so emojis in the line don't overlap in every scenario. What are your thoughts on this?

@Skalakid
Copy link
Contributor

Skalakid commented Oct 9, 2024

Here is a PR with the fix

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 9, 2024
Copy link

melvin-bot bot commented Oct 14, 2024

@OfstadC, @s77rt, @Skalakid Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot melvin-bot bot added the Overdue label Oct 14, 2024
@s77rt
Copy link
Contributor

s77rt commented Oct 14, 2024

PR still under review

@melvin-bot melvin-bot bot removed the Overdue label Oct 14, 2024
Copy link

melvin-bot bot commented Oct 17, 2024

@OfstadC @s77rt @Skalakid this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Oct 17, 2024
@s77rt
Copy link
Contributor

s77rt commented Oct 18, 2024

Expensify/react-native-live-markdown#514 is merged. Waiting on the App PR for the upgrade

@melvin-bot melvin-bot bot removed the Overdue label Oct 18, 2024
Copy link

melvin-bot bot commented Oct 21, 2024

@OfstadC, @s77rt, @Skalakid Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Oct 21, 2024
@s77rt
Copy link
Contributor

s77rt commented Oct 21, 2024

@Skalakid Do you have an ETA for the E/App PR?

@Skalakid
Copy link
Contributor

Skalakid commented Oct 23, 2024

Hi, sorry I had to prioritize other tasks and didn't have time to do it. Creating the PR with a bump right now

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Oct 23, 2024
@Skalakid
Copy link
Contributor

Here is the PR

Copy link

melvin-bot bot commented Oct 24, 2024

Triggered auto assignment to @nkuoch, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

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. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
Development

No branches or pull requests

6 participants