Page MenuHomePhabricator

[web] introduce danger zone panel
AcceptedPublic

Authored by ginsu on Jan 28 2024, 11:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 30, 8:53 PM
Unknown Object (File)
Sun, Jun 23, 11:24 PM
Unknown Object (File)
Sun, Jun 23, 11:03 PM
Unknown Object (File)
Sun, Jun 23, 10:58 AM
Unknown Object (File)
Sat, Jun 22, 8:30 PM
Unknown Object (File)
Sat, Jun 22, 7:02 AM
Unknown Object (File)
Sat, Jun 22, 5:16 AM
Unknown Object (File)
Thu, Jun 20, 1:19 AM
Subscribers

Details

Reviewers
atul
inka
ashoat
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

This diff introduces the danger zone panel and makes various UI changes to the DangerZone component so that it can be housed within the danger zone panel and matches the UI shown in the figma.

For context here is what the figma designs look like:

Screenshot 2024-01-29 at 2.04.34 AM.png (1×1 px, 77 KB)

Linear task: https://linear.app/comm/issue/ENG-5953/selected-settings-ui

Depends on D10850

Test Plan

Please see the screenshot below

Screenshot 2024-01-29 at 2.05.29 AM.png (2×3 px, 767 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, inka, ashoat.

Made @ashoat a blocking reviewer since made a few changes to the copy

web/settings/danger-zone-panel.react.js
12

"Danger Zone" => "Danger zone"

web/settings/danger-zone.react.js
20

"Delete Account" => "Delete account"

27

"Delete Account" => "Delete account"

20 ↗(On Diff #36223)

"Delete Account" => "Delete account"

Copy changes look good. Just a question inline

web/settings/danger-zone.react.js
30–31

Should we make the same changes in AccountDeleteModal?

Actually wondering if we really need to repeat this copy, both here and in AccountDeleteModal. What do you think?

Personally feel like it'd make more sense to put the explanation above the button, but what you have matches the designs.

This revision is now accepted and ready to land.Jan 30 2024, 2:46 PM