-
Notifications
You must be signed in to change notification settings - Fork 82
Description
@girishpanchal30 we need to make changes for the onboarding of this plugin. The current implementation installs and activates the Otter Blocks and Optimole plugins without explicitly informing the user or providing a clear option to opt-out.
The goal is to make the installation of these plugins transparent and optional.
The following changes must be implemented in the "Select the type of page you want" step of the setup wizard which currently looks like this:
1. Introduce Explicit Consent Checkboxes:
A new checkbox must be added to the screen. Both the new and existing checkboxes should be checked by default.
Checkbox 1: Essential Page Templates (Otter Blocks)
Label/Text: Pick a template to get started. Otter Blocks plugin will be installed and activated to support and customize your layout.
It also unlocks tools like forms and popups - if you need them later.
Checkbox 2: Image and speed optimisation (Optimole)
Label/Text: Templates would have pre-optimized images and all of your website’s images would be delivered via Amazon Cloudfront CDN, resulting in an ≈ 80% increase in speed. Optimole plugin will be installed and activated.
2. Implement Conditional UI for Template Selection:
The visibility of the template picker section will be dependent on the "Essential Page Templates" checkbox.
If the Otter Blocks checkbox is checked, the template selection area remains visible and functional.
If the Otter Blocks checkbox is unchecked, the entire template selection area below it should be faded:
3. Conditional Plugin Installation Logic:
The installation logic must be tied to the final state of these checkboxes when the user proceeds.
Otter Blocks should only be installed and activated if its corresponding checkbox is checked.
Optimole should only be installed and activated if its corresponding checkbox is checked.
HTML code for Reference: Pastebin.