-
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
Idea Hub Saved and Drafts tabs show number even when 0 #3964
Comments
(Technically we could check for |
IB ✅ |
QA Update:
|
Probably because the number will be quite large, but also because they aren't numbers the user is in control of. I think showing the number of new posts isn't very actionable, but the Saved and Drafts column are and indicate the control the user has set aside for themselves. It makes sense to measure and display those numbers, less so the New Ideas I think. |
Bug Description
Per the original design, the Idea Hub widget tab labels for "Saved" and "Drafts" should only include the number indicator if there are any applicable ideas, i.e. not if there are 0 saved ideas or 0 draft ideas respectively.
This is currently incorrect, as the check for whether to add the indicator is
>=0
rather than>0
.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
savedIdeas?.length >= 0
tosavedIdeas?.length > 0
and the check forsavedIdeas?.length === undefined
tosavedIdeas?.length === 0 || savedIdeas?.length === undefined
in https://github.com/google/site-kit-wp/blob/develop/assets/js/modules/idea-hub/components/dashboard/DashboardIdeasWidget/index.js#L257-L272draftIdeas?.length
check in the same component.Test Coverage
Visual Regression Changes
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: