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

Enhance/#8177 - Add the settings section toggle switch for audience segmentation widget area visibility #8424

Merged
merged 5 commits into from Mar 28, 2024

Conversation

hussain-t
Copy link
Collaborator

@hussain-t hussain-t commented Mar 25, 2024

Summary

Addresses issue:

Relevant technical choices

  • The IB suggests creating a new file in the assets/js/modules/analytics-4/components/settings/AudienceSegmentation directory. However, as a convention, all other admin settings files and components are in assets/js/components/settings/. Hence, the SettingsVisitorGroups component is created in assets/js/components/settings/.

PR Author Checklist

  • My code is tested and passes existing unit tests.
  • My code has an appropriate set of unit tests which all pass.
  • My code is backward-compatible with WordPress 5.2 and PHP 5.6.
  • My code follows the WordPress coding standards.
  • My code has proper inline documentation.
  • I have added a QA Brief on the issue linked above.
  • I have signed the Contributor License Agreement (see https://cla.developers.google.com/).

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

Code Reviewer Checklist

  • Run the code.
  • Ensure the acceptance criteria are satisfied.
  • Reassess the implementation with the IB.
  • Ensure no unrelated changes are included.
  • Ensure CI checks pass.
  • Check Storybook where applicable.
  • Ensure there is a QA Brief.

Merge Reviewer Checklist

  • Ensure the PR has the correct target branch.
  • Double-check that the PR is okay to be merged.
  • Ensure the corresponding issue has a ZenHub release assigned.
  • Add a changelog message to the issue.

Copy link

github-actions bot commented Mar 25, 2024

Build files for 5f47018 have been deleted.

Copy link

github-actions bot commented Mar 25, 2024

Size Change: +291 B (0%)

Total Size: 1.42 MB

Filename Size Change
./dist/assets/js/34-********************.js 3.12 kB -1 B (0%)
./dist/assets/js/googlesitekit-activation-********************.js 23.8 kB -3 B (0%)
./dist/assets/js/googlesitekit-ad-blocking-recovery-********************.js 57.4 kB +9 B (0%)
./dist/assets/js/googlesitekit-adminbar-********************.js 34.1 kB +1 B (0%)
./dist/assets/js/googlesitekit-api-********************.js 10 kB +1 B (0%)
./dist/assets/js/googlesitekit-components-gm2-********************.js 5.87 kB +3 B (0%)
./dist/assets/js/googlesitekit-components-gm3-********************.js 10 kB -4 B (0%)
./dist/assets/js/googlesitekit-data-********************.js 2.17 kB -1 B (0%)
./dist/assets/js/googlesitekit-datastore-forms-********************.js 9.11 kB -2 B (0%)
./dist/assets/js/googlesitekit-datastore-site-********************.js 18.3 kB -1 B (0%)
./dist/assets/js/googlesitekit-datastore-ui-********************.js 10 kB -1 B (0%)
./dist/assets/js/googlesitekit-datastore-user-********************.js 24.4 kB -3 B (0%)
./dist/assets/js/googlesitekit-entity-dashboard-********************.js 66.8 kB -13 B (0%)
./dist/assets/js/googlesitekit-main-dashboard-********************.js 91.2 kB +3 B (0%)
./dist/assets/js/googlesitekit-modules-********************.js 21.7 kB -1 B (0%)
./dist/assets/js/googlesitekit-modules-ads-********************.js 16.7 kB -4 B (0%)
./dist/assets/js/googlesitekit-modules-adsense-********************.js 111 kB +34 B (0%)
./dist/assets/js/googlesitekit-modules-analytics-4-********************.js 111 kB -5 B (0%)
./dist/assets/js/googlesitekit-modules-pagespeed-insights-********************.js 22.5 kB -1 B (0%)
./dist/assets/js/googlesitekit-modules-search-console-********************.js 58 kB -3 B (0%)
./dist/assets/js/googlesitekit-modules-tagmanager-********************.js 30 kB -2 B (0%)
./dist/assets/js/googlesitekit-settings-********************.js 59.2 kB +249 B (0%)
./dist/assets/js/googlesitekit-splash-********************.js 72 kB +12 B (0%)
./dist/assets/js/googlesitekit-user-input-********************.js 46.9 kB +18 B (0%)
./dist/assets/js/googlesitekit-vendor-********************.js 316 kB +8 B (0%)
./dist/assets/js/googlesitekit-wp-dashboard-********************.js 60 kB -3 B (0%)
./dist/assets/js/runtime-********************.js 1.3 kB +1 B (0%)
ℹ️ View Unchanged
Filename Size
./dist/assets/css/googlesitekit-admin-css-********************.min.css 53 kB
./dist/assets/css/googlesitekit-adminbar-css-********************.min.css 11.2 kB
./dist/assets/css/googlesitekit-wp-dashboard-css-********************.min.css 7.47 kB
./dist/assets/js/29-********************.js 2.8 kB
./dist/assets/js/30-********************.js 2.28 kB
./dist/assets/js/31-********************.js 3.72 kB
./dist/assets/js/32-********************.js 930 B
./dist/assets/js/33-********************.js 888 B
./dist/assets/js/analytics-advanced-tracking-********************.js 778 B
./dist/assets/js/googlesitekit-datastore-location-********************.js 2.09 kB
./dist/assets/js/googlesitekit-i18n-********************.js 3.92 kB
./dist/assets/js/googlesitekit-polyfills-********************.js 379 B
./dist/assets/js/googlesitekit-widgets-********************.js 33.2 kB

compressed-size-action

@tofumatt tofumatt merged commit 39347c0 into develop Mar 28, 2024
21 checks passed
@tofumatt tofumatt deleted the enhance/#8177-settings-admin-visitors-group branch March 28, 2024 22:05
Copy link
Collaborator

@aaemnnosttv aaemnnosttv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<Cell size={ 12 }>
<Switch
label={ __(
'Display visitors groups in dashboard',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a misspelling which was copied from the design. I've raised it there as well but we should fix this in a follow-up.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @aaemnnosttv, I've created #8496 to address this.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @hussain-t, just a heads up that while I did spot your note about the location for this file in relevant technical choices, the location specced in the IB was actually correct, in line with the code organization section of the design doc and as mentioned here: #8177 (comment)

An extra wrinkle is that in fact we have also identified this initial code org as needing improvement and we're going to move the Audience Segmentation component files under assets/js/modules/analytics-4/components/audience-segmentation/ instead.

I've created #8495 to address the wider reorganisation, but in the meantime we should stick to the code structure outlined in the design doc to make it easy to keep track of all the Audience Segmentation components and move them appropriately when the time comes.

I've also created #8496 to address the typo that Evan spotted and mentioned separately in this issue (which of course was simply copied from Figma and not introduced via this PR), and to move this component at the same time.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing it out, @techanvil 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants