Skip to content
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

Settings has 'Enable groups' CTA instead of toggle #9366

Open
1 task
kelvinballoo opened this issue Sep 17, 2024 · 1 comment
Open
1 task

Settings has 'Enable groups' CTA instead of toggle #9366

kelvinballoo opened this issue Sep 17, 2024 · 1 comment
Labels
Module: Analytics Google Analytics module related issues P1 Medium priority Team M Issues for Squad 2 Type: Bug Something isn't working

Comments

@kelvinballoo
Copy link
Collaborator

kelvinballoo commented Sep 17, 2024

Bug Description

This was raised while testing #8577

  • When we click on 'Settings' to deactivate this widget on a second admin, it brings up the 'Enable groups' button.
  • By right, I would expect the toggle only at this point so that it can be turned on and off. You may refer to the 1m40 mark on the video below.

Steps to reproduce

  • Set up Site Kit with the audienceSegmentation feature flag enabled, and click on Enable groups to set the feature up.
  • Archive all of the audiences for the connected property barring "All Users".
  • Login as a second admin user and connect Site Kit. The second admin should have view access or higher for the connected property.
  • The banner copy says
    • 'You don't have any visitor groups selected. [Select groups]
    • You can deactivate this widget in [Settings]
  • WHen clicking on 'Settings', you go to the settings but instead of having the toggle to turn it on or off, there is the 'Enable groups' CTA. (You may refer to the 1m40 mark on the video below)

Screenshots

8577.-.AUthenticated.user.test.720p.mov

Additional Context

  • PHP Version:
  • OS: [e.g. iOS]
  • Browser: [e.g. chrome, safari]
  • Plugin Version: [e.g. 22]
  • Device: [e.g. iPhone6]

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • Having run through the steps to reproduce, the Display visitor groups in dashboard toggle should appear in the Settings section, and the Enable groups CTA should not be present.

Implementation Brief

  • Update the conditional rendering in SettingsCardVisitorGroups to test for the truthiness of configuredAudiences rather than testing configuredAudiences.length. I.e. change the following conditions to ! configuredAudiences and !! configuredAudiences respectively:

{ ! configuredAudiences?.length && <SetupCTA /> }
{ !! configuredAudiences?.length && (

Test Coverage

  • Fix failing JS and VRT tests.

QA Brief

Changelog entry

@techanvil techanvil self-assigned this Sep 17, 2024
@techanvil techanvil added Type: Bug Something isn't working P1 Medium priority Module: Analytics Google Analytics module related issues labels Sep 17, 2024
@techanvil techanvil removed their assignment Sep 17, 2024
@techanvil techanvil added the Team M Issues for Squad 2 label Sep 17, 2024
@techanvil techanvil assigned techanvil and unassigned techanvil Sep 19, 2024
@nfmohit nfmohit self-assigned this Sep 19, 2024
@nfmohit
Copy link
Collaborator

nfmohit commented Sep 20, 2024

IB ✅

@nfmohit nfmohit removed their assignment Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: Analytics Google Analytics module related issues P1 Medium priority Team M Issues for Squad 2 Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants