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

Update Analytics Dashboard time navigation to tabs #13270

Merged

Conversation

Link2Twenty
Copy link
Contributor

@Link2Twenty Link2Twenty commented Apr 6, 2021

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Move the time navigation to the more modern crayon layout, this will mean the theming stuff will work out the box.

Related Tickets & Documents

Closes #13214

QA Instructions, Screenshots, Recordings

image

UI accessibility concerns?

This should fix the UI accessibility issue mentioned in the original ticket

Added tests?

  • Yes
  • No, and this is why: old tests should still work
  • I need help with writing tests

[optional] Are there any post deployment tasks we need to perform?

N/A

[optional] What gif best describes this PR or how it makes you feel?

upgrades

The added code moved the tabs to the right hand side of the container (until mobile styles kick in then it will fill the container).
@Link2Twenty Link2Twenty requested review from a team, nickytonline and aitchiss and removed request for a team April 6, 2021 09:31
@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Apr 6, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Apr 6, 2021

Thank you for opening this PR! We appreciate you!

For all pull requests coming from third-party forks we will need to
review the PR before we can process it through our CI pipelines.

A Forem Team member will review this contribution and get back to
you as soon as possible!

Copy link
Contributor

@rhymes rhymes left a comment

Choose a reason for hiding this comment

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

Works really well @Link2Twenty, great job!

ps. does this close the issue as a whole? I noticed you haven't specified it in the description

@pr-triage pr-triage bot added PR: partially-approved bot applied label for PR's where a single reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Apr 6, 2021
@Link2Twenty
Copy link
Contributor Author

Link2Twenty commented Apr 6, 2021

does this close the issue as a whole?

It does, I've updated the original post 😅

Copy link
Contributor

@aitchiss aitchiss left a comment

Choose a reason for hiding this comment

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

Looking good! Thanks for this.

I think there is more work to do at a later time to make this more accessible as a tab panel, but we already have an over-arching issue to look at usage of tab groups in the app generally (#11853) 👍

@aitchiss aitchiss merged commit 6aae404 into forem:master Apr 7, 2021
@pr-triage pr-triage bot added PR: merged bot applied label for PR's that are merged and removed PR: partially-approved bot applied label for PR's where a single reviewer approves changes labels Apr 7, 2021
@Link2Twenty Link2Twenty deleted the Link2Twenty/move-analytics-to-tabs branch April 7, 2021 15:07
@Link2Twenty
Copy link
Contributor Author

I think there is more work to do at a later time to make this more accessible as a tab panel.

I think in this specific instance of tabs the tab list stuff should be super easy to add, would you like me to do a follow up PR?

@aitchiss
Copy link
Contributor

I think there is more work to do at a later time to make this more accessible as a tab panel.

I think in this specific instance of tabs the tab list stuff should be super easy to add, would you like me to do a follow up PR?

Definitely happy if you'd like to have a look at it! I think it might be a significant piece of work though - it requires dynamic manipulation of the tabindex properties on the tab buttons, and also would need a bit of a refactor of how we present the tab panel content itself. At the moment, the HTML is only rendered in the DOM when the given tab is selected, but to follow the tab panel pattern we'd need it to be present in the DOM but hidden (so that we can add the appropriate aria-controls attributes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: merged bot applied label for PR's that are merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Contrast for analytics time windows is very low with the "night" theme
3 participants