Page MenuHomePhabricator

[web] introduce previouslySelectedUsers ui to add users list
ClosedPublic

Authored by ginsu on Jan 25 2024, 12:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 13 2024, 12:41 AM
Unknown Object (File)
Mar 12 2024, 8:07 PM
Unknown Object (File)
Mar 9 2024, 10:22 AM
Unknown Object (File)
Mar 9 2024, 10:00 AM
Unknown Object (File)
Mar 6 2024, 8:31 AM
Unknown Object (File)
Mar 6 2024, 8:31 AM
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

Now that we have the previously selected users stored in the previouslySelectedUsers map, we should display them in the add users list.

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

Depends on D10820

Test Plan

Please see the demo video below

The user list is now in alphabetical order with ENS names:

Screenshot 2024-01-31 at 2.30.48 PM.png (2×3 px, 777 KB)

Screenshot 2024-01-31 at 2.30.58 PM.png (2×3 px, 781 KB)

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.
atul requested changes to this revision.Jan 29 2024, 7:40 PM

Question inline about order of alphabetizing usernames and resolving ENS names

web/settings/relationship/add-users-list.react.js
151 ↗(On Diff #36142)

Don't we want to sort AFTER we've resolved ENS names?

Couldn't the sort order change? (eg if someone is aaaaaaaaaaa.eth they should be first in order)

230–237 ↗(On Diff #36142)

Wouldn't hurt to memoize this

This revision now requires changes to proceed.Jan 29 2024, 7:40 PM

Thanks for addressing feedback, could we use if statement instead of invariant where I annotated?

web/settings/relationship/add-users-list.react.js
123–125 ↗(On Diff #36461)

Could we use if statement instead of invariant?

This revision is now accepted and ready to land.Jan 31 2024, 12:53 PM
ginsu edited the test plan for this revision. (Show Details)

rebase + address comments

Thanks for addressing feedback, could we use if statement instead of invariant where I annotated?

will handle this in D10823

update vip users with previouslySelectedUsers

ginsu retitled this revision from [web] introduce vip users ui to add users list to [web] introduce previouslySelectedUsers ui to add users list.Jan 31 2024, 3:34 PM
ginsu edited the summary of this revision. (Show Details)
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.