Page MenuHomePhabricator

[web] move the send friend request button to add users list modal
ClosedPublic

Authored by ginsu on Jan 18 2024, 11:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 5:43 AM
Unknown Object (File)
Thu, Nov 7, 5:24 AM
Unknown Object (File)
Thu, Oct 31, 8:59 AM
Unknown Object (File)
Thu, Oct 31, 8:59 AM
Unknown Object (File)
Thu, Oct 31, 8:59 AM
Unknown Object (File)
Thu, Oct 31, 8:59 AM
Unknown Object (File)
Thu, Oct 31, 8:59 AM
Unknown Object (File)
Thu, Oct 31, 8:59 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

With the new modals API introduced in D10228 we need to move + lift the logic for the send friend request button to the AddUsersListModal so that we can pass it in as the primaryButton prop

For context here is what the action button container for the add users modal should look like (subsequent diffs will handle more updates to the UI):

Screenshot 2024-01-18 at 2.58.18 PM.png (1×788 px, 130 KB)

Depends on D10344

Test Plan

flow + checked that the confirm button for the add friends modal visually follows the new modal rules:

Screenshot 2024-01-18 at 2.51.13 PM.png (3×5 px, 1 MB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, inka.
web/settings/relationship/add-users-list-modal.react.js
70 ↗(On Diff #35840)

A subsequent diff will handle fixing this, will tag when it is in review

107 ↗(On Diff #35840)

A subsequent diff will handle fixing this, will tag when it is in review

web/settings/relationship/add-users-list.react.js
236–238 ↗(On Diff #35840)

The new ui does not include a cancel button so we can remove this entirely

ginsu added inline comments.
web/settings/relationship/add-users-list-modal.react.js
70 ↗(On Diff #35840)

I didn't include it in this diff, because I felt that it would make this diff more difficult to review

web/settings/relationship/add-users-list-modal.react.js
71

A subsequent diff will handle fixing this, will tag when it is in review.

I didn't include it in this diff, because I felt that it would make this diff more difficult to review

108

A subsequent diff will handle fixing this, will tag when it is in review.

I didn't include it in this diff, because I felt that it would make this diff more difficult to review

web/settings/relationship/add-users-list.react.js
237–239

The new ui does not include a cancel button so we can remove this entirely

web/settings/relationship/add-users-list-modal.react.js
71
108
This revision is now accepted and ready to land.Jan 22 2024, 9:24 AM