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

Reduced emoji spacing and increased emoji size #4782

Merged
merged 4 commits into from
Aug 26, 2021

Conversation

mananjadhav
Copy link
Collaborator

@mananjadhav mananjadhav commented Aug 23, 2021

@chiragsalian Can you please review this?

Details

Reduced spacing between emojis and increased emoji size.

Fixed Issues

$ #4544

Tests

  1. Tested emoji picker on all platforms
  2. Tested landscape mode. Added before and after screenshots.

QA Steps

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

web-old-view

web-view

Mobile Web

Portrait
old-portrait
mweb

Landscape
old landscape
mweb landscape

Desktop

desktop

iOS

ios

Android

android

@mananjadhav mananjadhav requested a review from a team as a code owner August 23, 2021 16:19
@MelvinBot MelvinBot requested review from chiragsalian and removed request for a team August 23, 2021 16:19
Copy link
Contributor

@chiragsalian chiragsalian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With these changes to emoji sizes i see these as unused.
https://github.com/mananjadhav/App/blob/2a6e5b9323e2e8c6bd423a0c3d67169fe4415238/src/styles/styles.js#L1209-L1215

Could we remove them and iconSizeLarge?

Rest of your code looks good to me.

@mananjadhav
Copy link
Collaborator Author

mananjadhav commented Aug 24, 2021

@chiragsalian iconSizeLarge isn't used but iconSizeNormal, iconSizeSmall are used. I kept it as is just to retain the sequence. Do you still want me to remove it?

And the highlighted lines were still unused before my change. Let me know if you want me to remove those as well.

@shawnborton
Copy link
Contributor

Can you help me understand why we need so many different sizes for emojis?
image

@mananjadhav
Copy link
Collaborator Author

@shawnborton We are currently using extraSmall, Normal and Large. I’ve added the small as well to ensure continuous range and if it gets used in the future.

The above three sizes are added so that the overall container is size is not increased. We use different sizes based on device width.

https://github.com/Expensify/App/blob/2a6e5b9323e2e8c6bd423a0c3d67169fe4415238/src/pages/home/report/EmojiPickerMenu/dynamicEmojiSize.js

@shawnborton
Copy link
Contributor

So emojiSizeSmall is not used? If it's not used and we aren't sure if/when it will ever be used in the future, we can remove it.

That being said, I am questioning why we really need 3 sizes for this. For example, we only have one main text size that we share between mobile and desktop (15px). Can you try making this work with just one standard emoji size for the picker menu?

@mananjadhav
Copy link
Collaborator Author

mananjadhav commented Aug 24, 2021

Okay sure. I’ll remove the unused one.

I’ll try to make a common size. That would also mean either changing the container size or number of emojis per row. Is that something we are okay with ?

@shawnborton
Copy link
Contributor

Why do you need to change the container size or number of emojis?

If you recall from the issue you recreated... I am not sure that this is a real problem we are solving. I'd say try just adjusting the spacing first, and let's see how that looks before modifying the emoji size. Thanks!

@mananjadhav
Copy link
Collaborator Author

Okay I’ll check.

I was following the existing structure where emojisizes are different based on device width. So are you suggesting we get rid of the current dynamicEmojiSize approach as well?

@shawnborton
Copy link
Contributor

I think what I am saying is, let's just leave the emoji size alone to start (keep it how it currently is) and only modify the spacing of the buttons. Then let's review what the spacing changes do, and see if we need to make more adjustments from there.

@shawnborton
Copy link
Contributor

I didn't realize we were currently using three different emoji sizes for the menu, and I personally think that's overkill.

@mananjadhav
Copy link
Collaborator Author

Yeah sorry for not being more clearer. Hence I highlighted the container size changes. So should I still go ahead and try to make the size consistent?

@shawnborton
Copy link
Contributor

I would be curious to see what it looks like if we find one size that works everywhere... maybe it's something like 20?

@mananjadhav
Copy link
Collaborator Author

Sure lets try that. We can always rollback. I'll check and update you. 🚀

@shawnborton
Copy link
Contributor

Awesome, thanks for your patience on this one!

@mananjadhav
Copy link
Collaborator Author

@shawnborton This is how it looks with fixed size 20, with less horizontal padding and desktop web container width reduced to 320 (earlier was 392). Let's take it forward from here?

All three views
Screenshot 2021-08-24 at 5 24 51 PM

Web/Desktop Emoji Container Size
Here's another comparison between Emoji Container size 320 and 352.

image

My take is fontSize 20 looks good on mobile landscape and portrait. Web fontSize 20 should be good with container size 352.

@shawnborton
Copy link
Contributor

I think it looks pretty good. Thoughts?

@shawnborton
Copy link
Contributor

And yeah, I think it's okay if we adjust the container size on desktop to make sure things look good there too.

@mananjadhav
Copy link
Collaborator Author

@shawnborton I agree, it looks good. For container on desktop, do prefer 320 or 352 ?

@shawnborton
Copy link
Contributor

320 looks pretty good to me I think. Which do you prefer?

@mananjadhav
Copy link
Collaborator Author

Well I was included towards 352, but after checking a emoji mart, slack etc, it seems 320 might look better

@mananjadhav
Copy link
Collaborator Author

@chiragsalian I've updated the PR removing a fair amount of unused code. Can you please review it again?

@shawnborton
Copy link
Contributor

Awesome, thanks again for listening to my feedback and working through our comments!

@mananjadhav
Copy link
Collaborator Author

@chiragsalian Can you please review this PR again with the updated changes?

Copy link
Contributor

@chiragsalian chiragsalian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, looks clean 👍

@chiragsalian chiragsalian merged commit 1c89136 into Expensify:main Aug 26, 2021
@OSBotify
Copy link
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify
Copy link
Contributor

🚀 Deployed to staging by @chiragsalian in version: 1.0.88-3 🚀

platform result
🤖 android 🤖 cancelled 🔪
🖥 desktop 🖥 cancelled 🔪
🍎 iOS 🍎 cancelled 🔪
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

OSBotify commented Sep 1, 2021

🚀 Deployed to production by @roryabraham in version: 1.0.90-2 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 failure ❌
🕸 web 🕸 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants