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-10-23] [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-20] [HOLD for payment 2023-10-20] [$500] Can click on the space on the right to change the default skin tone #28917

Closed
6 tasks done
m-natarajan opened this issue Oct 5, 2023 · 26 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

Comments

@m-natarajan
Copy link

m-natarajan commented Oct 5, 2023

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


Action Performed:

  1. Open any report
  2. Send a message
  3. Hover on message and click add reaction
  4. Hover on space on the right of "change the default skin tone", Observe clickable

Expected Result:

Can not click on space on the right of "change the default skin tone"

Actual Result:

Can click on space on the right of "change the default skin tone"

Workaround:

unknown

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.78-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
Notes/Photos/Videos: Any additional supporting documentation

Screen.Recording.2023-10-04.at.20.15.30.mov
Screen.Recording.2023-10-04.at.20.12.47.mov
RPReplay_Final1696424601.MP4
RPReplay_Final1696424637.MP4
Screen.Recording.2023-10-04.at.20.02.44.mov
Screen.Recording.2023-10-04.at.19.52.55.mov
Recording.475.mp4

Expensify/Expensify Issue URL:
Issue reported by: @namhihi237
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696424388503359

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01da9a465c887f2507
  • Upwork Job ID: 1709929828423364608
  • Last Price Increase: 2023-10-05
  • Automatic offers:
    • Pujan92 | Contributor | 27095403
    • namhihi237 | Reporter | 27095405
@m-natarajan m-natarajan added the External Added to denote the issue can be worked on by a contributor label Oct 5, 2023
@melvin-bot melvin-bot bot changed the title Can click on the space on the right to change the default skin tone [$500] Can click on the space on the right to change the default skin tone Oct 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2023

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 5, 2023
@saranshbalyan-1234
Copy link
Contributor

Proposal

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

Able to click on the space on the right to 'change the default skin tone'

What is the root cause of that problem?

<PressableWithoutFeedback
onPress={toggleIsSkinToneListVisible}
style={[styles.flex1, styles.flexRow, styles.alignSelfCenter, styles.justifyContentStart, styles.alignItemsCenter]}
accessibilityLabel={props.translate('emojiPicker.skinTonePickerLabel')}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON}
>
<View style={[styles.emojiItem, styles.justifyContentCenter]}>
<Text style={[styles.emojiText, styles.ph2, styles.textNoWrap]}>{currentSkinTone.code}</Text>
</View>
<Text style={[styles.emojiSkinToneTitle]}>{props.translate('emojiPicker.skinTonePickerLabel')}</Text>
</PressableWithoutFeedback>

styles.flex1 is causing the issue to occupy all the space available.

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

Remove styles.flex1 from and add styles.ml4 to the <Text component where 'emojiPicker.skinTonePickerLabel' is there.
Solution would look something like this.
Tested and works fine in all platform

  <PressableWithoutFeedback
          onPress={toggleIsSkinToneListVisible}
          style={[styles.flexRow, styles.alignSelfCenter, styles.justifyContentStart, styles.alignItemsCenter]}
          accessibilityLabel={props.translate('emojiPicker.skinTonePickerLabel')}
          accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON}
    >
          <View style={[styles.emojiItem, styles.justifyContentCenter]}>
                 <Text style={[styles.emojiText, styles.ph2, styles.textNoWrap]}>{currentSkinTone.code}</Text>
          </View>
          <Text style={[styles.emojiSkinToneTitle,styles.ml4]}>{props.translate('emojiPicker.skinTonePickerLabel')}</Text>
  </PressableWithoutFeedback>

What alternative solutions did you explore? (Optional)

N/A

@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2023

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Oct 5, 2023
@m-natarajan
Copy link
Author

Proposal by @namhihi237

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

We want to fix can not click on the space on the right of "change the default skin tone"

What is the root cause of that problem?

We are having PressableWithoutFeedback wrap icon and text. it is taking up the entire width.

<PressableWithoutFeedback
onPress={toggleIsSkinToneListVisible}
style={[styles.flex1, styles.flexRow, styles.alignSelfCenter, styles.justifyContentStart, styles.alignItemsCenter]}
accessibilityLabel={props.translate('emojiPicker.skinTonePickerLabel')}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON}
>
<View style={[styles.emojiItem, styles.justifyContentCenter]}>
<Text style={[styles.emojiText, styles.ph2, styles.textNoWrap]}>{currentSkinTone.code}</Text>
</View>
<Text style={[styles.emojiSkinToneTitle]}>{props.translate('emojiPicker.skinTonePickerLabel')}</Text>
</PressableWithoutFeedback>

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

We should remove flex1 in Pressable Without Feedback so that it no longer takes up the entire width

<PressableWithoutFeedback
    style={[styles.flexRow, styles.alignSelfCenter, styles.justifyContentStart, styles.alignItemsCenter]}
>
       <View style={[styles.emojiItem, styles.justifyContentCenter, styles.mh2]}>
            <Text style={[styles.emojiText]}>{currentSkinTone.code}</Text>

What alternative solutions did you explore? (Optional)

N/A

@Pujan92
Copy link
Contributor

Pujan92 commented Oct 5, 2023

Proposal

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

An entire row of the skin tone is pressable

What is the root cause of that problem?

We have given flex1 for the Pressable which will take available width.

style={[styles.flex1, styles.flexRow, styles.alignSelfCenter, styles.justifyContentStart, styles.alignItemsCenter]}

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

We need to make below changes

  1. Remove flex1 style from the Pressable

  2. Add styles.wAuto to the wrapper View of the currentSkinTone

    <View style={[styles.emojiItem, styles.justifyContentCenter]}>

Why? bcoz style class emojiItem contains prop width: 12.5% and if we take out flex1 from parent then the width gets reduced and this 12.5% width won't be sufficient for the currentSkinTone. So with styles.wAuto it will override the width and take the required width.

  1. Remove width 100% from the emojiSkinToneTitle otherwise it overflows and creates an issue for native.
    https://github.com/Expensify/App/blob/76c971b1430df7ddbfe2ce4a80c400ab4e9d1fd6/src/components/EmojiPicker/EmojiSkinToneList.js#L56C47-L56C47

    App/src/styles/styles.js

    Lines 1745 to 1746 in 76c971b

    emojiSkinToneTitle: {
    width: '100%',

@allroundexperts
Copy link
Contributor

allroundexperts commented Oct 8, 2023

@Pujan92's proposal looks good to me.

With all prior proposals, the layout seems to break on Android like below:

Screenshot 2023-10-09 at 1 01 37 AM

🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Oct 8, 2023

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

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

melvin-bot bot commented Oct 9, 2023

📣 @allroundexperts Please request via NewDot manual requests for the Reviewer role ($500)

@melvin-bot
Copy link

melvin-bot bot commented Oct 9, 2023

📣 @Pujan92 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Oct 9, 2023

📣 @namhihi237 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@Pujan92
Copy link
Contributor

Pujan92 commented Oct 10, 2023

@allroundexperts PR is ready for review!

@melvin-bot
Copy link

melvin-bot bot commented Oct 11, 2023

🎯 ⚡️ Woah @allroundexperts / @Pujan92, great job pushing this forwards! ⚡️

The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉

  • when @Pujan92 got assigned: 2023-10-09 07:01:44 Z
  • when the PR got merged: 2023-10-11 07:33:55 UTC

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 13, 2023
@melvin-bot melvin-bot bot changed the title [$500] Can click on the space on the right to change the default skin tone [HOLD for payment 2023-10-20] [$500] Can click on the space on the right to change the default skin tone Oct 13, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 13, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 13, 2023

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

@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-10-20] [$500] Can click on the space on the right to change the default skin tone [HOLD for payment 2023-10-20] [HOLD for payment 2023-10-20] [$500] Can click on the space on the right to change the default skin tone Oct 13, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 13, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.83-11 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-10-20. 🎊

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

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

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 melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Oct 16, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-10-20] [HOLD for payment 2023-10-20] [$500] Can click on the space on the right to change the default skin tone [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-20] [HOLD for payment 2023-10-20] [$500] Can click on the space on the right to change the default skin tone Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.84-10 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-10-23. 🎊

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

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

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 melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Oct 16, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-20] [HOLD for payment 2023-10-20] [$500] Can click on the space on the right to change the default skin tone [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-20] [HOLD for payment 2023-10-20] [$500] Can click on the space on the right to change the default skin tone Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.84-10 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-10-23. 🎊

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

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

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

@allroundexperts
Copy link
Contributor

Checklist

  1. Added skin tone support for Emojis #4456
  2. https://github.com/Expensify/App/pull/4456/files#r1363669041
  3. N/A
  4. A regression test would be good.

Regression test

  1. Login and open any report
  2. Send a message
  3. Hover on message and click add reaction
  4. Hover on space on the right of "change the default skin tone" and verify that its not clickable

Do we 👍 or 👎 ?

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Oct 20, 2023
@MariaHCD
Copy link
Contributor

Look good to me. Although I just realized we don't have a BZ member on this issue? 😕

@melvin-bot melvin-bot bot removed the Overdue label Oct 23, 2023
@MariaHCD MariaHCD added the Bug Something is broken. Auto assigns a BugZero manager. label Oct 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 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

@MariaHCD
Copy link
Contributor

@MitchExpensify The PR has already been merged and deployed, we just need the payments to go out here. Thanks!

@JmillsExpensify
Copy link

Need a payment summary for this issue.

@MitchExpensify
Copy link
Contributor

Payment summary:

@JmillsExpensify
Copy link

$750 payment approved for @allroundexperts based on comment above.

@MitchExpensify
Copy link
Contributor

All paid in Upwork

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
Projects
None yet
Development

No branches or pull requests

7 participants