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

[Stats Refresh] Insights Tags & Categories: fix displaying details view #11707

Merged
merged 5 commits into from
May 16, 2019

Conversation

ScoutHarris
Copy link
Contributor

Ref #11360

This changes Insights > Tags and Categories to use UITableViewCells instead of one UIStackView.

Previously, all the data was stuffed into the stack view on the TopTotalsCell card. Now it only uses the TopTotalsCell card to show the header via DetailSubtitlesHeaderRow. The stack view is left empty. Instead, a UITableViewCell is added to the table for each data row via the new DetailExpandableDataRow.

There should be no visual or functional changes, but showing the details view is faster. To note, there is still no loading view, so there may still be a blank view for a couple seconds for longer periods.

Known Issues:

  • When a row is expanded/collapsed, all the rows' arrows update. I don't think this is new as I've seen it before, but it's pretty obvious now. I'll address that separately.
  • With all these "replace stack views with table cells" PRs, it's introduce a new problem where the details table isn't actually being refreshed, it's being duplicated, displaying on top of itself. (It's painfully obvious when trying to Debug View Hierarchy in Xcode.) Woops. Since I broke it long before now, and it's a problem with the details table itself, I'll fix that separately as well.

Update release notes:

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

To test:


  • Go to Stats > Insights > Tags and Categories on a very active site.
    • Tip: Hogwarts has several expandable tags/categories.
  • Select View more.
  • Verify the data appears relatively quickly.
  • For a non-expandable row, verify row selection shows a web view.

  • For an expandable row, row selection shows all child rows.
    • Previously, child rows on Details were limited to 10. This was a bug that has now been addressed.
  • When a row is expanded:
    • The child label text color is light grey.
    • Child rows have no separator line between them.
    • There is a full width separator line above the parent row, and below the last child.
  • Selecting a child row shows a web view.

tags_cats

@ScoutHarris ScoutHarris added this to the 12.5 milestone May 16, 2019
@ScoutHarris ScoutHarris requested a review from a user May 16, 2019 00:39
@ScoutHarris ScoutHarris self-assigned this May 16, 2019
@ScoutHarris ScoutHarris mentioned this pull request May 16, 2019
45 tasks
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

@ScoutHarris this is looking good to me in my testing both in the Simulator and on-device. I have some ideas on the second known issue - will follow up shortly, and we can address subsequently.

:shipit:

@ScoutHarris
Copy link
Contributor Author

Thanks @stevebaranski !

@ScoutHarris ScoutHarris merged commit 4259154 into develop May 16, 2019
@ScoutHarris ScoutHarris deleted the fix/11360-tags_and_cats_details branch May 16, 2019 22:06
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.

1 participant