-
Notifications
You must be signed in to change notification settings - Fork 2k
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 Components to Use StatsTabs / StatsTab #2384
Conversation
@jancavan or @alternatekev if you wouldn't mind giving the new stats tabs scss file a look that would be great. I have yet to update it, just copied it over. One known issue that needs to be addressed is to utilize the |
@timmyc Did you rename the Are you looking for a full refactor of that new SCSS file or just a once-over that it's not broken? |
Great job @timmyc, I'm cleaning up the css now. One thing I noticed is all tabs everywhere are clickable now, but All-time tabs shouldn't be since they're not supposed to link anywhere hence the |
@jancavan I will look into the clicking stuff. Some css issues I have seen is hover-state on "all time" is changing to blue and should not - and the background on the in-active chart tabs. |
c05ccf0
to
48c138a
Compare
Okay rebased this one again, can we get a quick review on this @jblz or @alternatekev ? |
3a05edb
to
cbc17b5
Compare
clickHandler( event ) { | ||
event.preventDefault(); | ||
this.props.tabClick( this.props ); | ||
if ( this.props.tabClick ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch.
Works well and code looks good. Great job! |
Stats: Update Components to Use StatsTabs / StatsTab
Part of the great stats cleanup in the sky project - this branch aims to standardize all the "tabs" used throughout stats to utilize the
<StatsTabs>
and<StatsTab>
components.To Test
Thanks in advance for testing this branch out as it does cover quite a few parts of stats. For your valiant efforts, I will thank you with this.
Each of the following components use either
<StatsTabs>
and/or<StatsTab>
and will need to be verified they still function as they do in production, and visually look the same:Chart Tabs
Viewed on a site stats page for anytime period. Click on each tab, verify they all function as expected
Summary Chart Tabs
These charts are shown on summary pages for Post Details and Video views, and can be accessed by clicking on an entry in the Post & Pages component. Test that no hover state is shown for this tab, and the cursor does not change on hover.
Latest Post Summary
Accessed via the Insights page, verify the tabs visually look the same, and the Views tab clicks through to the post detail page.
Today's Stats
Also on the Insights Page. Verify it looks the same, and that you can click on each tab, and that when you do so, the corresponding chart is loaded ( tab is active ) on the site stats page
All Time
The last on the insights page, again validate it all looks the same and that there is not any hover state properties on the tabs.
Overview
Accessed from
/stats
- pretty much identical to "Today's Stats" above as far as testing goes.