Commit Graph
38 Commits
Author SHA1 Message Date
martin-mfg 0dacdfa4be remove more duplicated tests 2025-11-02 13:04:15 +01:00
martin-mfg 39f93a7229 remove duplicated tests, remove duplicated comment 2025-11-02 12:24:11 +01:00
martin-mfg df2c7db3fb Merge remote-tracking branch 'origin/master' into merge-upstream 2025-11-02 09:29:38 +01:00
Alexandr GarbuzovandAlexandr 9ed6f2d361 refactor: move encode HTML function tests into separate module (#4593)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 20:29:53 +02:00
Alexandr GarbuzovandAlexandr 8c754e3aec refactor: move encode HTML function into separate module (#4591)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 20:29:24 +02:00
Alexandr GarbuzovandAlexandr 8c8393183d refactor: move svg rendering related code into separate module (#4588)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 20:27:00 +02:00
Alexandr GarbuzovandAlexandr 0c3b2f19b7 tests: implement more test cases for operations (#4587)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 19:40:53 +02:00
Alexandr GarbuzovandAlexandr a2dd28e067 refactor: move operations tests into separate module (#4586)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 19:40:44 +02:00
Alexandr GarbuzovandAlexandr 72e0a98eeb fix: resolve vscode type errors inside utils tests (#4585)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 19:40:28 +02:00
Alexandr GarbuzovandAlexandr 14b0513c60 refactor: move operations into separate module (#4582)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 19:40:17 +02:00
c6c26c533f 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-25 19:28:11 +02:00
Alexandr GarbuzovandAlexandr 122e4a0266 refactor: better naming for kformatter function tests (#4574)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 19:02:49 +02:00
Alexandr GarbuzovandAlexandr 07f53667da 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-25 19:02:47 +02:00
Alexandr GarbuzovandAlexandr 3cf087b160 refactor: move wrap text multiline function into fmt module (#4572)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 19:02:38 +02:00
Ophelia GoldsteinandAlexandr e61dcc9de9 refactor: move fmt related tests into separate file (#4569)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 19:00:05 +02:00
Ophelia GoldsteinandAlexandr e29ac4b338 refactor: move formatting related code into separate file (#4568)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 18:58:57 +02:00
Ophelia GoldsteinandAlexandr 64558e718e refactor: move color related tests into separate file (#4564)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 18:56:06 +02:00
2e07ac2bd6 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-25 18:47:16 +02:00
Ophelia GoldsteinandAlexandr 2e45763952 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-25 18:35:12 +02:00
Ophelia GoldsteinandAlexandr 14660f5171 refactor: move all color related code into separate file (#4557)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 18:31:43 +02:00
dependabot[bot]dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Alexandr
0cdf899b6f 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-25 18:25:55 +02:00
Ophelia GoldsteinandAlexandr 6db97d40a1 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-25 17:33:30 +02:00
708e76c484 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-25 17:19:06 +02:00
Ophelia GoldsteinandAlexandr c0901616e2 refactor: organize imports inside tests files (#4542)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 16:59:51 +02:00
Ophelia GoldsteinandAlexandr bcecc583df fix: remove duplicate jest globals imports inside tests files (#4541)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 16:55:29 +02:00
71aaf018dc 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-25 16:52:12 +02:00
739fd1739a 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-25 16:52:00 +02:00
Ophelia GoldsteinandAlexandr b119e6a61c refactor: improve cache control headers formatting (#4536)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 16:48:10 +02:00
Alexandr GarbuzovandAlexandr 3bcd26a6a9 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-25 16:39:05 +02:00
Alexandr GarbuzovandAlexandr b80ace0a5a chore: enable ts-check for bench tests utils (#4512)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 13:00:06 +02:00
Ophelia GoldsteinandAlexandr f5582dd496 chore: improve bench tests utils jsdoc readability (#4501)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:54:13 +02:00
5a7f21812f 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-25 12:49:22 +02:00
Mohd AmirandAlexandr f2efd6052b 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-10-25 12:39:44 +02:00
Ophelia GoldsteinandAlexandr 43dc6788fa tests(e2e): fix gist description (#4450)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:38:59 +02:00
Ophelia GoldsteinandAlexandr ab2b0f4c97 fix: react on both type and message-based rate-limit signals (#4440)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2025-10-25 12:37:28 +02:00
08517568d9 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-10-25 11:46:42 +02:00
7ee200b060 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-10-25 11:31:06 +02:00
martin-mfg d149e0e1f5 initiate monorepo, add original github-trends 2025-09-18 11:30:25 +02:00