Page MenuHomePhabricator

[web] Implement danger zone UI
ClosedPublic

Authored by tomek on May 20 2022, 9:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 30, 8:34 PM
Unknown Object (File)
Fri, Jun 14, 9:53 PM
Unknown Object (File)
Fri, Jun 14, 9:15 AM
Unknown Object (File)
Fri, Jun 14, 8:00 AM
Unknown Object (File)
Fri, Jun 7, 10:18 AM
Unknown Object (File)
Mon, Jun 3, 10:56 AM
Unknown Object (File)
May 14 2024, 6:28 PM
Unknown Object (File)
May 14 2024, 6:28 PM

Details

Summary

Add all the components to the page. The design https://www.figma.com/file/a1nkbWgbgjRlrOY9LVurTz/Comm-%2F-Desktop-app?node-id=1272%3A87631 doesn't specify the copy below the button, but I think it might be a good idea to have a warning there - the same we currently have in delete tab of account settings.

danger_zone3.png (890×1 px, 82 KB)

Depends on D4094

Test Plan

Open http://localhost/comm/settings/danger-zone/ and check if it is displayed correctly.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.May 20 2022, 9:46 AM
atul added inline comments.
web/settings/danger-zone.react.js
13 ↗(On Diff #12985)

Pretty sure this is a placeholder function since onClick is a required prop of the Button component, and will be replaced w/ a memoized function when it's replaced?

This revision is now accepted and ready to land.May 20 2022, 11:25 AM
web/settings/danger-zone.react.js
13 ↗(On Diff #12985)

Exactly, that's the plan. Our Button doesn't allow skipping this prop, which is ok on one side as it protects us against forgetting to put the value, but doesn't make creating new UIs easier.

Adding @ashoat because in this diff the copy changes

This revision now requires review to proceed.May 23 2022, 2:19 AM
This revision is now accepted and ready to land.May 23 2022, 10:34 AM
This revision was automatically updated to reflect the committed changes.