Commit Graph

94 Commits

Author SHA1 Message Date
Rick Staa bc8eaecaf4 feat: rate limit error chaching (#2448)
* feat: rate limit error chaching

Rate limit error caching to alleviate PATs.

* refactor: improve code comments
2023-09-17 15:45:17 +02:00
Alexandr Garbuzov 6370d0c44d refactor: fix I18n class constructor jsdoc to resolve vscode type errors (#3195) 2023-09-14 13:25:52 +02:00
Alexandr Garbuzov ef0ec6e26b refactor: use more clear retryer error message (2) (#3227) 2023-09-14 10:47:00 +02:00
Alexandr Garbuzov 976db143de refactor: use more clear retryer error messages (#3216) 2023-09-12 10:07:20 +02:00
Alexandr Garbuzov c42798b39e refactor: enable curly eslint rule (#3137) 2023-09-12 10:06:01 +02:00
Alexandr Garbuzov b611018476 i18n: set locale only once instead of on each call (#3200) 2023-09-12 09:31:11 +02:00
Alexandr Garbuzov 8879c7fe2e refactor: fix createProgressNode function jsdoc and enable ts-check (#3211) 2023-09-12 09:24:07 +02:00
Alexandr Garbuzov 09b7ad6a58 refactor: move duplicated code for rendering repo/gist cards into utils (#3214) 2023-09-11 22:08:22 +02:00
Alexandr Garbuzov b55aaa4cff refactor: fix card colors type and function to resolve vscode type errors (#3191) 2023-09-11 10:47:55 +02:00
Alexandr Garbuzov 20be43939b refactor: add missing jsdoc for I18n class methods (#3153) 2023-08-27 09:54:07 +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 72cfdf832d Refactor: Stats card: Use typedef tags inside data fetcher (#3056) 2023-08-09 09:22:44 +02:00
Alexandr Garbuzov 879dbf1a59 Refactor: Use typedef tags inside request utils function to resolve eslint errors (#3054) 2023-08-08 08:32:15 +02:00
Alexandr Garbuzov 8bae143e27 Refactor: Fix docstring for rankIcon function (#3029) 2023-08-01 08:37:18 +02:00
Alexandr Garbuzov ffafcf29ed Refactor: Fix docstring for getCardColors utils function (#3011) 2023-07-30 12:08:44 +02:00
Alexandr Garbuzov d7b534abb8 Refactor: Fix MissingParamError class constructor docstring (#3012) 2023-07-30 10:22:23 +02:00
Alexandr Garbuzov 0f8a790cc3 Refactor: Improve docstring for dateDiff utils function (#3001) 2023-07-28 20:10:15 +02:00
Alexandr Garbuzov f3341ddf5f Refactor: Improve docstring for lowercaseTrim utils function (#3002) 2023-07-28 20:09:31 +02:00
Alexandr Garbuzov 16c6caaa52 Silence vscode type error in chunkArray function (#2965) 2023-07-23 12:23:58 +02:00
Alexandr Garbuzov 96d3a47a9f Refactor: Fixed docstring for flexLayout function (#2949)
* Refactor: Fixed docstring for flexLayout function

* dev
2023-07-21 11:44:55 +02:00
Alexandr Garbuzov ad54117e4b Refactor: Fixed fallbackColor function docstring (#2954) 2023-07-21 11:43:41 +02:00
Alexandr Garbuzov f7b51ab3c8 Refactor: Fixed getCardColors function docstring (#2943)
* Refactor: Fixed getCardColors function docstring

* dev
2023-07-19 09:55:12 +02:00
Alexandr Garbuzov 4eb01d80a2 Refactor: Improve docstrings for card class methods (#2938) 2023-07-13 23:42:25 +02:00
Alexandr Garbuzov 45f4320008 Refactor: Fixed docstring for retryer function (#2937) 2023-07-13 23:41:57 +02:00
github-actions[bot] ecac85edd5 refactor: update languages JSON (#2899)
Co-authored-by: rickstaa <rickstaa@users.noreply.github.com>
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2023-07-01 15:38:30 +03: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
Rick Staa a5260cb38a feat: improve locale translation not found error (#2853) 2023-06-19 06:06:24 +03: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
Alexandr Garbuzov 3416ae114f Fix clampValue function docstring (#2796) 2023-06-09 07:41:58 +02:00
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
github-actions[bot] e0b3d833b0 refactor: update languages JSON (#2760)
Co-authored-by: rickstaa <rickstaa@users.noreply.github.com>
2023-05-31 13:24:11 +02:00
Alexandr Garbuzov a4d6fe104f Fixed card constructor docstring to resolve vscode type errors (#2674) 2023-05-03 07:04:33 +02:00
Alexandr Garbuzov 2f4279e738 Fixed vscode type error in get card colors function (#2660) 2023-04-30 08:20:26 +02:00
Alexandr Garbuzov 6eebfe36e8 Fixed docs typo inside src/common/utils.js (#2651) 2023-04-28 09:51:24 +02:00
Fabiano Couto 879937c11d feat(RankIcon): add rank_icon option (#2628)
* feat(theme): add github_dark_dimmed theme

* feat(theme): change github_dark_dimmed icon color

* contrast ratio adjustment

contrast ratio adjustment on github_dark_dimmed theme

* feat(theme): readme preview

* feat(theme): github themes next to each other

* github themes next to each other

* feat(RankIcon): add rank icon option

* feat(RankIcon): extract rankIcon to icons file

* feat(RankIcon): update readme

* feat(RankIcon): test coverage

* Update readme.md

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

---------

Co-authored-by: Rick Staa <rick.staa@outlook.com>
2023-04-24 13:56:14 +00:00
github-actions[bot] b928f51442 refactor: update languages JSON (#2596)
Co-authored-by: rickstaa <rickstaa@users.noreply.github.com>
2023-03-31 06:40:22 +05:30
github-actions[bot] d60d53cdb4 refactor: update languages JSON (#2554)
Co-authored-by: rickstaa <rickstaa@users.noreply.github.com>
2023-03-01 06:47:56 +05:30
Rick Staa 112000667c ci: add update languages action (#2484)
* ci: add update languages action

* ci: make sure PR is created when upstream languages are updated
2023-01-29 15:19:01 +01:00
Rick Staa 077d40561a feat: add PAT monitoring functions (#2178)
* feat: add PAT monitoring functions

This commit adds two monitoring functions that can be used to check
whether the PATs are functioning correctly:
 - status/up: Returns whether the PATs are rate limited.
 - status/pat-info: Returns information about the PATs.

* feat: add shields.io dynamic badge json response

This commit adds the ability to set the return format of the
`/api/status/up` cloud function. When this format is set to `shields` a
dynamic shields.io badge json is returned.

* feat: add 'json' type to up monitor

* feat: cleanup status functions

* ci: decrease pat-info rate limiting time

* feat: decrease monitoring functions rate limits

* refactor: pat code

* feat: add PAT monitoring functions

This commit adds two monitoring functions that can be used to check
whether the PATs are functioning correctly:
 - status/up: Returns whether the PATs are rate limited.
 - status/pat-info: Returns information about the PATs.

* feat: add shields.io dynamic badge json response

This commit adds the ability to set the return format of the
`/api/status/up` cloud function. When this format is set to `shields` a
dynamic shields.io badge json is returned.

* feat: add 'json' type to up monitor

* feat: cleanup status functions

* ci: decrease pat-info rate limiting time

* feat: decrease monitoring functions rate limits

* refactor: pat code

* test: fix pat-info tests

* Update api/status/pat-info.js

Co-authored-by: Anurag Hazra <hazru.anurag@gmail.com>

* test: fix broken tests

* chore: fix suspended account

* chore: simplify and refactor

* chore: fix test

* chore: add resetIn field

---------

Co-authored-by: Anurag <hazru.anurag@gmail.com>
2023-01-28 19:52:02 +05:30
Rick Staa 06a2a78cfc Revert "Revert "Add loading Animation to Most used Language card (#2197)" (#2396)" (#2419)
This reverts commit 4b8198fa21.
2023-01-16 12:30:39 +01:00
Rick Staa ad9db67b4c refactor: update code formatting 2023-01-16 12:28:31 +01:00
Anurag Hazra 0ff426d258 fix: retryer fixed (#2400) 2023-01-13 13:16:33 +05:30
Rick Staa 4b8198fa21 Revert "Add loading Animation to Most used Language card (#2197)" (#2396)
This reverts commit 77dcdab42c.
2023-01-12 22:52:34 +01:00
Huzaifa Khilawala 77dcdab42c Add loading Animation to Most used Language card (#2197)
* add: text animation

* compact progress done

* cleaned code

* non compact animation done

* tests fixed + prettier

* revert: vercel.json

* remove: unnecessary import

* added parameter in docs

* style: improve syntax

Co-authored-by: rickstaa <rick.staa@outlook.com>
2023-01-10 12:21:35 +00:00
Rick Staa 0efb982c2a Revert "feat: add INCLUDE_ORGS env variable (#2275)" (#2276)
This reverts commit ada9cf4e0e.
2022-11-21 11:15:32 +01:00
Rick Staa ada9cf4e0e feat: add INCLUDE_ORGS env variable (#2275)
This commit adds an INCLUDE_ORGS ENV variable that can be used to include results from
organizations into the GRS cards for self-deployed Vercel instances.

**Warning**
This is a hidden feature since we can not officially support this on the Public
Vercel instance due to GraphQL and Vercel rate/timeout limits. You can set this env
variable via Vercel's ENV variable menu (see
https://vercel.com/docs/concepts/projects/environment-variables).
2022-11-21 11:08:05 +01:00
Rick Staa f07cd133d3 fix: fix retry max-out bug (#2121)
* fix: fix retry max-out bug

This commit makes sure that the retry function tests all PATs.

* style: format code

* test: fix retry tests

* style: format code
2022-11-21 10:15:43 +01:00