Add Option to Reset Settings
Issue by jauyong
Tuesday Feb 16, 2021 at 16:29 GMT
Originally opened as https://github.com/xwp/material-design-wp-plugin/issues/537
Feature description
As a user, I'd the ability to reset options to their default state to help with troubleshooting, performance and to get back to a stable state.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- There should be an option to restore demo content
- There should be an option to restore the theme settings
- There should be an option to restore plugin settings
- There should be a confirmation after clicking the "reset" button that the user needs to confirm.
- There should be a confirmation that settings were restored
- This should be added to the settings page
- The user should be made very aware of what is happening when they click the "reset" button
- If the demo content/plugin/theme is already in restored state, the restore buttons should be inactive
Design https://user-images.githubusercontent.com/8026823/109770787-48e6ea80-7bfc-11eb-93fe-b3298fe87fb3.mov
Implementation brief
QA testing instructions
Demo
Changelog entry
Comment by jauyong
Tuesday Feb 16, 2021 at 16:40 GMT
@rodydavis please let me know if you're ok with this getting worked on. Note that AC4 leaves it open to see what else can be added.
Comment by dawidmlynarz
Wednesday Mar 03, 2021 at 07:43 GMT
@jauyong I have created a proposal for the section holding all the reset options. 'Maintenance' was something that I thought would be a nice fit for the section name. If you can imagine a better one, let me know and I will update the mockups.
I have tried to keep the consistent design with the Google Fonts and Material Icons updates. Once you reset content, the button goes into an inactive state, since there is nothing more to reset (correct me if I'm wrong).
https://user-images.githubusercontent.com/8026823/109770787-48e6ea80-7bfc-11eb-93fe-b3298fe87fb3.mov
Looking forward to your feedback!
LGTM