Commit Graph

178 Commits

Author SHA1 Message Date
Alexandr Garbuzov
cb037aefd8
Tests: Stats card: Add hide all stats and rank icon test (#3149) 2023-08-28 09:12:18 +02:00
Alexandr Garbuzov
b6156a8688
Tests: Add pin endpoint missing params test (#3151) 2023-08-27 09:55:31 +02:00
Alexandr Garbuzov
1c91d1ac43
tests: add gist endpoint proper cache header test (#3152) 2023-08-27 09:55:02 +02:00
Alexandr Garbuzov
eab5fc0274
Tests: Stats card: Add invalid username fetcher test (#3148) 2023-08-26 09:53:21 +02:00
Alexandr Garbuzov
e8b9ccf203
tests: add pin endpoint wrong locale test (#3143) 2023-08-25 09:21:12 +02:00
Alexandr Garbuzov
2cf933c81a
Tests: Add top langs endpoint wrong locale test (#3142) 2023-08-25 09:20:31 +02:00
Alexandr Garbuzov
5c688f9e7c
Tests: Add pin endpoint blacklist test (#3136) 2023-08-24 08:08:22 +02:00
Alexandr Garbuzov
4ccad77d44
Tests: Add top langs endpoint blacklist test (#3135) 2023-08-24 07:39:38 +02:00
Alexandr Garbuzov
a5ddf2632b
Tests: Add index endpoint wrong locale test (#3131) 2023-08-23 14:26:04 +02:00
Alexandr Garbuzov
988044a199
Tests: Add index endpoint blacklist test (#3130) 2023-08-23 09:58:21 +02:00
Alexandr Garbuzov
4cf33ad1bf
Tests: Add gist endpoint wrong locale test (#3127) 2023-08-22 09:03:59 +02:00
Alexandr Garbuzov
fb45135b4f
tests: reduce size of wakatime fetcher test (#3111) 2023-08-22 09:03:34 +02:00
Alexandr Garbuzov
0ac5280ba6
Top langs card: Remove unreachable code from fetcher and increase tests coverage (#3126) 2023-08-22 09:00:56 +02:00
Alexandr Garbuzov
272c712a36
tests: Add Wakatime fetcher error response test to increase coverage (#3112) 2023-08-21 09:09:18 +02:00
Alexandr Garbuzov
4e69e3a358
Tests: Add gist endpoint not found test (#3110) 2023-08-21 09:07:47 +02:00
Alexandr Garbuzov
03b0adc8b7
Tests: Add gist endpoint missing id param test (#3106) 2023-08-20 09:58:48 +02:00
Alexandr Garbuzov
93733caaa6
Gist card: handle not found error (#3100) 2023-08-20 09:58:16 +02:00
Alexandr Garbuzov
9cb275f4ca
Tests: Improve fetch gist test to increase coverage (#3107)
* Tests: Improve fetch gist test to increase coverage

* dev
2023-08-20 09:57:16 +02:00
Alexandr Garbuzov
2e619cc8a8
feat(gist): handle missing param error (#3101) 2023-08-19 08:35:52 +02:00
Alexandr Garbuzov
ea79314a85
Tests: Cover gist endpoint (#3097) 2023-08-18 09:45:01 +02:00
Alexandr Garbuzov
5afd97a94b
Tests: Gist card: Add more render tests (#3087) 2023-08-17 09:42:44 +02:00
Alexandr Garbuzov
101f56c4bd
Refactor: Tests: Rename renderTopLanguages.test.js file for consistency (#3088) 2023-08-17 09:42:16 +02:00
Alexandr Garbuzov
9174e79fc2
Tests: Gist card: Add more tests to check if emojis, themes and colors works properly (#3085) 2023-08-16 09:45:20 +02:00
Alexandr Garbuzov
fe901dd337
Feature: Add gist card (#3064)
* Feature: Add gist card

* dev

* dev

* dev

* dev

* dev

* dev

* e2e

* e2e test timeout
2023-08-14 11:28:01 +02:00
Alexandr Garbuzov
a258b29db5
Feature: Stats card: Show merged PRs count and percentage (#3003)
* Feature: Stats card: Show merged PRs count and percentage

* dev

* dev

* renames
2023-08-14 02:18:57 +03:00
Alexandr Garbuzov
b56689b4bd
Ranks: Take into account user reviewed PRs count (#2857)
* Rank: Take into account user reviewed PRs count

* e2e

* fix tests

* dev

* docs

* dev

* dev
2023-07-21 13:59:53 +02:00
Alexandr Garbuzov
6c92fe9d2a
Eslint integration (#2885)
* eslint integration

* ci & pre commit

* dev

* dev

* dev
2023-07-03 08:54:19 +02:00
Alexandr Garbuzov
9f7184cc9e
Top langs card tests: Fixed helper functions docstrings (#2893) 2023-06-28 20:25:26 +02:00
Alexandr Garbuzov
5486e2ca06
Increase e2e tests timeout secs (#2878) 2023-06-23 09:24:17 +02:00
Rick Staa
2642fc546c
add percentile rank icon (#2859)
* 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>
2023-06-20 08:47:02 +02:00
Rick Staa
a362af0ebc
feat: add 'progress' rank icon (#2858)
This pull request allows users to replace the rank level with the rank progress
by setting the `rank_icon` query to `progress`.
2023-06-19 12:58:02 +02:00
Alexandr Garbuzov
92518e375f
Stats card: show started and answered discussions stats (#2849)
* Stats card: show started and answered discussions stats

* trans

* dev
2023-06-19 05:51:58 +02:00
Alexandr Garbuzov
b70b089b8e
Stats card: migrate from show_total_reviews to show option (resolves #2836) (#2844)
* Stats card: migrate from show_total_reviews to show option (resolves #2836)

* dev

* docs: improve documentation

---------

Co-authored-by: rickstaa <rick.staa@outlook.com>
2023-06-17 23:10:13 +03:00
Alexandr Garbuzov
99aca1b6d5
Fixed docstring for trimTopLanguages function (#2833)
* Fixed docstring for trimTopLanguages function

* dev
2023-06-16 09:25:46 +02:00
Markus Tyrkkö
1bb65ddc29
Added pr reviews to stats (#1404)
* Added pr reviews to stats

* Add 'show' query parameter

* Fix show test

* refactoring

* cleanup

* refactor: restructure stats-card code

---------

Co-authored-by: Markus <markus.tyrkko@gmail.com>
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: rickstaa <rick.staa@outlook.com>
2023-06-15 09:35:09 +02:00
Rick Staa
9831d254d7
test: update 2e2 rank values (#2816)
This commit ensures the new rank values introduced by #2762 are added
to the 2e2 test.
2023-06-13 16:58:30 +03:00
François Rozet
66e5492654
Add finer ranking levels (#2762)
* Add finer ranking levels

* Update rank description
2023-06-12 14:38:07 +02:00
Alexandr Garbuzov
a775176766
Remove restrictedContributionsCount from GraphQL query and tests (#2799) 2023-06-10 10:40:41 +02:00
Rick Staa
b9200c6cf6
feat: remove 'include_private' (#2736)
* feat: remove 'include_private'

As explained in #2517 the 'include_private' flag is confusing and
doesn't work as expected. This commit therefore removes this flag.

* fix: fix tests

* docs: remove redundant private deploy note
2023-06-07 11:21:28 +03:00
Alexandr Garbuzov
4044a0b666
Use compact layout default langs count when hide_progress param was set (#2780) 2023-06-07 09:20:03 +02:00
Rick Staa
f2841e09e1
fix: fix stats contributed to translations (#2708)
* fix: fix stats contributed to translations

* Improved russian and ukrainian translation of statcard.contribs (#2715)

---------

Co-authored-by: Alexandr Garbuzov <53787217+qwerty541@users.noreply.github.com>
2023-06-07 10:19:40 +03:00
Alexandr Garbuzov
894f2e2c5a
Different default languages count for different languages card layouts (#2774)
* Different default languages count for different layouts

* docs: update default  documentation

Updates the README so that the new `langs_count` default behavoir is
explained to users.

---------

Co-authored-by: rickstaa <rick.staa@outlook.com>
2023-06-06 16:42:46 +02:00
Alexandr Garbuzov
fa4d7ee7a1
Cover with test changes in #2770 pull request (#2775) 2023-06-06 08:56:23 +02:00
Alexandr Garbuzov
14fe4cf1db
Remove redundant async notation from several top languages card tests (#2767) 2023-06-05 12:14:33 +02:00
Alexandr Garbuzov
1e0183d202
Conver with test changes in #2755 pull request (#2766) 2023-06-05 12:11:55 +02:00
Rick Staa
1a2a82c3be
test: add new ranking to e2e test (#2750) 2023-06-02 14:44:12 +05:30
Rick Staa
c301289f7d
fix: Make WakaTime card compatible with new API (#2707)
* fix: Make WakaTime card compatible with new API

This commit makes sure that the WakaTime card works with the new
WakaTime API. See https://github.com/anuraghazra/github-readme-stats/issues/2698
for more information.

* fix: fix chinese simplified translations

* fix: improve WakaTime range order

* test: fix WakaTime tests

* refactor: remove WakaTime range loop

* refactor: remove redundant WakaTime call

* test: fix e2e tests

Co-authored-by: Hakula Chen <i@hakula.xyz>

---------

Co-authored-by: Hakula Chen <i@hakula.xyz>
2023-06-02 14:37:59 +05:30
François Rozet
c96e84a9ae
Ranking System v2 (#1186)
* Revise rank calculation

* Replace contributions by commits

* Lower average stats and S+ threshold

* Fix calculateRank.test.js

Missing key in dictionary constructor

Co-authored-by: Rick Staa <rick.staa@outlook.com>

* refactor: run prettier

* feat: change star weight to 0.75

* Separate PRs and issues

* Tweak weights

* Add count_private back

* fix: enable 'count_private' again

* test: fix tests

* refactor: improve code formatting

* Higher targets

---------

Co-authored-by: Rick Staa <rick.staa@outlook.com>
2023-05-26 15:39:35 +02:00
Alexandr Garbuzov
f9427b2a54
Top languages card donut vertical layout (#2701)
* Top languages card donut layout

* dev

* dev

* dev

* dev
2023-05-19 10:45:29 +02:00
Alexandr Garbuzov
6d45f89c9e
Top languages card render test: move repeated code into helper function (#2718) 2023-05-13 13:21:06 +02:00