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)
Thu, Nov 14, 8:54 AM
Unknown Object (File)
Fri, Nov 8, 12:43 PM
Unknown Object (File)
Fri, Nov 8, 12:43 PM
Unknown Object (File)
Fri, Nov 8, 12:43 PM
Unknown Object (File)
Fri, Nov 8, 12:43 PM
Unknown Object (File)
Sat, Nov 2, 4:41 AM
Unknown Object (File)
Sat, Nov 2, 4:41 AM
Unknown Object (File)
Sat, Nov 2, 4:41 AM

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
Branch
landmarch31 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

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.