Page MenuHomePhabricator

[web] Implement danger zone UI
ClosedPublic

Authored by tomek on May 20 2022, 9:39 AM.
Tags
None
Referenced Files
F3247677: D4096.diff
Fri, Nov 15, 6:11 AM
Unknown Object (File)
Mon, Oct 28, 8:43 AM
Unknown Object (File)
Mon, Oct 28, 3:03 AM
Unknown Object (File)
Mon, Oct 28, 3:03 AM
Unknown Object (File)
Mon, Oct 28, 3:02 AM
Unknown Object (File)
Mon, Oct 28, 2:50 AM
Unknown Object (File)
Sun, Oct 20, 9:37 PM
Unknown Object (File)
Oct 9 2024, 2:54 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.