Page MenuHomePhabricator

[web] Introduce block users modal
ClosedPublic

Authored by tomek on Jun 21 2022, 6:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 6, 4:20 AM
Unknown Object (File)
Sat, Jul 6, 4:20 AM
Unknown Object (File)
Sat, Jul 6, 4:20 AM
Unknown Object (File)
Sat, Jul 6, 4:20 AM
Unknown Object (File)
Sat, Jul 6, 4:20 AM
Unknown Object (File)
Mon, Jul 1, 8:30 PM
Unknown Object (File)
Sun, Jun 30, 4:14 PM
Unknown Object (File)
Sun, Jun 30, 4:33 AM

Details

Summary

This modal allows blocking users. Only users that are not blocked by the viewer can be blocked.

block_users.png (1×1 px, 119 KB)

Depends on D4312

Test Plan

Render the modal and check if blocking users works correctly.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Jun 21 2022, 6:21 AM

Doesn't need to be addressed in this diff, but we should probably style the Button to match (roughly) what we have in the RelationshipPromptButton component.

793e00.png (128×698 px, 12 KB)

web/settings/relationship/block-users-modal.react.js
12–14 ↗(On Diff #13628)

Nit: I think it might make sense to position this Props type immediately above the corresponding component (eg line 20).

25 ↗(On Diff #13628)

Wonder if this component should be renamed something more generic... eg UsersListActionModal or something? Just because it's a bit weird the AddUsersListModal is presenting a view labeled Block users

This revision is now accepted and ready to land.Jun 21 2022, 2:44 PM
web/settings/relationship/block-users-modal.react.js
25 ↗(On Diff #13628)

If you feel strongly I can rename it, but the current name also makes sense: we add user to blocked list. This is consistent with BlockedListModal in other place.

Use danger button variant

This revision was automatically updated to reflect the committed changes.