Skip to content

[Stats Refresh] remove extra space when 'No data' shown - #11813

Merged
ScoutHarris merged 3 commits into
developfrom
fix/11798-no_data_spacing
May 30, 2019
Merged

[Stats Refresh] remove extra space when 'No data' shown#11813
ScoutHarris merged 3 commits into
developfrom
fix/11798-no_data_spacing

Conversation

@ScoutHarris

@ScoutHarris ScoutHarris commented May 29, 2019

Copy link
Copy Markdown
Contributor

Fixes #11798

The problem stemmed from toggling two top constraints on the row stack view depending on if the subtitles are shown or not. This wasn't working very well when the cells were reused. Now there is only one top constraint, and is modified per subtitle visibility.

To test:


  • On a site with no data, go to Stats.
  • On Insights and Periods, verify when No data... is displayed there is no longer extra space above the label. Example:

example


  • Switch to a site with data, and go to Stats.
  • For that stats that previously showed No data... verify the subtitles are shown correctly. Example:

no_data

data

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 29, 2019
@ScoutHarris ScoutHarris self-assigned this May 29, 2019
@ScoutHarris ScoutHarris mentioned this pull request May 29, 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.

Hey @ScoutHarris ! Thanks for fixing this!
I left 2 small comments. Let me know when it's done so I'll give it another look!

Comment thread WordPress/Classes/ViewRelated/Stats/Period Stats/Countries/CountriesCell.swift Outdated
@ScoutHarris

Copy link
Copy Markdown
Contributor Author

Hey @danielebogo . Thanks for catching those. They've been fixed, and ready for another review please.

@ScoutHarris
ScoutHarris requested a review from danielebogo May 30, 2019 17:18

@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.

LGTM! thanks for fixing this! :shipit:

@ScoutHarris
ScoutHarris merged commit ec1c1ef into develop May 30, 2019
@ScoutHarris
ScoutHarris deleted the fix/11798-no_data_spacing branch May 30, 2019 17:44
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] Extra space when 'No data for this period' shown

2 participants