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

[HOLD for payment 2024-06-11] [$250] Edit Message - Emoji’s are cut in half when in Edit message mode #42530

Closed
2 of 6 tasks
lanitochka17 opened this issue May 23, 2024 · 29 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 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

@lanitochka17
Copy link

lanitochka17 commented May 23, 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: 1.4.75-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: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team

Issue found when executing PR #41027

Action Performed:

  1. Open the New Expensify App
  2. Sign into a valid account
  3. Go to any chat
  4. Send an emoji (Only an Emoji so that the Emoji is larger than normal)
  5. Tap on "Edit Message" option

Expected Result:

User expects the Edit message composer to open and the emoji to be fully visible as before

Actual Result:

The Emoji is cut in half

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

Bug6489496_1716474938157.Emoji_is_cut_off_when_in_edit_message_mode.1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01ba75049d57ad65eb
  • Upwork Job ID: 1794204477867704320
  • Last Price Increase: 2024-05-25
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @jliexpensify
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 23, 2024
Copy link

melvin-bot bot commented May 23, 2024

Triggered auto assignment to @jliexpensify (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

@jliexpensify 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

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp

@jliexpensify
Copy link
Contributor

Can repro, going to assign @Ollyws as he was C+ on the PR.

@bernhardoj
Copy link
Contributor

Proposal

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

Emojis are cut when in large size in edit composer.

What is the root cause of that problem?

When the composer only contains emoji, we set the size to be bigger, but the line height is still small. We use this line height.

lineHeight: variables.lineHeightXLarge,

We then fix this in #41027 by applying a bigger line height if the composer only contains emoji, but we only apply the fix to the main composer.

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

We can move the fix to Composer/index.tsx and Composer/index.native.tsx and append it to RNMarkdownTextInput style.

style={[composerStyle, maxHeightStyle]}

@Ollyws
Copy link
Contributor

Ollyws commented May 24, 2024

@bernhardoj's proposal LGTM.

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented May 24, 2024

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

@bernhardoj
Copy link
Contributor

PR is ready

cc: @Ollyws

@jliexpensify jliexpensify added the External Added to denote the issue can be worked on by a contributor label May 25, 2024
Copy link

melvin-bot bot commented May 25, 2024

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

@melvin-bot melvin-bot bot changed the title Edit Message - Emoji’s are cut in half when in Edit message mode [$250] Edit Message - Emoji’s are cut in half when in Edit message mode May 25, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 25, 2024
Copy link

melvin-bot bot commented May 25, 2024

Current assignee @Ollyws is eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 25, 2024
@charmer1025
Copy link

I think it is related to CSS position problem.
I can fix it right now.

Copy link

melvin-bot bot commented May 25, 2024

📣 @charmer1025! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@parasharrajat
Copy link
Member

Let's hold this issue. It might become redundent after we are done with #40692

@bernhardoj
Copy link
Contributor

I know it's a native issue only, but #40692 only applies the line-height fix on the native.

The current condition is:
The line-height fix is applied for all platforms, but only in the main composer (ComposerWithSuggestions)

#40692:
The line-height fix from the current condition stays the same. In addition, the line-height fix is applied to both the main and edit composer (Composer), but only on the native

My PR:
The line-height fix is moved from ComposerWithSuggestions to Composer/index.tsx and Composer/index.native.tsx, so it's applied for both the main and edit composer on all platforms.

We can either complete my PR first or you can incorporate the changes to #40692.

@parasharrajat
Copy link
Member

Thanks for the clarity. I think we might get more severe alignment issues from #40692 so It will be good to keep this PR open and apply changes that work for that PR too.

Copy link

melvin-bot bot commented May 29, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

Copy link

melvin-bot bot commented May 31, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

Copy link

melvin-bot bot commented Jun 3, 2024

@rlinoz, @Ollyws, @jliexpensify, @bernhardoj Whoops! This issue is 2 days overdue. Let's get this updated quick!

@rlinoz
Copy link
Contributor

rlinoz commented Jun 3, 2024

PR is in staging, just waiting a prod deploy.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jun 4, 2024
@melvin-bot melvin-bot bot changed the title [$250] Edit Message - Emoji’s are cut in half when in Edit message mode [HOLD for payment 2024-06-11] [$250] Edit Message - Emoji’s are cut in half when in Edit message mode Jun 4, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 4, 2024
Copy link

melvin-bot bot commented Jun 4, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Jun 4, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.78-5 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 2024-06-11. 🎊

For reference, here are some details about the assignees on this issue:

  • @Ollyws requires payment through NewDot Manual Requests
  • @bernhardoj requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Jun 4, 2024

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:

  • [@Ollyws] The PR that introduced the bug has been identified. Link to the PR:
  • [@Ollyws] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@Ollyws] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@Ollyws] Determine if we should create a regression test for this bug.
  • [@Ollyws] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@jliexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@jliexpensify
Copy link
Contributor

jliexpensify commented Jun 11, 2024

@Ollyws is a checklist needed here?

Payment Summary

Upworks job

@Ollyws
Copy link
Contributor

Ollyws commented Jun 11, 2024

I don't think the checklist is but we should add a regression test:

1. Open any chat
2. Send an emoji only message
3. Long-press/right-click on the message and choose Edit message
4. Verify the emoji isn't cut in half

@Ollyws
Copy link
Contributor

Ollyws commented Jun 11, 2024

Requested on ND.

Copy link

melvin-bot bot commented Jun 11, 2024

Payment Summary

Upwork Job

  • Reviewer: @Ollyws owed $250 via NewDot
  • ROLE: @bernhardoj paid $(AMOUNT) via Upwork (LINK)

BugZero Checklist (@jliexpensify)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1794204477867704320/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@JmillsExpensify
Copy link

$250 approved for @Ollyws

@jliexpensify
Copy link
Contributor

Paid @bernhardoj and job removed. Thanks everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 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
Archived in project
Development

No branches or pull requests

9 participants