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)
Thu, Dec 26, 7:09 PM
Unknown Object (File)
Thu, Dec 26, 7:09 PM
Unknown Object (File)
Thu, Dec 26, 7:09 PM
Unknown Object (File)
Thu, Dec 26, 7:09 PM
Unknown Object (File)
Sun, Dec 15, 11:50 AM
Unknown Object (File)
Nov 10 2024, 1:02 AM
Unknown Object (File)
Nov 8 2024, 10:03 PM
Unknown Object (File)
Nov 8 2024, 7:16 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.