Page MenuHomePhabricator

[web] introduce member list sidebar
ClosedPublic

Authored by ginsu on Feb 1 2024, 3:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 30, 5:26 PM
Unknown Object (File)
Sun, Jun 30, 9:26 AM
Unknown Object (File)
Sat, Jun 29, 1:11 PM
Unknown Object (File)
Mon, Jun 24, 9:26 AM
Unknown Object (File)
Sun, Jun 23, 11:24 PM
Unknown Object (File)
Sun, Jun 23, 11:09 PM
Unknown Object (File)
Fri, Jun 21, 3:38 AM
Unknown Object (File)
Thu, Jun 20, 7:07 PM
Subscribers

Details

Summary

This diff introduces the member list sidebar component. Subsequent diffs will handle adding this component to the chat panel

Linear task: https://linear.app/comm/issue/ENG-5975/introduce-new-member-list-section

Depends on D10921

Test Plan

Please see the demo video below (the duplicate users here are just for testing purposes + not a part of this diff)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, inka.
ginsu requested review of this revision.Feb 1 2024, 4:05 PM
web/chat/member-list-sidebar/member-list-sidebar.react.js
26 ↗(On Diff #36560)

Should this be behind a memo like in D10921?

atul added inline comments.
web/chat/member-list-sidebar/member-list-sidebar.react.js
26 ↗(On Diff #36560)

+1, would be good to memoize groupedMemberList as well as the return value of MembersListSidebar

31 ↗(On Diff #36560)

IMO think it would make sense to push this "down" to the SortedMemberListGroup component as a groupLabel prop. Seems a bit weird that the group label is "floating" outside in the MembersListSidebar, feels like they should be coupled.

In the future would also make it easier to enable collapsing/expanding of groups, etc.

This revision is now accepted and ready to land.Feb 5 2024, 11:07 AM
This revision was landed with ongoing or failed builds.Feb 7 2024, 4:42 PM
This revision was automatically updated to reflect the committed changes.