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

Display actual number of users coming from search in refactored "Unique Visitors (from Search)" widget. (3064) #3142

Merged
merged 6 commits into from
Apr 16, 2021

Conversation

johnPhillips
Copy link
Contributor

@johnPhillips johnPhillips commented Apr 14, 2021

Summary

Addresses issue #3064

Relevant technical choices

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 4.7 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/).

@google-cla google-cla bot added the cla: yes label Apr 14, 2021
@johnPhillips johnPhillips marked this pull request as ready for review April 14, 2021 10:45
@github-actions
Copy link

github-actions bot commented Apr 14, 2021

Size Change: +881 B (0%)

Total Size: 1.26 MB

Filename Size Change
./dist/assets/css/admin.css 36.1 kB +13 B (0%)
./dist/assets/js/googlesitekit-adminbar.********************.js 67.1 kB +20 B (0%)
./dist/assets/js/googlesitekit-dashboard-details.********************.js 78.8 kB +26 B (0%)
./dist/assets/js/googlesitekit-dashboard-splash.********************.js 48.8 kB +7 B (0%)
./dist/assets/js/googlesitekit-dashboard.********************.js 79.4 kB +21 B (0%)
./dist/assets/js/googlesitekit-data.********************.js 1.52 kB -1 B (0%)
./dist/assets/js/googlesitekit-module.********************.js 79.6 kB +23 B (0%)
./dist/assets/js/googlesitekit-modules-adsense.********************.js 57.3 kB -34 B (0%)
./dist/assets/js/googlesitekit-modules-analytics-4.********************.js 9.13 kB +581 B (+7%) 🔍
./dist/assets/js/googlesitekit-modules-analytics.********************.js 61.6 kB +111 B (0%)
./dist/assets/js/googlesitekit-modules-pagespeed-insights.********************.js 23.7 kB +17 B (0%)
./dist/assets/js/googlesitekit-modules-search-console.********************.js 28 kB +18 B (0%)
./dist/assets/js/googlesitekit-modules-tagmanager.********************.js 30.9 kB +9 B (0%)
./dist/assets/js/googlesitekit-modules.********************.js 16.5 kB +1 B (0%)
./dist/assets/js/googlesitekit-settings.********************.js 86.5 kB +28 B (0%)
./dist/assets/js/googlesitekit-user-input.********************.js 83.8 kB +30 B (0%)
./dist/assets/js/googlesitekit-vendor.********************.js 270 kB -6 B (0%)
./dist/assets/js/googlesitekit-widgets.********************.js 11 kB -2 B (0%)
./dist/assets/js/googlesitekit-wp-dashboard.********************.js 67.1 kB +19 B (0%)
ℹ️ View Unchanged
Filename Size Change
./dist/assets/css/adminbar.css 7.33 kB 0 B
./dist/assets/css/wpdashboard.css 4.43 kB 0 B
./dist/assets/js/analytics-advanced-tracking.js 769 B 0 B
./dist/assets/js/googlesitekit-activation.********************.js 34.5 kB 0 B
./dist/assets/js/googlesitekit-api.********************.js 8.87 kB 0 B
./dist/assets/js/googlesitekit-base.********************.js 1.57 kB 0 B
./dist/assets/js/googlesitekit-datastore-forms.********************.js 8.54 kB 0 B
./dist/assets/js/googlesitekit-datastore-location.********************.js 1.01 kB 0 B
./dist/assets/js/googlesitekit-datastore-site.********************.js 11.9 kB 0 B
./dist/assets/js/googlesitekit-datastore-ui.********************.js 8.51 kB 0 B
./dist/assets/js/googlesitekit-datastore-user.********************.js 15.9 kB 0 B
./dist/assets/js/googlesitekit-i18n.js 3.92 kB 0 B
./dist/assets/js/googlesitekit-modules-optimize.********************.js 16.8 kB 0 B
./dist/assets/js/runtime.********************.js 763 B 0 B

compressed-size-action

Copy link
Collaborator

@eugene-manuilov eugene-manuilov left a comment

Choose a reason for hiding this comment

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

Thanks, @johnPhillips. It looks good to me. The only thing missing is the storybook report options update. Could you please update it to make sure the storybook stories for this widget work correctly?

@@ -317,7 +317,7 @@ generateAnalyticsWidgetStories( {

},
] ),
Component: DashboardUniqueVisitorsWidget,
Component: DashboardSearchVisitorsWidget,
Copy link
Collaborator

Choose a reason for hiding this comment

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

We also need to update report options here to replicate changes in the component.

@@ -351,7 +351,7 @@ generateAnalyticsWidgetStories( {

},
] ),
Component: DashboardUniqueVisitorsWidget,
Component: DashboardSearchVisitorsWidget,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here, we need to update report options.

Copy link
Collaborator

@eugene-manuilov eugene-manuilov left a comment

Choose a reason for hiding this comment

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

Excellent!

@eugene-manuilov eugene-manuilov merged commit 6efb4e1 into develop Apr 16, 2021
@eugene-manuilov eugene-manuilov deleted the bug/3064-unique-visitors branch April 16, 2021 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants