site-kit-wp
site-kit-wp copied to clipboard
"Revisit your saved ideas" appears as copy on wp-admin dashboard, even if the user doesn't have any saved ideas.
Bug Description
The CTA goes to the empty "saved ideas" tab.

Asana Link: https://app.asana.com/0/1200491083500938/1200766086791616
Evan @Felix Arntz looks like a logic bug https://github.com/google/site-kit-wp/blob/c26b8c6f62e62e51524592e66464f91d15257e1d/assets/js/components/wp-dashboard/WPDashboardIdeaHub.js#L66
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- The Idea Hub CTA in the WordPress dashboard widget should show up only when a user has at least one saved idea.
Implementation Brief
- Update the following condition in the
assets/js/components/wp-dashboard/WPDashboardIdeaHub.jsfile to use||instead of&&: https://github.com/google/site-kit-wp/blob/fb6d3e8791601d19de8ef6ea561998fca89bef66/assets/js/components/wp-dashboard/WPDashboardIdeaHub.js#L66-L68
Test Coverage
- N/A
Visual Regression Changes
- N/A
QA Brief
- Make sure you have no saved ideas.
- Go to the WordPress dashboard page and verify that you don't see the Idea Hub CTA in the Site Kit widget.
- Save an idea and check the WordPress dashboard widget again. Now it should display the CTA that says that you have new ideas.
- Go back and un-pin saved ideas.
- Go back to the WordPress dashboard page and verify that the Idea Hub CTA disappear again.
Changelog entry
- Fix Idea Hub CTA for saved ideas on the WordPress dashboard to only show if the user has any saved ideas.
IB ✅
Linked PR is done and ready for CR (but I won't move it to CR as it's outside the current sprint)
QA Update: ✅
Verified:
- When there are no saved ideas the message does not appear in the WPress dashboard (even when you unpin a saved idea)

- When there are ideas saved the message does appear.
