-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add UI for activating Analytics as part of plugin setup to the activation banner #4343
Comments
IB ✔️ |
@felixarntz The I'am thinking whether we can tighten things a little bit, by reducing the padding, font size and the width of the SVG which will result in the following: Happy to hear your views. cc @marrrmarrr |
@asvinb As mentioned in our sync call, it's true that this looks strange, but we've decided to remove this "replication of the splash screen UI" approach from the plugin activation banner. I've opened #4403 to address this separately. I guess we can close this issue (and the PR #4400) then - sorry about that, but in the long run the simplification here probably makes sense from both a UX and engineering perspective, so that we no longer need to double-maintain the splash screen UI. cc @eclarke1 @FlicHollis Per the above this can be removed from the current sprint (although most work on it has already been done, so we shouldn't add anything else to the sprint instead). |
The UI to activate Analytics as part of the setup is being implemented in #4341, adding it to the splash screen. This issue is a follow-up to that one with the goal to incorporate the same UI into the plugin activation banner.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
assets/js/components/setup/ActivateAnalyticsNotice.js
component from Implement splash UI for initially activating Analytics #4341 should be incorporated into the plugin activation banner (ActivationApp
/ActivationMain
components) as follows:serviceSetupV2
feature is enabled.! canViewDashboard
in this particular UI).analytics
module is not active.core/forms
store), the following tweaks should be made (exactly in accordance to the same behavior described for the CTA button in Implement splash UI for initially activating Analytics #4341):start_setup_with_analytics
should be fired in addition to the existing GA events on that button click. The category should be the current view context (i.e.VIEW_CONTEXT_ACTIVATION
).analytics
module should be made. (This will ensure that the Analytics OAuth scopes will be immediately requested as part of the setup.)redirect
which should be the URL to the Analytics setup UI.Implementation Brief
assets/js/components/activation/activation-main.js
,ActivateAnalyticsNotice
below the header/description but above the tracking checkbox if:serviceSetupV2
feature flag is enabled.useFeature
hook withserviceSetupV2
as parameter to see if the feature is enabled.isUsingProxy
selector ofcore/site
data store to see if the proxy is being used.hasCapability
selector ofcore/user
data store to see if the plugin is connected, withPERMISSION_VIEW_DASHBOARD
as parameter.isModuleActive
selector ofcore/modules
data store withanalytics
as parameter to see if the module is active.assets/js/components/activation/activation-app.js
,ActivateAnalyticsNotice
is checked by querying thecore/forms
data store via thegetValue
selector.onButtonClick
function:trackEvent
function with the parameters as per the AC.activateModule
action from thecore/modules
store, withanalytics
as parameter and grab themoduleReauthURL
property from theresponse
object as a result of theactivateModule
action.proxySetupURL
to append theredirect
parameter, with the value set tomoduleReauthURL
obtained previously.ActivationMain
component inassets/js/components/activation/activation-main.stories.js
Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: