-
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
Enhancement/8976 Refactor Gathering Data Notification #9126
Enhancement/8976 Refactor Gathering Data Notification #9126
Conversation
Build files for 00f3f12 have been deleted. |
Size Change: +14.7 kB (+0.87%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
@tofumatt I have merged I have now branched off from this branch to work on #9071 as mentioned on our last standup. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, just a super minor change that I can make, or we could even do in your follow-up PR to make managing the branches easier 😄
export const SITE_KIT_VIEW_ONLY_CONTEXTS = [ | ||
VIEW_CONTEXT_MAIN_DASHBOARD_VIEW_ONLY, | ||
VIEW_CONTEXT_ENTITY_DASHBOARD_VIEW_ONLY, | ||
VIEW_CONTEXT_ADMIN_BAR_VIEW_ONLY, | ||
VIEW_CONTEXT_WP_DASHBOARD_VIEW_ONLY, | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we're defining this here, let's update
site-kit-wp/assets/js/hooks/useViewOnly.js
Lines 40 to 45 in e572e59
return ( | |
viewContext === VIEW_CONTEXT_MAIN_DASHBOARD_VIEW_ONLY || | |
viewContext === VIEW_CONTEXT_ENTITY_DASHBOARD_VIEW_ONLY || | |
viewContext === VIEW_CONTEXT_WP_DASHBOARD_VIEW_ONLY || | |
viewContext === VIEW_CONTEXT_ADMIN_BAR_VIEW_ONLY | |
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jimmymadon and I chatted on Slack and he'll fix this in the PR for #9071 👍🏻
Summary
Addresses issue:
GatheringDataNotification
to use the new Notifications datastore #8976Relevant technical choices
PR Author Checklist
Do not alter or remove anything below. The following sections will be managed by moderators only.
Code Reviewer Checklist
Merge Reviewer Checklist