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

Inconsistent loading state in Search Console popular keyword dashboard widget components #2013

Closed
aaemnnosttv opened this issue Sep 11, 2020 · 5 comments
Labels
Module: Search Console Search Console module related issues P1 Medium priority Type: Bug Something isn't working
Milestone

Comments

@aaemnnosttv
Copy link
Collaborator

aaemnnosttv commented Sep 11, 2020

Bug Description

The DashboardWidgetPopularKeywordsTable (legacy) and DashboardPopularKeywordsWidget (Widgets API) components currently have an odd loading state in the dashboard which is inconsistent with others, particularly in its size which causes the layout to shift between loading and loaded states.

This is only visible briefly on the dashboard but is consistently reproducible.

Steps to reproduce

  1. Set up Site Kit and go to the dashboard
  2. Clear the browser's session storage
  3. Reload the page with a focus on the first (left-most) widget under the Popularity heading
  4. Notice the widget only fills a single grid column and the other widgets are horizontally displaced
  5. The widget is also missing the white border and padding like the AnalyticsDashboardWidgetPopularPagesTable has

Screenshots

Kapture 2020-09-10 at 23 05 37

image


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • The Search Console LegacyDashboardWidgetPopularKeywordsTable component should render a consistent loading state with other dashboard widgets so that it fills its full area and has the same visual treatment (white background, with footer)

New widget-based components will be handled in a new issue per #2022 (comment)

Implementation Brief

Edit LegacyDashboardWidgetPopularKeywordsTable.js

  • Modify rendering of PreviewTable so that it renders as a child of the already included Layout component.

QA Brief

  • Go to the dashboard
  • Clear the browser's session storage
  • Reload the page with a focus on the legacy popularity widgets at the bottom
  • Check that popularity widgets fill full row correctly.

Changelog entry

  • Fix inconsistent loading state in Search Console Popular Keywords widget, which previously caused content shifting.
@aaemnnosttv aaemnnosttv added Type: Bug Something isn't working P1 Medium priority labels Sep 11, 2020
@felixarntz felixarntz removed their assignment Sep 11, 2020
@felixarntz felixarntz added the Module: Search Console Search Console module related issues label Sep 11, 2020
@caseymorrisus caseymorrisus self-assigned this Sep 17, 2020
@aaemnnosttv aaemnnosttv changed the title Inconsistent loading state in DashboardWidgetPopularKeywordsTable Inconsistent loading state in Search Console popular keyword dashboard widget components Sep 21, 2020
@caseymorrisus caseymorrisus removed their assignment Sep 21, 2020
@eclarke1 eclarke1 added this to the Sprint 33 milestone Sep 22, 2020
@felixarntz
Copy link
Member

@caseymorrisus Did you accidentally miss something here? The IB is empty :)

@caseymorrisus caseymorrisus removed their assignment Sep 23, 2020
@caseymorrisus
Copy link
Contributor

@caseymorrisus Did you accidentally miss something here? The IB is empty :)

That's my bad, must've left it on the preview tab and missed hitting save. Should be good now!

@felixarntz
Copy link
Member

felixarntz commented Sep 24, 2020

@caseymorrisus

Edit DashboardPopularPagesWidget.js and DashboardPopularKeywordsWidget.js

I think this change also needs to be added to LegacyDashboardWidgetPopularKeywordsTable.js, which is the actual component where this currently surfaces in production (the components you mentioned need to be updated as well, but they're the new widgets which right now are only available in a development build). It also applies to LegacyAnalyticsDashboardWidgetPopularPagesTable.js, but there it's already handled correctly (as seen in the code and the above screenshare).

@caseymorrisus caseymorrisus removed their assignment Sep 28, 2020
@eclarke1 eclarke1 removed the Next Up label Sep 28, 2020
@felixarntz felixarntz self-assigned this Oct 1, 2020
@felixarntz
Copy link
Member

IB ✅

@cole10up
Copy link

cole10up commented Oct 6, 2020

Tested

Installed, activated and setup latest development SK. Cleared session storage, refreshed page.

Site Kit by Google Dashboard ‹ Oi ie - Brasileiros na Irlande — WordPress (2)

Refreshed from different pages, to confirm no other functionality was broken.

Passed QA ✅

@cole10up cole10up removed their assignment Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: Search Console Search Console module related issues P1 Medium priority Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants