site-kit-wp icon indicating copy to clipboard operation
site-kit-wp copied to clipboard

Widget does not show optimal number of ideas per page

Open simonchampion opened this issue 5 years ago • 3 comments

Bug Description

This probably varies between viewports and length of idea but it's a little odd that the widget could fit another idea but it isn't shown.

This might lead users to not click through to other pages of results as it looks like there are only 4 ideas due to the empty space.

image

Mariya Moeva Yesterday at 1:34pm I am seeing the same, with 1-4 out of 5 ideas displayed, and lots of white space.

Asana link: https://app.asana.com/0/1200491083500938/1200759450014528


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

Acceptance criteria

  • We should determine a more appropriate number of ideas to display per page, so that on viewport sizes where the Idea Hub widget appears next to another widget there is less white-space below the ideas.
    • Due to different viewports this may not always be perfectly doable, but currently it looks like we can fit at least 1-2 more ideas in there in most of these cases.
  • In viewports where the Idea Hub widget does not appear next to another widget (e.g. on mobile devices), there should be no extra white-space below the ideas (since in this circumstance there is no other widget next to it that would need to have the same height).

Implementation Brief

  • Using assets/sass/components/idea-hub/_googlesitekit-idea-hub-dashboard-ideas-widget.scss,
    • Update the existing styles for .googlesitekit-idea-hub__content[aria-hidden="true"] to be applied as from desktop breakpoint. It should also have display:none on smaller viewports than the desktop breakpoint and then display: block as from desktop to preserve existing functionality.
  • Update IDEA_HUB_IDEAS_PER_PAGE to 5 in assets/js/modules/idea-hub/datastore/constants.js

Test Coverage

  • No new tests to be added.

Visual Regression Changes

  • N/A

QA Brief

  • The Idea Hub module should display 5 items instead of 4 on the main dashboard.
  • Resize the browser to < than 960px and verify there is not empty white space between the ideas and pagination.
  • Check if there is no horizontal scrollbar showing up

Changelog entry

  • Update the number of ideas shown per page on the Idea Hub dashboard widget.

simonchampion avatar Aug 12 '21 08:08 simonchampion

@aaemnnosttv @felixarntz Assuming that each idea in general will be on 2 lines, I've found that displaying 5 items should be ok. Screenshots below. According to our Analytics reports, in the top 10 screen resolutions, 63% of Site Kit users have a screen resolution of 1366px and above, 6% have 1280px and when I tested, 5 ideas looked good.

961px image

1280px image

1366px image

asvinb avatar Aug 16 '21 11:08 asvinb

@asvinb Displaying 5 ideas looks like a good value to me - IB ✅

felixarntz avatar Aug 16 '21 16:08 felixarntz

QA Update: ✅

Verified:

  • The Idea Hub module displays 5 items instead of 4 on the main dashboard.
  • Resizing the browser to < than 960px does not show any empty white space between the ideas and pagination.
  • Verified that there is no horizontal scrollbar showing up
  • Also tested on various screen sizes including mobile to make sure that 5 ideas appeared + no white space.

image

wpdarren avatar Aug 19 '21 13:08 wpdarren