Skip to content

[Stats Refresh] empty "simple" stat cards now show No data yet label - #11748

Merged
ScoutHarris merged 1 commit into
developfrom
fix/11746-empty_cards
May 22, 2019
Merged

[Stats Refresh] empty "simple" stat cards now show No data yet label#11748
ScoutHarris merged 1 commit into
developfrom
fix/11746-empty_cards

Conversation

@ScoutHarris

Copy link
Copy Markdown
Contributor

Fixes #11746

When I first added support for details views, in addRows I added a check for limitRowsDisplayed before adding a StatsNoDataRow (since details doesn't limit rows). Clearly I didn't realize I broke SimpleTotalsCells, which don't limit rows either. However, since details rows are added differently now, I've simply removed that check.

To test:

  • On a site with very little/no data, go to Insights.
  • Verify the following stats show No data yet instead of just being blank when there is no data.
    • Today's Stats
    • All Time Stats
    • Most Popular Time
    • Total Followers
    • Publicize

Update release notes:

  • If there are user facing changes, I have added an item to RELEASE-NOTES.txt.

@ScoutHarris ScoutHarris added this to the 12.6 milestone May 22, 2019
@ScoutHarris
ScoutHarris requested a review from danielebogo May 22, 2019 01:57
@ScoutHarris ScoutHarris self-assigned this May 22, 2019
@ScoutHarris ScoutHarris mentioned this pull request May 22, 2019
45 tasks

@danielebogo danielebogo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done @ScoutHarris ! It worked as expected! :shipit:

@ScoutHarris
ScoutHarris merged commit d3fb71a into develop May 22, 2019
@ScoutHarris
ScoutHarris deleted the fix/11746-empty_cards branch May 22, 2019 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Stats Refresh] "simple" stat cards are empty when no data

2 participants