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: Use correct color for visitors #21476

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Conversation

nbradbury
Copy link
Contributor

Fixes #21366

As noted in the issue, in dark mode stats didn't differentiate between views & visitors, instead showing them in the same color. This PR addresses this.

To test, simply verify that views and visitors are shown with different colors in both dark and light modes. Before and after shot below.

before

@dangermattic
Copy link
Collaborator

dangermattic commented Nov 20, 2024

1 Warning
⚠️ PR is not assigned to a milestone.

Generated by 🚫 Danger

@wpmobilebot
Copy link
Contributor

Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr21476-c4ae15f
Commitc4ae15f
Direct Downloadjetpack-prototype-build-pr21476-c4ae15f.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr21476-c4ae15f
Commitc4ae15f
Direct Downloadwordpress-prototype-build-pr21476-c4ae15f.apk
Note: Google Login is not supported on these builds.

@nbradbury nbradbury marked this pull request as ready for review November 20, 2024 14:54
Copy link
Member

@dcalhoun dcalhoun left a comment

Choose a reason for hiding this comment

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

Thanks for hunting down the source of the problem.

A couple ideas for the future:

  • We might reconsider the use of pink, as I believe the web no longer relies upon it.
  • The different colors for views vs visitors was not super clear to me, there might be opportunity to improve the graph labeling.

@nbradbury nbradbury merged commit 01e254d into trunk Nov 20, 2024
25 checks passed
@nbradbury nbradbury deleted the issue/21366-stats-dark-mode branch November 20, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stats: Bar graph colors do not differentiate between views and visitors in dark mode
4 participants