-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[PAID] [$1000] Padding below 'change default skin tone' increases on no result found in emoji picker #15868
Comments
Triggered auto assignment to @anmurali ( |
Bug0 Triage Checklist (Main S/O)
|
@anmurali Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~019f078af8705c66b2 |
Current assignee @anmurali is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
Triggered auto assignment to @iwiznia ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Padding below 'change default skin tone' increases on no result found in emoji picker. What is the root cause of that problem?It is rendering "No results found" message via App/src/components/EmojiPicker/EmojiPickerMenu/index.js Lines 499 to 513 in b69b5f3
We can see that What changes do you think we should make in order to solve the problem?Within <Text
style={[
styles.disabledText,
styles.emojiPickerList,
styles.dFlex,
styles.flex1, // *** ADD THIS ***
styles.alignItemsCenter,
styles.justifyContentCenter,
this.isMobileLandscape() && styles.emojiPickerListLandscape,
]}
>
{this.props.translate('common.noResultsFound')}
</Text> What alternative solutions did you explore? (Optional)None |
ProposalPlease re-state the problem that we are trying to solve in this issue.The position of the 'change default skin tone' text change when no result is found in the emoji picker What is the root cause of that problem?If no result is found when searching for emoji, the What changes do you think we should make in order to solve the problem?We could add the ResultScreen.Recording.2023-03-13.at.14.44.03.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.On emoji picker screen 'change default skin tone' button jumps up when we have 'No results found screen'. What is the root cause of that problem?This issue(#15868) seems to be a regression from #15730 What changes do you think we should make in order to solve the problem?Option 1: Currently we show the 'no results component' for only big screen web devices in which case the emoji picker component has 416 height. So instead of hardcoding height of 'No results component', we can add styles.h100 here - https://github.com/Expensify/App/blob/main/src/components/EmojiPicker/EmojiPickerMenu/index.js#L507. This way 'No results' component will automatically adjust to the height of emoji picker and we don't need to update the height value of 'No results' component everytime we update the picker height. Option 2: We can hardcode the height as 296(currently 288 + 8 extra left space) for the 'No result component'. Option 3 (Extended option to solve the small screen issue - #15868 (comment)): Giving a small background on that, As you can see the number of emoji rows we show in desktops is 7 and in small screen devices we show 8 but we give the flatlist a size of 288 in both the cases here - https://github.com/Expensify/App/blob/main/src/styles/styles.js#L1531. The reason is for this we don't give predefined height in case of emoji picker shown on smallscreenwidth sizes. (Not sure on why we didn't give though) Lines 456 to 467 in 885de7e
So what happens when we don't give a predefined height is that the height of the emoji picker is calculated as the sum of its child components. To the contrast in big screen devices the flatlist takes up 256px space only which is the only amount space left after other components take up from the predefined emoji component height of 416px Coming back to the problem of 'No results' component having issues if we give 'h100' is that there is no predefined height for the component to grow into. So in case of small screen width sizes, if we wanted to show the 'No results' component to cope up correctly,
Working video: Screen.Recording.2023-03-15.at.11.31.45.PM.movWhat alternative solutions did you explore? (Optional)There are multiple ways to achieve the result by modifying different styles but the above seems the best and future proof. |
FYI to contributors there has already been a proposal to fix this regression by @abdulrahuman5196 here, which will be prioritized #15730 (comment) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Height inconsistency for Not Result Found in Emoji Picker What is the root cause of that problem?Incorrect height is given for the
Lines 1497 to 1498 in 20d5fdc
What changes do you think we should make in order to solve the problem?We can add style
Extra: For Web we need |
@iwiznia, @anmurali, @rushatgabhane Eep! 4 days overdue now. Issues have feelings too... |
@iwiznia, @anmurali, @rushatgabhane 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it! |
Posted here to make a decision here |
Proposal #15868 (comment)
That will break the emoji screen when we reduce the the screen size.
I like option 2 the best. |
@abdulrahuman5196 i agree with the root cause. but i don't agree with the problem saying that this is a regression from X PR. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.92-2 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-04-07. 🎊 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.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
Hi @rushatgabhane, @iwiznia , @anmurali , ping for payment. |
@iwiznia, @anmurali, @rushatgabhane, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick! |
1 similar comment
@iwiznia, @anmurali, @rushatgabhane, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@rushatgabhane can you take care of your items in the checklist? I think I pay and add regression tests last. |
|
So what is missing here? Payment with the regression taken into consideration @anmurali? |
@tienifr - I cannot find you on Upwork. Your Slack and GH both don't list your name. Can you post it here so I know how to find you to pay you? |
Bump @tienifr |
sorry missed this, @anmurali here's my Upwork profile https://www.upwork.com/freelancers/~01991fd5e5c11ef3ba, thanks |
Offers sent |
Everyone's paid now! |
hi @anmurali The PR is merged within 3 days of assignment so unless I'm missing something, this should be eligible for the speed bonus 🙇♂️. |
Done. @tienifr if you have asked her once and haven't received an answer in a week perhaps you can ping in Slack and tag the person you are waiting on instead? |
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:
Expected Result:
Padding below 'change default skin tone' should be same all the time
Actual Result:
Padding below 'change default skin tone' increases on no result found search in emoji picker
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.82-3
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:
padding.below.skin.tone.mp4
Recording.1680.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1678467171785959
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: