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

Bug/5351 - Show goals CTA only if the user is authenticated #5398

Merged
merged 5 commits into from
Jun 22, 2022

Conversation

hussain-t
Copy link
Collaborator

@hussain-t hussain-t commented Jun 21, 2022

Summary

Addresses issue:

Relevant technical choices

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

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.

@github-actions
Copy link

github-actions bot commented Jun 21, 2022

Size Change: +10 B (0%)

Total Size: 1.33 MB

Filename Size Change
./dist/assets/js/googlesitekit-modules-search-console-********************.js 38.7 kB +10 B (0%)
ℹ️ View Unchanged
Filename Size
./dist/assets/css/googlesitekit-admin-css-********************.min.css 45.5 kB
./dist/assets/css/googlesitekit-adminbar-css-********************.min.css 10.9 kB
./dist/assets/css/googlesitekit-wp-dashboard-css-********************.min.css 6.32 kB
./dist/assets/js/31-********************.js 51.9 kB
./dist/assets/js/32-********************.js 3.12 kB
./dist/assets/js/analytics-advanced-tracking-********************.js 769 B
./dist/assets/js/googlesitekit-activation-********************.js 27.4 kB
./dist/assets/js/googlesitekit-adminbar-********************.js 36.7 kB
./dist/assets/js/googlesitekit-api-********************.js 9.16 kB
./dist/assets/js/googlesitekit-base-********************.js 1.13 kB
./dist/assets/js/googlesitekit-dashboard-********************.js 60.5 kB
./dist/assets/js/googlesitekit-dashboard-details-********************.js 54 kB
./dist/assets/js/googlesitekit-dashboard-splash-********************.js 69.9 kB
./dist/assets/js/googlesitekit-data-********************.js 2.09 kB
./dist/assets/js/googlesitekit-datastore-forms-********************.js 8.78 kB
./dist/assets/js/googlesitekit-datastore-location-********************.js 2.08 kB
./dist/assets/js/googlesitekit-datastore-site-********************.js 14.5 kB
./dist/assets/js/googlesitekit-datastore-ui-********************.js 8.88 kB
./dist/assets/js/googlesitekit-datastore-user-********************.js 21.3 kB
./dist/assets/js/googlesitekit-i18n-********************.js 3.92 kB
./dist/assets/js/googlesitekit-idea-hub-notice-********************.js 45.1 kB
./dist/assets/js/googlesitekit-idea-hub-post-list-********************.js 25.6 kB
./dist/assets/js/googlesitekit-modules-********************.js 19.2 kB
./dist/assets/js/googlesitekit-modules-adsense-********************.js 66 kB
./dist/assets/js/googlesitekit-modules-analytics-4-********************.js 19 kB
./dist/assets/js/googlesitekit-modules-analytics-********************.js 67.9 kB
./dist/assets/js/googlesitekit-modules-idea-hub-********************.js 27.8 kB
./dist/assets/js/googlesitekit-modules-optimize-********************.js 19.3 kB
./dist/assets/js/googlesitekit-modules-pagespeed-insights-********************.js 18.3 kB
./dist/assets/js/googlesitekit-modules-subscribe-with-google-********************.js 17.3 kB
./dist/assets/js/googlesitekit-modules-tagmanager-********************.js 30 kB
./dist/assets/js/googlesitekit-polyfills-********************.js 380 B
./dist/assets/js/googlesitekit-settings-********************.js 50.2 kB
./dist/assets/js/googlesitekit-user-input-********************.js 44.6 kB
./dist/assets/js/googlesitekit-vendor-********************.js 323 kB
./dist/assets/js/googlesitekit-widgets-********************.js 18.5 kB
./dist/assets/js/googlesitekit-wp-dashboard-********************.js 59.9 kB
./dist/assets/js/runtime-********************.js 1.22 kB

compressed-size-action

Copy link
Collaborator

@techanvil techanvil left a comment

Choose a reason for hiding this comment

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

The code is fine, but the story that you've updated the VRTs for is called Ready with Create Goal CTA, so it's actually breaking the story to display it without the Create Goal CTA.

You can fix the story by adding the following line to its setupRegistry function:

provideUserAuthentication( registry );

@hussain-t
Copy link
Collaborator Author

Thanks, @techanvil, that's a good catch 👍

Copy link
Collaborator

@techanvil techanvil left a comment

Choose a reason for hiding this comment

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

LGTM, nice one @hussain-t

@techanvil techanvil merged commit d373e71 into develop Jun 22, 2022
@techanvil techanvil deleted the bug/5351-hide-goals-cta branch June 22, 2022 08:32
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.

2 participants