Commit Graph
248 Commits
Author SHA1 Message Date
Alexandr GarbuzovandAlexandr e158f0d27f refactor: move operations into separate module (#4582)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-15 23:29:53 +03:00
6d1a5e51bc refactor: move logger into separate module (#4581)
* refactor: move logger into separate module

* Update api/status/pat-info.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-15 23:03:48 +03:00
Alexandr GarbuzovandAlexandr d574feb667 refactor: better naming for kformatter function tests (#4574)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-14 21:33:07 +03:00
Alexandr GarbuzovandAlexandr fda29161e8 refactor: move wrap text multiline function tests into fmt module (#4573)
* refactor: move wrap text multiline function tests into fmt module

* lints

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-14 21:19:54 +03:00
Alexandr GarbuzovandAlexandr ab53e3052d refactor: move wrap text multiline function into fmt module (#4572)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-14 21:11:23 +03:00
Ophelia GoldsteinandAlexandr b9c3bf6251 refactor: move fmt related tests into separate file (#4569)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-13 23:56:07 +03:00
Ophelia GoldsteinandAlexandr 5df2e634e9 refactor: move formatting related code into separate file (#4568)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-13 23:50:06 +03:00
Ophelia GoldsteinandAlexandr c1d13eac19 refactor: move color related tests into separate file (#4564)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-13 20:39:16 +03:00
4143c6dec3 feat: implement number precision parameter for stats card (#4514)
* Update short number format 

Update short number format by adding 2 decimal places instead of 1 for numbers between 1,000 and 9,999

* review

* Update src/common/utils.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* dev

* dev

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-13 20:21:28 +03:00
Ophelia GoldsteinandAlexandr 90955dca00 fix: remove repository link display on missing param errors (#4560)
* fix: remove repository link display on missing param errors

* fix tests

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-12 23:14:27 +03:00
Ophelia GoldsteinandAlexandr 701068b8bc refactor: move all color related code into separate file (#4557)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-11 22:07:03 +03:00
dependabot[bot]dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Alexandr
6d6b87c359 build(deps-dev): bump jest from 29.7.0 to 30.2.0 (#4524)
* build(deps-dev): bump jest from 29.7.0 to 30.2.0

Bumps [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) from 29.7.0 to 30.2.0.
- [Release notes](https://github.com/jestjs/jest/releases)
- [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jestjs/jest/commits/v30.2.0/packages/jest)

---
updated-dependencies:
- dependency-name: jest
  dependency-version: 30.2.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* migration

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-10 19:20:14 +03:00
Ophelia GoldsteinandAlexandr b164ecebda refactor: move errors related code into separate file (#4554)
* refactor: move errors related code into separate file

* jsdoc

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-09 22:31:46 +03:00
0afa6c4e78 refactor: reorganize cache TTL constants (#4550)
* refactor: reorganize cache TTL constants

* Update tests/wakatime.test.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-09 03:41:02 +03:00
Ophelia GoldsteinandAlexandr 879463b14e refactor: organize imports inside tests files (#4542)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-08 01:58:06 +03:00
Ophelia GoldsteinandAlexandr 12caf46c6d fix: remove duplicate jest globals imports inside tests files (#4541)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-08 01:42:04 +03:00
e8e5cf86fb feat: disable cache with proper headers when CACHE_SECONDS env is zero (#4539)
* feat: disable cache with proper headers when CACHE_SECONDS env is zero

* Update src/common/cache.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-08 01:19:54 +03:00
e9d0e8fd17 refactor: named arguments for render error function (#4537)
* refactor: named arguments for render error function

* Update tests/api.test.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-07 23:21:18 +03:00
Ophelia GoldsteinandAlexandr f7920901b6 refactor: improve cache control headers formatting (#4536)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-07 22:44:33 +03:00
Alexandr GarbuzovandAlexandr 09627ce715 refactor: move cache headers logic into reusable functions (#4533)
* refactor: move cache headers logic into reusable functions

* dev

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-07 00:13:21 +03:00
Alexandr GarbuzovandAlexandr e09f69c82b chore: enable ts-check for bench tests utils (#4512)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-04 21:59:30 +03:00
Ophelia GoldsteinandAlexandr b25904c123 chore: improve bench tests utils jsdoc readability (#4501)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-02 21:35:18 +03:00
0d60641b7c tests: use custom benchmarking solution instead of outdated jest-bench package (#4468)
* Remove jest-bench dependency and use custom solutions

* review

* Update tests/bench/calculateRank.bench.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-01 22:20:32 +03:00
Mohd AmirandAlexandr 4f17194684 fix: display correct data when user don't have any pull requests (#4452)
* Fix: When user doesn't have any PR, it's Merged PRs Percentage is NAN (fixes #4449)

* review

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-09-24 22:55:49 +03:00
Ophelia GoldsteinandAlexandr 51664ce7fa tests(e2e): fix gist description (#4450)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-09-19 22:37:29 +03:00
Ophelia GoldsteinandAlexandr a8c56ff4c9 fix: react on both type and message-based rate-limit signals (#4440)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-09-18 19:52:10 +03:00
b594b57b56 feat: implement commits year option and display appropriate year label (#2107)
* add custom year

* edit fetcher

* add tests

* add documentation

* Update vercel.json

* Update fetchStats.test.js

* Update readme.md

* Update readme.md

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

* test: fix tests

* style: format code

* fix: fix commit stats time frame description #1053

This commit makes sure the last year label is shown when
`include_all_commits` or `year` is not provided. See #1053 for more
information.

* resolved merge conflict

* Update stats-fetcher.js

* resolve comments

* Update src/cards/types.d.ts

Co-authored-by: Alexandr Garbuzov <qwerty541zxc@gmail.com>

* Update src/fetchers/stats-fetcher.js

Co-authored-by: Alexandr Garbuzov <qwerty541zxc@gmail.com>

* graphQL year only to commit

* change argument name to commits_year

* Update readme.md

Co-authored-by: Alexandr Garbuzov <qwerty541zxc@gmail.com>

* Update readme.md

Co-authored-by: Alexandr Garbuzov <qwerty541zxc@gmail.com>

* Update readme.md

Co-authored-by: Alexandr Garbuzov <qwerty541zxc@gmail.com>

* wrap label into function

* review

* more review

* fix test

* Update readme.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* docs

---------

Co-authored-by: Touch Sungkawichai <talay@10ninox.com>
Co-authored-by: Rick Staa <rick.staa@outlook.com>
Co-authored-by: Alexandr Garbuzov <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-17 22:01:37 +03:00
078040d26e feat: add bytes stats format option for top-languages card (#3708)
* feat: add `display_bytes` option to top-languages.

* docs: add description about display bytes in top-languages

* feat: add `stats_format` option instead of `display_bytes`

* docs: add description about stats format in top-languages

* refactor: rewrite with function to determine display value

* docs: add `stats_format`to table of parameter

* fix: remove unnecessary decimal part from format of bytes

* tests: add tests of stats_format in top-langs card

* Update tests/renderTopLanguagesCard.test.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update readme.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* prettier

* jsdoc

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-16 21:41:46 +03:00
Kyle UptonandAlexandr 3987991058 feat: implement whitelist for self-hosted instances (#3939)
* whitelist for username based endpoints

* added gist whitelist

* review

* fix

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-09-15 23:13:42 +03:00
Yunxiao CrrashhandAlexandr 70add4cfcf fix: update Simplified Chinese translations (#3766)
* chore(translations): Update translation for cn

Signed-off-by: crrashh1542 <kotsuki@crrashh.com>

* update tests

* prettier

---------

Signed-off-by: crrashh1542 <kotsuki@crrashh.com>
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-09-15 20:12:33 +03:00
Małgorzata (Gosia)andAlexandr ea6ef1124d fix: handle apostrophes for names ending in x (#4343)
* fix: handle apostrophes for names ending in x

* review

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-09-10 18:32:30 +03:00
Alexandr Garbuzov bbadc0b212 tests(wakatime card): add percent display format test (#3505) 2025-08-24 17:44:45 +03:00
Alexandr Garbuzov 411e799d1d tests(wakatime card): fix correct render test (#3506) 2025-08-24 17:39:04 +03:00
Alexandr Garbuzov dd7582db8f refactor: fix cards files names by removing duplicating postfix (#4376) 2025-08-24 17:14:18 +03:00
Alexandr Garbuzov 09cb2a596e refactor: fix fetchers names by removing duplicating postfix (#4375) 2025-08-24 17:07:23 +03:00
Alexandr Garbuzov 6b457d04f1 tests: return cache tests which were removed in 53e4041 (#4368) 2025-08-24 16:43:02 +03:00
Alexandr Garbuzov 2d143645b7 tests(e2e): fix top-langs and wakatime cards test data to prevent workflow errors (#4367) 2025-08-24 16:30:59 +03:00
anuraghazra 53e40413e7 chore: update 2024-10-11 23:10:49 +05:30
Alexandr Garbuzov 6c6888e516 tests(e2e): fix stats card data name (#3839) 2024-07-06 20:09:53 +03:00
Alexandr Garbuzov 5f411be854 tests(e2e): update data to fix retrieve stats card test (#3643)
* tests(e2e): update data to fix retrieve stats card test

* dev
2024-02-06 12:14:45 +01:00
Alexandr Garbuzov 547660b0f1 tests(e2e): update data to fix retrieve stats card test (#3626) 2024-01-30 22:41:57 +01:00
Alexandr Garbuzov 319e3d401f tests: refactor stats card e2e test to avoid future error due to yearly data update (#3612)
* tests: refactor stats card e2e test to avoid future error due to yearly data update

* dev
2024-01-25 10:31:54 +01:00
Alexandr Garbuzov 533469d677 tests(e2e): update data to fix retrieve stats card test (#3609) 2024-01-23 14:23:26 +01:00
Alexandr Garbuzov 4710f24670 tests(stats card): fix render translations test (#3580) 2024-01-07 08:42:23 +01:00
Alexandr Garbuzov 1656ec6d3c tests: add pin card performance test (#3374) 2023-11-28 19:44:21 +02:00
Alexandr Garbuzov 0616df3746 tests: add gist card performance test (#3372) 2023-11-28 19:39:15 +02:00
Alexandr Garbuzov ddcc30d641 feat(repo card): add description lines count query parameter (#3453)
* feature(repo card): add description lines count query parameter

* dev

* dev

* docs

* test
2023-11-20 20:08:48 +02:00
Alexandr Garbuzov f26b83d6cd tests: fix typo inside card class proper height/width test (#3489) 2023-11-20 09:57:29 +01:00
Alexandr Garbuzov e5b5da86e5 tests: add basic wakatime endpoint test (#3454) 2023-11-06 19:40:30 +01:00
Alexandr Garbuzov 6d8169fd2c tests(wakatime-fetcher): fix brand casing (#3455) 2023-11-06 15:21:14 +01:00