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)
Thu, Oct 31, 8:25 AM
Unknown Object (File)
Oct 3 2024, 2:48 PM
Unknown Object (File)
Oct 3 2024, 2:48 PM
Unknown Object (File)
Oct 3 2024, 2:48 PM
Unknown Object (File)
Oct 3 2024, 2:48 PM
Unknown Object (File)
Oct 3 2024, 2:47 PM
Unknown Object (File)
Oct 3 2024, 2:47 PM
Unknown Object (File)
Aug 29 2024, 7:14 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

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
No Lint Coverage
Unit
No Test Coverage

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

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

This gets cleaned up in D11023