-
Notifications
You must be signed in to change notification settings - Fork 291
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
Visual difference in the view only vs standard SK dashboard with number of KMW tiles shown #8712
Comments
@jamesozzie I've tried to reproduce your situation but there is definitely something else going on here. View only users should be able to select any of their own metrics when dashboard sharing is enabled. I am able to see the "Add a metric" CTA tile when logged in as a view only user. |
View only users can select their own metrics via the "Change metrics" link only in my case, but without any "add a metric" box. Tested this on two sites today. Happy to jump on a call. I also sent you an "editor" profile login so you can view this issue on a live site @jimmymadon. |
ACs here make sense, I think this should be fixable by setting the module to be Analytics instead, as long as that won't break things for users who only have Search Console shared. If not I guess it needs to be an Moving to IB 👍🏻 |
@jimmymadon The approach here will work, but thinking about it, it seems to sort of "hide" the intention of the modules attribute there. We don't really want/need to register those widgets if neither module is available, and that's helpful context to have in the code. (Otherwise we would just rely on I guess given there's the Maybe it'd be nice to add a check for at least one of either Search Console or Analytics being active in the IB ✅ |
Bug Description
We seem to be doing something differently when it comes to the view only SK dashboard compared to the standard dashboard if there are less than the maximum 4 key metric tiles added. "View only" users can also select the key metrics tiles to be viewed, but there are no placeholder "Add a metric" tiles for these users. Screenshots with examples below.
Note that it's possible that for view only users, tiles should not be available for selection, in particular if it requires the creation of custom dimensions.
Standard SK dashboard below - which shows placeholder tiles in place if less than 4 key metrics are selection
View only dashboard via Dashboard Sharing below - When 2 or 3 tiles are displayed, they stretch to the full width of the page and there is no additionl placeholder "Add metric" tile
Steps to reproduce
Additional Context
On some further investigation by @jimmymadon, the reason for the Add a metric tile not appearing is because Search Console was not shared via Dashboard Sharing. The "Add a metric" tiles are registered with the
modules
property set tosearch-console
. So whensearch-console
is not shared, the "Add a metric" tile is not rendered.site-kit-wp/assets/js/googlesitekit/widgets/register-defaults.js
Line 338 in 7fb7fb9
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
assets/js/googlesitekit/widgets/register-defaults.js
, remove themodules
property when registering the 'Add a metric' widgets:site-kit-wp/assets/js/googlesitekit/widgets/register-defaults.js
Line 338 in 7fb7fb9
Essentially, having either search-console or analytics active as a 'requirement' doesn't matter for these tiles because:
isActive
callback will still guard against the tile showing when it shouldn't.Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: