Page MenuHomePhabricator

[web] Increase clickable region of `ChatThreadListSidebar`
ClosedPublic

Authored by atul on Mar 29 2022, 12:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jul 5, 9:33 AM
Unknown Object (File)
Wed, Jul 3, 8:53 PM
Unknown Object (File)
Wed, Jul 3, 9:57 AM
Unknown Object (File)
Wed, Jul 3, 3:42 AM
Unknown Object (File)
Sun, Jun 30, 2:52 AM
Unknown Object (File)
Wed, Jun 26, 6:05 PM
Unknown Object (File)
Wed, Jun 26, 6:05 PM
Unknown Object (File)
Wed, Jun 26, 6:05 PM

Details

Summary

Basically D3543 but for ChatThreadListSidebar

Clickable area before:

d08a.png (228×800 px, 23 KB)

Clickable area after:

000a.png (66×822 px, 8 KB)

Test Plan

Looks and behaves as expected: [will drag in video on phabricator]

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul edited the test plan for this revision. (Show Details)
atul added inline comments.
web/chat/chat-thread-list-sidebar.react.js
25 ↗(On Diff #10788)

"Why not remove the useOnClickThread(threadInfo) from SidebarItem if we moved it out here?"

SidebarItem is also used in the Sidebar modal and so I didn't want to break that (any further) with this change. Sidebar modal requires a lot of work, so I'll make sure to address the redundancy then.

atul requested review of this revision.Mar 29 2022, 12:45 PM

Like in D3543 I'm not sure about extending the area near ellipsis button

web/chat/chat-thread-list-sidebar.react.js
25 ↗(On Diff #10788)

But aren't we going to fire an event twice if we keep both handlers?

This revision is now accepted and ready to land.Mar 30 2022, 3:17 AM
web/chat/chat-thread-list-sidebar.react.js
25 ↗(On Diff #10788)

I believe event.stopPropogation() should prevent that

In D3545#97054, @palys-swm wrote:

Like in D3543 I'm not sure about extending the area near ellipsis button

addressed in D3543: https://phabricator.ashoat.com/D3543#97252

This revision was landed with ongoing or failed builds.Mar 31 2022, 9:22 AM
This revision was automatically updated to reflect the committed changes.