Page MenuHomePhabricator

[web] [fix] arrows touch per IRL chat with ashoat
ClosedPublic

Authored by benschac on Feb 10 2022, 9:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 12:31 PM
Unknown Object (File)
Wed, Nov 13, 12:31 PM
Unknown Object (File)
Wed, Nov 13, 12:31 PM
Unknown Object (File)
Wed, Nov 13, 12:31 PM
Unknown Object (File)
Sun, Nov 10, 11:58 PM
Unknown Object (File)
Sun, Nov 10, 11:58 PM
Unknown Object (File)
Sun, Nov 10, 11:58 PM
Unknown Object (File)
Sun, Nov 10, 11:11 PM

Details

Summary

had to toggle menu button size to make arrows touch. Additionally, there wasn't any design for sub thread unread menu on hover.

Image 2022-02-10 at 11.57.37 AM.jpg (724×934 px, 61 KB)

Test Plan

make sure it looks like the screen shot

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ashoat requested changes to this revision.Feb 10 2022, 8:53 PM

@benschac, if you ever feel the need to short-circuit the review process please communicate clearly the purpose for the urgency

web/chat/chat-thread-list-item-menu.react.js
26 ↗(On Diff #9541)
  1. Is this really the right solution? Generally this is a React anti-pattern... a child component shouldn't need to know the context in which it's being rendered. Can you come up with a way to avoid this problem? It's not even clear to me why we can't use the same design in all places that this component is rendered
  2. What's "submenu"? I think it needs a better name if you're going to do this
  3. If you really want to do something like this, you should probably do a string enum like +renderStyle: 'submenu' | 'somethingElse'
This revision now requires changes to proceed.Feb 10 2022, 8:53 PM

address diff comments

web/chat/chat-thread-list-item-menu.react.js
26 ↗(On Diff #9541)
  1. I think so. We're using the same component in multiple contexts that call for different design.
  2. submenu --> thread. Updated it in my diff.
  3. did chat and thread --> does that make sense?

We're using the same component in multiple contexts that call for different design.

Before landing, can you share screenshots of the two different designs in Figma, so it's clear to your reviewers why we need this new renderStyle prop?

This revision is now accepted and ready to land.Feb 13 2022, 8:54 PM
In D3165#84763, @ashoat wrote:

We're using the same component in multiple contexts that call for different design.

Before landing, can you share screenshots of the two different designs in Figma, so it's clear to your reviewers why we need this new renderStyle prop?

Sure:

  • Image 2022-02-14 at 11.17.44 AM.jpg (856×1 px, 136 KB)
    the arrows on web figma don't have multiple threads. After chatting with ashoat, we made the decision to show multiple threads like this

After:

Image 2022-02-14 at 11.20.50 AM.jpg (596×982 px, 50 KB)

Why render style:

  • Additionally, there wasn't a unread button shown in figma either. In order to keep the arrows touching + unread buttions we needed a smaller menu buttion for threads.

Image 2022-02-14 at 11.22.42 AM.jpg (458×960 px, 42 KB)

Link to figma: https://www.figma.com/file/a1nkbWgbgjRlrOY9LVurTz/Comm-%2F-Desktop-app?node-id=1170%3A77104

@benschac: After seeing your screenshots, and then re-reading the diff description, I think I finally understand what's going on now.

What I understand now: we agreed that we wanted the line to be continuous, but you didn't see a design in Figma so you had to make one up. You wanted to minimize the amount of work, and to do that you wanted to compose the line by only using the icon. The easiest way to do that was to hack the design and make the height of the thread unit shorter.

I really wish you had taken the time to explain this in more detail in the diff description. The screenshots that you later provided were helpful, and should've been there originally. Additionally, I wish your diff description was longer, and looked more like my last paragraph in terms of the level of detail.

Anyways: I don't agree with this design hack and I wish we had had an explicit discussion about it. Let's follow-up in a separate task. Creating ENG-766 to track.