Page MenuHomePhabricator

[web] convert pendingUsersToAdd into a map
ClosedPublic

Authored by ginsu on Jan 25 2024, 11:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 9 2024, 12:11 AM
Unknown Object (File)
Apr 9 2024, 12:11 AM
Unknown Object (File)
Apr 9 2024, 12:11 AM
Unknown Object (File)
Apr 9 2024, 12:10 AM
Unknown Object (File)
Apr 9 2024, 12:10 AM
Unknown Object (File)
Mar 29 2024, 2:23 PM
Unknown Object (File)
Mar 6 2024, 8:31 AM
Unknown Object (File)
Mar 6 2024, 8:31 AM
Subscribers

Details

Summary

PLEASE NOTE THAT THIS DIFF AND SUBSEQUENT DIFFS IN THIS STACK WILL NOT BE LANDED UNTIL MORE OF THE REDESIGN IS READY SINCE THIS WILL CAUSE REGRESSIONS IN PROD

This next part of the stack will introduce the concept of "vip users" (happy to change the name of this just couldn't think of anything better). "vip users" will be selected users that are visually separated from the other users (similar to Linear). For context here is what the selected vip users section should look like:

Screenshot 2024-01-25 at 2.45.02 PM.png (1×1 px, 426 KB)

As I was implementing this I realized that pendingUsersToAdd should actually be a map and not a set. This diff makes that following change

Linear task: https://linear.app/comm/issue/ENG-5960/selected-users-section

Depends on D10747

Test Plan

flow + confirmed that there were no regressions to the add users experience

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Looks good. From a naming standpoint, I think I'd prefer something like previouslySelectedUsers or something along those lines.

(I like the "VIP" naming and think it makes sense when you're looking at the UI and see the users appear above the separator, but think the meaning can be confusing when you're reading the code.)

This revision is now accepted and ready to land.Jan 29 2024, 7:28 PM
This revision was landed with ongoing or failed builds.Feb 15 2024, 1:19 AM
This revision was automatically updated to reflect the committed changes.