-
-
Notifications
You must be signed in to change notification settings - Fork 23.9k
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
add percentile rank icon and remove progress #2859
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2859 +/- ##
=======================================
Coverage 97.72% 97.72%
=======================================
Files 24 24
Lines 5088 5094 +6
Branches 452 452
=======================================
+ Hits 4972 4978 +6
Misses 115 115
Partials 1 1
☔ View full report in Codecov by Sentry. |
2881194
to
ee04e5f
Compare
ee04e5f
to
08497e2
Compare
This commit adds the `percentile` option for the `rank_icon` query variable. This option displays the rank percentile the user belongs to.
08497e2
to
c48c847
Compare
src/common/icons.js
Outdated
`; | ||
case "percentile": | ||
return ` | ||
<text x="-5" y="-12" alignment-baseline="central" dominant-baseline="central" text-anchor="middle" data-testid="percentile-top-header" class="rank-percentile-header"> |
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.
The y
values were chosen after a quick look. It could be that these could be improved to align the header and value better.
e942ad0
to
3de7ab4
Compare
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.
@qwerty541 let me know what you think. We can also replace the
progress
option that was merged, but maybe having both options would be nice. I'm not yet sure 🤔 .
I agree with the @MindLaborDev's point of view explained in #2858 (comment) that it is impossible to understand what the percentile means for random profile visitors. I think that it is better to overwrite the progress
option because very little time has passed since merge of #2858 and most likely no one is using it yet, except @silverwind who needs to be warned.
I have updated the code a little, please check it and feel free to merge.
* feat: add 'percentile' rank icon This commit adds the `percentile` option for the `rank_icon` query variable. This option displays the rank percentile the user belongs to. * style: improve percentile rank icon styling * dev * dev * dev --------- Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
* feat: add 'percentile' rank icon This commit adds the `percentile` option for the `rank_icon` query variable. This option displays the rank percentile the user belongs to. * style: improve percentile rank icon styling * dev * dev * dev --------- Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
* feat: add 'percentile' rank icon This commit adds the `percentile` option for the `rank_icon` query variable. This option displays the rank percentile the user belongs to. * style: improve percentile rank icon styling * dev * dev * dev --------- Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
* feat: add 'percentile' rank icon This commit adds the `percentile` option for the `rank_icon` query variable. This option displays the rank percentile the user belongs to. * style: improve percentile rank icon styling * dev * dev * dev --------- Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
This pull request adds the
percentile
option for therank_icon
query variable. This option displays the rank percentile the user belongs to. See #2858 (comment).@qwerty541 let me know what you think. We can also replace the
progress
option that was merged, but maybe having both options would be nice. I'm not yet sure 🤔 .