Page MenuHomePhabricator

[web] lift primary button logic from AddMembersModalContent into AddMembersModal
ClosedPublic

Authored by ginsu on Feb 5 2024, 6:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 8 2024, 1:05 PM
Unknown Object (File)
Apr 8 2024, 1:05 PM
Unknown Object (File)
Apr 8 2024, 1:05 PM
Unknown Object (File)
Apr 8 2024, 1:05 PM
Unknown Object (File)
Apr 8 2024, 1:05 PM
Unknown Object (File)
Apr 8 2024, 1:04 PM
Unknown Object (File)
Apr 7 2024, 11:01 PM
Unknown Object (File)
Apr 1 2024, 9:37 PM
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

To follow the conventions of the new Modal api introduced earlier in this project, we need to lift the logic for the primary button to the same level where we render SearchModal so we can pass the button in as the primaryButton prop

Linear task: https://linear.app/comm/issue/ENG-5976/add-members-modal-experience

Depends on D10943

Test Plan

Please see demo video below (please note there are some weird UI stuff that still needs to be polished up but a subsequent diff will fix that)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Feb 5 2024, 6:57 AM
Harbormaster failed remote builds in B26496: Diff 36620!
ginsu requested review of this revision.Feb 9 2024, 11:21 AM
atul added inline comments.
web/modals/threads/members/add-members-modal.react.js
35–36 ↗(On Diff #36950)

Do we still need nested divs here now that there is nothing in addMembersContent div except for addMembersListContainer?

Feel free to consolidate or leave as is depending on your preference.

This revision is now accepted and ready to land.Feb 9 2024, 12:16 PM
web/modals/threads/members/add-members-modal.react.js
35–36 ↗(On Diff #36950)

This gets cleaned up in D11023