Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.56k stars 2.9k forks source link

Chat - Extra space is missing on Android app and mWeb if selected from emojis picker #19648

Closed kbecciv closed 1 year ago

kbecciv commented 1 year ago

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Issue found when executing PR https://github.com/Expensify/App/pull/19304

Action Performed:

  1. Login to NewDot
  2. open any chat
  3. Tap on compose box
  4. Select an emoji from emoji picker

Expected Result:

Extra space should appear after emoji

Actual Result:

Extra space is missing on Android app and mWeb if selected from emojis picker

Workaround:

Unknown

Platforms:

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

Version Number: 1.3.18.1

Reproducible in staging?: yes

Reproducible in production?: yes

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

https://platform.applause.com/services/links/v1/external/5e94b19fcac35462b2065357736d0c7a50a46b9fda23459b156b7f46ea873905

https://platform.applause.com/services/links/v1/external/47810df62211054bc27b23f3addf325f865b627985c31fa82ca7a2467f49f2e1

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

melvin-bot[bot] commented 1 year ago

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

melvin-bot[bot] commented 1 year ago

Bug0 Triage Checklist (Main S/O)

AlexanderDmitriev commented 1 year ago

Proposal

Please re-state the problem that we are trying to solve in this issue.

Chat - Extra space is missing on Android app and mWeb if selected from emojis picker

What is the root cause of that problem?

It was inserting space after picked emoji when click one emoji from suggested emojis. https://github.com/Expensify/App/blob/fe67d69c9043734486c6a639a0d3ba66d5440a04/src/pages/home/report/ReportActionCompose.js#L623 image

What changes do you think we should make in order to solve the problem?

Remove the space from the line

    this.updateComment(`${commentBeforeColon}${emojiCode}${this.trimLeadingSpace(commentAfterColonWithEmojiNameRemoved)}`, true);

image

What alternative solutions did you explore? (Optional)

N/A

tienifr commented 1 year ago

This is not a bug but intentional as per this thread: https://expensify.slack.com/archives/C01GTK53T8Q/p1668009281985659?thread_ts=1667208968.300839&cid=C01GTK53T8Q

joekaufmanexpensify commented 1 year ago

Yep, closing as this is intentional, per the above thread!