Page MenuHomePhabricator

[native] Increase size of camera and gallery icons
ClosedPublic

Authored by rohan on Sep 17 2022, 6:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 20, 9:37 PM
Unknown Object (File)
Sat, Apr 20, 9:37 PM
Unknown Object (File)
Sat, Apr 20, 9:37 PM
Unknown Object (File)
Sat, Apr 20, 9:37 PM
Unknown Object (File)
Sat, Apr 20, 9:37 PM
Unknown Object (File)
Sat, Apr 20, 9:28 PM
Unknown Object (File)
Mar 18 2024, 6:24 PM
Unknown Object (File)
Feb 22 2024, 4:51 AM
Subscribers

Details

Summary

Increased the size of the icons in chat (camera and gallery icons), and added some more padding
between the icons and the chat input to address the issue of accidental clicks. This addresses ENG-1723:
https://linear.app/comm/issue/ENG-1723/take-photo-photo-gallery-icons-should-be-bigger

Test Plan

Compared the icon sizes on both Android and iOS before and after making these changes, and the
icons are visually larger and easier to click as they are separated a little more. Since there is no official
design for this yet, reviewer feedback can decide if it's visually and functionally better.

Before:

ENG-1723 Before.png (1×1 px, 938 KB)

After:

ENG-1723 After.png (1×1 px, 882 KB)

Additionally, I tested the tap radiuses of each component and it's much easier to interact with the respective icons. Similarly, increasing the size of these doesn't cause any undesired behavior with the expando button and typing a message.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rohan requested review of this revision.Sep 17 2022, 7:02 AM

Looks great!! A couple questions:

  1. Have you played around with the expando button and the keyboard to make sure animations / transitions still look good between every combo of states you can identify? (Would add this to test plan.)
  2. What's the tap target here? Can you share a screenshot of the tap target highlighted in some color?

Looks great!! A couple questions:

  1. Have you played around with the expando button and the keyboard to make sure animations / transitions still look good between every combo of states you can identify? (Would add this to test plan.)

Yes! Simulated the typing experience with the expando button multiple times on both devices when I had them running. Transitions still look good and I didn't notice a difference in behavior either. Thanks for the heads up, I'll add it to the test plan now.

  1. What's the tap target here? Can you share a screenshot of the tap target highlighted in some color?

Yes, the current tap target is as follows (anywhere within the box surrounding the icon opens that respective icon):

Before Tap radius.png (1×784 px, 115 KB)

I can even it out a little by increasing the padding on the camera icon, to have a tap radius like this

After Tap radius.png (1×772 px, 114 KB)

For reference, the tap targets look like this currently, before any changes and this diff:

Used to be.png (1×772 px, 125 KB)

Cool, seems good to me.

This revision is now accepted and ready to land.Sep 19 2022, 10:37 AM

I can even it out a little by increasing the padding on the camera icon, to have a tap radius like this

I wouldn't do this if it results in things looking off-balance. Tap target changes should never result in visual changes... goal is to keep things looking the same, but to make the tap target better.

Would like @atul's perspective on the tap target as well

This revision now requires review to proceed.Sep 19 2022, 10:38 AM

I can even it out a little by increasing the padding on the camera icon, to have a tap radius like this

I wouldn't do this if it results in things looking off-balance. Tap target changes should never result in visual changes... goal is to keep things looking the same, but to make the tap target better.

Agreed, thanks for the feedback! Will leave it as is for now then, and wait for @atul and @abosh (as he originally submitted it on linear)

atul requested changes to this revision.Sep 21 2022, 8:25 AM
atul added a subscriber: ginsu.

Some fit and finish issues here

  1. Expando button isn't centered horizontally
  2. Expando button has too much horizontal margin/padding
  3. Vertical alignment between camera/media gallery icons and chat input bar is off
  4. Vertical alignment of "Send a message..." within the ChatInputBar is off

In addition the size of the camera/media gallery icons might have been increased a little too much IMO

Since there is no official design for this yet, reviewer feedback can decide if it's visually and functionally better.

Like you said, there's no concrete solution here and things are a bit subjective... but I think we can at least address the alignment stuff right. Once those obvious things are addressed, we can set up a call or something to settle on the more subjective stuff (CC @ginsu since he's got design interest/background).

This revision now requires changes to proceed.Sep 21 2022, 8:25 AM

Revision to update icon sizing.

To address your points @atul, looking back at the photos I can agree that perhaps the icons were a little too big, and that was causing some undesired UI effects like the alignments and the expando button's padding being affected.

I spent some more time on this revision to make sure the padding doesn't get in the way of alignments, let me know your thoughts & if you feel like it can still be refined!

New Tap Targets.png (2×1 px, 141 KB)

New Icons.png (2×1 px, 140 KB)

New Expando.png (2×1 px, 137 KB)

atul requested changes to this revision.Sep 26 2022, 6:39 PM

Closer!

1d4fdd.png (236×1 px, 99 KB)

Let's nudge the icons down a bit to get it centered vertically w/ the ChatInputBar.

(If you want we can schedule a call to get this right without the Phabricator back and forth if there are any issues)

This revision now requires changes to proceed.Sep 26 2022, 6:39 PM
In D5169#153972, @atul wrote:

Let's nudge the icons down a bit to get it centered vertically w/ the ChatInputBar.
(If you want we can schedule a call to get this right without the Phabricator back and forth if there are any issues)

Sounds good! I'll follow up with you about it before I push out another revision.

Fix vertical alignment of icons

Icons Aligned.png (534×1 px, 259 KB)

This revision is now accepted and ready to land.Sep 27 2022, 1:10 PM