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 2023-06-12] [$1000] Editing just emoji on a chat cuts the top part on android #19605

Closed
1 of 6 tasks
kavimuru opened this issue May 25, 2023 · 49 comments
Closed
1 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production 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

Comments

@kavimuru
Copy link

kavimuru commented May 25, 2023

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:

  1. Go to android
  2. Go to any chat
  3. Send just emoji
  4. Now edit the message and add one more emoji and save it (Do not add any text)
  5. Notice that the top part of the emoji message is totally cut off

Expected Result:

The top part of emoji should not be cut off on editing the emoji message

Actual Result:

The top part of the emoji is cut off on editing the emoji message

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.18-1
Reproducible in staging?: y
**Reproducible in production?:**n
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

emoji.mp4
az_recorder_20230525_080215.1.mp4

Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685014708492129

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014c149c7f2dfb4aae
  • Upwork Job ID: 1661744463659536384
  • Last Price Increase: 2023-05-25
@kavimuru kavimuru added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 25, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 25, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@OSBotify
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@melvin-bot
Copy link

melvin-bot bot commented May 25, 2023

Triggered auto assignment to @cristipaval (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@lschurr
Copy link
Contributor

lschurr commented May 25, 2023

@cristipaval - does this need to go through the typical Bug Zero process? Should I be testing and adding External or is this an Internal fix?

@cristipaval
Copy link
Contributor

Hmm.. it looks like this is a deploy blocker. Let me triage this one.

@cristipaval
Copy link
Contributor

This also happens in production 1.3.17-5
Not a deploy blocker, so making it external.

@cristipaval cristipaval added External Added to denote the issue can be worked on by a contributor and removed DeployBlockerCash This issue or pull request should block deployment labels May 25, 2023
@melvin-bot melvin-bot bot changed the title Editing just emoji on a chat cuts the top part on android [$1000] Editing just emoji on a chat cuts the top part on android May 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 25, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 25, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 25, 2023

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 25, 2023

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

@cristipaval cristipaval removed the Hourly KSv2 label May 25, 2023
@kushu7
Copy link
Contributor

kushu7 commented May 25, 2023

Proposal

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

Editing just emoji on a chat cuts the top part on android

What is the root cause of that problem?

Its happening because space between message and edited text.

<Text
selectable={false}
style={[styles.w1, styles.userSelectNone]}
>
{' '}
</Text>

We are not providing fontSize or lineHeight to it. so its uses default variables.fontSizeNormalHeight depends on metrics. if its smaller than styles.onlyEmojisText then we can see kind of behavior.

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

We have 2 ways to fix it. first is we can provide same fontSize as its parent:

 <Text
    fontSize={variables.fontSizeSmall} <-- add this
    selectable={false}
    ...
>
    {' '}
</Text>
  • 2nd Option
    If we want to keep spacing of fontSizeNormal then we can provide lineHeight to styles of Space Text same as onlyEmojisText.lineHeight only when EmojiUtils.containsOnlyEmojis(text) is true.

IMO, 2nd option is good it will keep same spacing between edited and message.

Screenshot

Screenshot_1685038884

What alternative solutions did you explore? (Optional)

None

@AlexanderDmitriev
Copy link

AlexanderDmitriev commented May 25, 2023

Proposal

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

Editing just emoji on a chat cuts the top part on android

What is the root cause of that problem?

Space between emojis and (edited) was problem

<Text
selectable={false}
style={[styles.w1, styles.userSelectNone]}
>
{' '}
</Text>

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

Remove the Text element for space and add space like this:

                {Boolean(props.fragment.isEdited) && (
                    <Text
                        fontSize={variables.fontSizeSmall}
                        color={themeColors.textSupporting}
                        style={[styles.alignItemsBaseline, editedLabelStyles]}
                    >
                        {` ${props.translate('reportActionCompose.edited')}`}
                    </Text>
                )}

image

What alternative solutions did you explore? (Optional)

N/A

@qasimkhan23
Copy link

Proposal

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

Editing just emoji on a chat cuts the top part on android

What is the root cause of that problem?

The provided space between the emoticon and the edited text
https://github.com/Expensify/App/blob/0f1188de4d7b69ecb2b16485e9f03d92f54afe84/src/pages/home/report/ReportActionItemFragment.js#L124C5-L139

                    {Boolean(props.fragment.isEdited) && (
                        <Text
                            fontSize={variables.fontSizeSmall}
                            color={themeColors.textSupporting}
                            style={[styles.alignItemsBaseline, editedLabelStyles]}
                        >
                            <Text
                                selectable={false}
                                style={[styles.w1, styles.userSelectNone]}
                            >
                                {' '}
                            </Text>
                            {props.translate('reportActionCompose.edited')}
                        </Text>
                    )}
                </Text>

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

The simple solution is mentioned below, no need to add extra <Text> component.

                {Boolean(props.fragment.isEdited) && (
                    <Text
                        fontSize={variables.fontSizeSmall}
                        color={themeColors.textSupporting}
                        style={[styles.alignItemsBaseline, editedLabelStyles]}
                    >
                        {` ${props.translate('reportActionCompose.edited')}`}
                    </Text>
                )}

@mananjadhav
Copy link
Collaborator

Thanks for the ping @kushu7. @cristipaval will get it checked. No action needed from your end.

@laurenreidexpensify
Copy link
Contributor

@lschurr heads up for payment it looks like @pubudu-ranasinghe actually reported this issue on 22 May - see https://expensify.slack.com/archives/C049HHMV9SM/p1684775756347189 - which led to the creation of this #20083, which is a dupe of this. Can we please compensate @pubudu-ranasinghe $250 for the bonus here too, as well as @priya-zha as this was our error. Thanks

@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 5, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Editing just emoji on a chat cuts the top part on android [HOLD for payment 2023-06-12] [$1000] Editing just emoji on a chat cuts the top part on android Jun 5, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 5, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 5, 2023

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

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Jun 5, 2023

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:

  • [@mananjadhav] The PR that introduced the bug has been identified. Link to the PR:
  • [@mananjadhav] 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:
  • [@mananjadhav] 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:
  • [@mananjadhav] Determine if we should create a regression test for this bug.
  • [@mananjadhav] 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.
  • [@lschurr] Link the GH issue for creating/updating the regression test once above steps have been agreed upon: https://github.com/Expensify/Expensify/issues/291734

@lschurr
Copy link
Contributor

lschurr commented Jun 8, 2023

@pubudu-ranasinghe @priya-zha @mananjadhav @kushu7 - can you apply for the job in Upwork? https://www.upwork.com/jobs/~014c149c7f2dfb4aae

@kushu7
Copy link
Contributor

kushu7 commented Jun 8, 2023

@pubudu-ranasinghe @priya-zha @mananjadhav @kushu7 - can you apply for the job in Upwork? https://www.upwork.com/jobs/~014c149c7f2dfb4aae

@lschurr applied 👍

@priya-zha
Copy link

Submitted the proposal. Thanks.

@mananjadhav
Copy link
Collaborator

@lschurr The job leads to me a login page, and then after logging in, it doesn't redirect to the job post. Can you please send an invite?

@lschurr
Copy link
Contributor

lschurr commented Jun 9, 2023

Hmm @mananjadhav try logging in first and then click the job link? https://www.upwork.com/jobs/~014c149c7f2dfb4aae

Otherwise, can you send me your profile and I'll try inviting you

@mananjadhav
Copy link
Collaborator

@lschurr https://www.upwork.com/freelancers/~01916123f547b928d6 For some reason my session times out every time with Upwork.

@mananjadhav
Copy link
Collaborator

@lschurr Here's are the items from the checklist.

  1. Offending PR Fix for: Triple clicking an edited message select’s the (edited) label along with the actual message Att# 2 #18523
  2. Commented on the PR https://github.com/Expensify/App/pull/18523/files#r1225946551
  3. I don't think we need any changes in the checklist. This was an edge case which required only emojis to reproduce.
  4. I think it makes sense to add regression test for this one, so that we don't leave out only emojis test during editing the chat. Test steps from the PR look good for the regression test.

@lschurr
Copy link
Contributor

lschurr commented Jun 12, 2023

@mananjadhav - I sent an invite to the job in Upwork.

@pubudu-ranasinghe please apply to the job in Upwork: https://www.upwork.com/jobs/~014c149c7f2dfb4aae

@mananjadhav
Copy link
Collaborator

Applied @lschurr. Thank you!

@lschurr
Copy link
Contributor

lschurr commented Jun 13, 2023

Great, just need @pubudu-ranasinghe to accept the offer in Upwork.

I'll create a GH for a new regression test today.

@mananjadhav
Copy link
Collaborator

@lschurr this issue is eligible for the timeline bonus. Can you please help with the same?

@lschurr
Copy link
Contributor

lschurr commented Jun 13, 2023

Ah, yep. Let me apply those bonuses.

@lschurr
Copy link
Contributor

lschurr commented Jun 13, 2023

Done!

@mananjadhav
Copy link
Collaborator

Thanks @lschurr for the prompt action!

@lschurr
Copy link
Contributor

lschurr commented Jun 14, 2023

@lschurr lschurr closed this as completed Jun 14, 2023
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 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests