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: Update module headers to SectionHeader #2863

Merged
merged 8 commits into from
Apr 1, 2016

Conversation

alternatekev
Copy link
Contributor

This PR takes the current Stats modules and standardizes on the SectionHeader components:

untitled-4
untitled-3
untitled-2

cc @jancavan

@alternatekev alternatekev added Stats Everything related to our analytics product at /stats/ Components labels Jan 27, 2016
@alternatekev alternatekev added this to the Stats: Maintenance milestone Jan 27, 2016
@alternatekev alternatekev added the [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR label Jan 27, 2016
@jancavan
Copy link
Contributor

Good job updating these! I have a couple comments:

  1. When I click on the graph icon, I'm taken to the full listing, but clicking this again (from the full list) jumps to an empty page. I don't think the graph icons communicate very well that clicking them means you'll be taken to the full list. It felt like it was going to take me to some additional stats for that particular module. It may just be the type of icon, but I think we can also just remove them since we already have "View all" which works great.
    UPDATE: The "Latest Post Summary" module could probably retain this icon though since clicking it actually takes you to additional stats for that post.
  2. On Today's Stats and All-time modules, there's a very faint drop shadow (or border?) right under the SectionHeading's bottom border.
  3. On the Post Summary (Post & Pages module > click on a post), info icons are still there.

Other than those comments, it's looking good. The modules look much cleaner!

@folletto
Copy link
Contributor

"Posting activity" on background instead of white created a nice variation in style, but it's just a personal preference. :)

Apart from that, I like the change. :)

@jancavan
Copy link
Contributor

Another minor thing I noticed are the extra empty squares on the Posting Activity.

@alternatekev alternatekev force-pushed the update/stats-standard-ui branch 2 times, most recently from 31c61b4 to 700568b Compare February 18, 2016 18:30
@alternatekev alternatekev added [Status] In Progress and removed [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR labels Mar 1, 2016
@alternatekev alternatekev added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR and removed [Status] In Progress labels Mar 2, 2016
@alternatekev
Copy link
Contributor Author

@dmsnell can i get a review on this?

<SectionHeader label={ this.translate( 'All-time posts, views, and visitors' ) }></SectionHeader>
<Card className={ classNames( 'stats-module', 'stats-all-time', classes ) }>
<div className="module-content">
<div className="module-content-text module-content-text-info">
Copy link
Contributor

Choose a reason for hiding this comment

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

If the info toggles are no more, we can rip out these div's. Sounds like we should do a follow up PR and remove all info / toggle logic once this PR lands.

@timmyc
Copy link
Contributor

timmyc commented Mar 9, 2016

A bit more sweeping done on this branch. After this is merged we can do away with the mixin-* files in stats too 🎉

4909647 - Removed info boxes / toggle logic from various components
02a18cd - Removes the view all gridicon from components on the insights page that have no summary pages ( Tags & Categories, Publicize )
5627e00 - Fixes up the follower summary page to use the new header design

From our discussion in slack, we are going to punt for now on removing the (i) icons from the post summary pages.

@alternatekev and @jancavan if you could both give this branch another test drive after these updates that would be excellent.

@timmyc
Copy link
Contributor

timmyc commented Mar 10, 2016

Also want to summarize some of the big changes in the branch for anyone wanting to check it out:

  • Removes (i) info icons from the header
  • Removes collapse option for modules
  • Header Text is no longer linked to summary pages when applicable
  • "View All" links have also been removed from the footer to summary pages

Before
stats_ _trout_bummin_ _wordpress_com

After
stats_ _trout_bummin_ _wordpress_com

Note: Only gridicon now links to summary pages ( when available )

@jancavan
Copy link
Contributor

Thanks for wrangling this @timmyc and @alternatekev. The section header looks nice and clean.

I think everything else looks good, but I don't think we should be removing "View all". It's not obvious that clicking on the graph icon takes you to the entire list and it's also really not the right symbol for it - a graph that takes you to a list item. The module heading should at least be clickable if we're removing "View all", but my vote is to add it back.

@timmyc
Copy link
Contributor

timmyc commented Mar 10, 2016

@alternatekev shall I add the footer/view all back in?

@alternatekev
Copy link
Contributor Author

I’m walking through this with Sheri today in order to get a better feel for where she thinks users will get tripped up. I’d almost like to investigate using a clickable compact Card instead of SectionHeader here since that uses the full bar to click and has a more appropriate default icon (the right-facing chevron).

@timmyc timmyc added [Status] In Progress and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Mar 10, 2016
@timmyc
Copy link
Contributor

timmyc commented Mar 10, 2016

Updating the status until we have some direction on that.

@dmsnell
Copy link
Member

dmsnell commented Mar 10, 2016

@dmsnell can i get a review on this?

sorry @alternatekev I don't think I'll be able to right now

@timmyc
Copy link
Contributor

timmyc commented Mar 11, 2016

@alternatekev & @jancavan "View All" links added back in 4032165

@timmyc
Copy link
Contributor

timmyc commented Mar 31, 2016

@alternatekev if you don't mind doing one last test pass then we can get this merged in ( finally ).

alternatekev and others added 6 commits March 31, 2016 13:06
modified stats-module to use sectionheader

css fixes to module sectionheaders

module text padding

updated insights to use section-header

css fixes to module sectionheaders

module text padding

fixed issues with the scrolly part of the post trends visualization

updated insights to use section-header

modified stats-module to use sectionheader

css fixes to module sectionheaders

module text padding

updated insights to use section-header

css fixes to module sectionheaders

module text padding

fixed issues with the scrolly part of the post trends visualization

updated insights to use section-header

css fixes to module sectionheaders

module text padding

updated insights to use section-header

css fixes to module sectionheaders

module text padding

fixed issues with the scrolly part of the post trends visualization

updated insights to use section-header

modified stats-module to use sectionheader

css fixes to module sectionheaders

module text padding

updated insights to use section-header

css fixes to module sectionheaders

module text padding

fixed issues with the scrolly part of the post trends visualization

fixes to sectionheaders & view all buttons/icons

es6 upgrades and formatting cleanup

es6 upgrades and formatting cleanup

removed extraneous left/right arrows from post-trends

added use of containerClass var

fixed scroll bug on post-trends

added borderless prop to stats-tabs to remove shadow effect from insights page

removed extra icon

removed extra site icon

Removing unused toggle/info logic.

Fix up lint errors.

Use props.period to handle instances where modules do not have summary pages.

Clean up header on followers page.

Add View All links back in.

changed chart icon to chevron-right
# The first commit's message is:

updated sectionheaders to use href prop instead of action buttons

# This is the 2nd commit message:

removed extraneous vars
@designsimply
Copy link
Contributor

Tested update/stats-standard-ui with Firefox 45.0.1 on Mac OS X 10.11.13

Video walkthrough: 7m51s

Nitpicks/Observations

  1. Fast mouseover on the posting activity graph result in popover artifacts (Firefox-only)
  2. Wasn't sure why some tags are grouped
  3. Not every card has a detailed summary page
  4. I miss the info button, unfortunately
  5. Some summary page headers have a lot of white space at the top, but users want to see more stuff in less space when it comes to stats—they want less scrolling
  6. "Download Data" button is at the bottom on the Followers summary pages but at the top on other pages (i.e. Countries)
  7. "Download Data" button should not be present if the page is empty
  8. The comment follower link is the odd one out being the only one without an arrow or "view all" link—which makes sense because it's not a summary view of the card data… but that link is still oddly placed imo—would rather see total comments number and comment followers as a dropdown selection instead
  9. Info text for "Average per Day" graph on the post detail view doesn't mention that the stat is "average per day"—also, maybe we can be more selective about where we put info buttons and only add them on things ask about the most (the explanations on that page seem terribly obvious to me…)

Most of this list is out of scope for this PR, so I can raise issues separately for any of them that are worth moving forward. Moving the email followers download button to top right is probably the only suggestion I'd make for including now if it can be updated in this round of changes.

Even though users may miss the "View All" links because they are used to it, I think we could still try removing it. A temporary explanation popover could help die-hard stats lovers transition to the more stream-lined design without needing the "View All" link—and then we could test our assumptions with a few user tests to see if any new users cannot figure out how to get to summary pages.

@timmyc
Copy link
Contributor

timmyc commented Apr 1, 2016

Even though users may miss the "View All" links, I think we could still try removing it. A temporary explanation popover could help die-hard stats lovers transition to the more stream-lined design without needing the "View All" link—and then we could test our assumptions with a few user tests to see if any new users cannot figure out how to get to summary pages.

I think this would be totally worth trying too, perhaps in a follow-up PR though. There are some big changes afoot here already - namely removing of the collapse toggle for modules ( which were persisted in localStorage ), and to some extent the (i) buttons - though those probably aren't used by power users of stats.

My biggest concern with making too many changes here is the fact that there is not a team dedicated to working on stats right now. I think that even this PR will potentially generate some feedback that might require follow-up PRs.

All of your ideas/issues outlined above are great feedback and really should be worked on, but until we can dedicate some dev/design resources around this we need to be careful to not change too much.

@designsimply
Copy link
Contributor

@timmyc, would you be willing to remove "View All" links now and just revert sooner than later if users complain too much? (I can help track user feedback for this.)

@timmyc
Copy link
Contributor

timmyc commented Apr 1, 2016

would you be willing to remove "View All" links now and just revert sooner than later if users complain too much?

Sounds good to me, but we also need to give ti some time to get a good amount of feedback. Also need to give a heads up to all HE's as I think there will be questions around the change.

@alternatekev
Copy link
Contributor Author

@timmyc I've moved the Email Followers download button into the SectionHeader.

@timmyc
Copy link
Contributor

timmyc commented Apr 1, 2016

LGTM. I think we should get this out the door and follow up with the view-all links.

@timmyc timmyc added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Apr 1, 2016
@jancavan
Copy link
Contributor

jancavan commented Apr 1, 2016

Thanks for the thorough review @designsimply. I'm still leaning towards keep "View all", but I think the new change to the chevron icon is much more intuitive than the previous version.

Wasn't sure why some tags are grouped

This has always been like this (I think) even before it was ported over and we didn't get around to make this better and yes, it's confusing.

@folletto
Copy link
Contributor

folletto commented Apr 4, 2016

A user noted of a bug with "View all", maybe it's related to some changes here? See #4507.

@lancewillett
Copy link
Contributor

Fast mouseover on the posting activity graph result in popover artifacts (Firefox-only)

New issue raised for this: #5162

@lancewillett lancewillett removed the [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR label Oct 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Components Stats Everything related to our analytics product at /stats/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants