Skip to content
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

fix: Make WakaTime card compatible with new API #2707

Merged
merged 7 commits into from
Jun 2, 2023

Conversation

rickstaa
Copy link
Collaborator

@rickstaa rickstaa commented May 8, 2023

This commit makes sure that the WakaTime card works with the new WakaTime API. See #2698 for more information.

Note
Will be merged when I have one review of somebody that does use the WakaTime card.

This commit makes sure that the WakaTime card works with the new
WakaTime API. See #2698
for more information.
@vercel
Copy link

vercel bot commented May 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
github-readme-stats ✅ Ready (Inspect) Visit Preview May 9, 2023 1:40pm

@github-actions github-actions bot added card-i18n Card text translations. documentation Improvements or additions to documentation. labels May 8, 2023
@rickstaa rickstaa requested a review from Zo-Bro-23 May 8, 2023 07:07
@codecov
Copy link

codecov bot commented May 8, 2023

Codecov Report

Patch coverage: 89.58% and project coverage change: -0.05 ⚠️

Comparison is base (688f4e4) 97.35% compared to head (d93c4d1) 97.30%.

❗ Current head d93c4d1 differs from pull request most recent head eb86029. Consider uploading reports for the commit eb86029 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2707      +/-   ##
==========================================
- Coverage   97.35%   97.30%   -0.05%     
==========================================
  Files          24       24              
  Lines        4310     4348      +38     
  Branches      393      402       +9     
==========================================
+ Hits         4196     4231      +35     
- Misses        112      115       +3     
  Partials        2        2              
Impacted Files Coverage Δ
src/fetchers/wakatime-fetcher.js 76.47% <62.50%> (-2.95%) ⬇️
src/cards/wakatime-card.js 99.48% <90.90%> (-0.52%) ⬇️
src/common/utils.js 100.00% <100.00%> (ø)
src/translations.js 99.74% <100.00%> (+0.01%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@rickstaa rickstaa linked an issue May 8, 2023 that may be closed by this pull request
@rickstaa rickstaa requested a review from anuraghazra May 8, 2023 07:30
@rickstaa rickstaa closed this May 9, 2023
@rickstaa rickstaa reopened this May 9, 2023
Co-authored-by: Hakula Chen <i@hakula.xyz>
@JiveOff
Copy link

JiveOff commented May 9, 2023

Can confirm this PR fixes the issue I've been having with my card under my Wakapi instance.

@rickstaa
Copy link
Collaborator Author

rickstaa commented May 9, 2023

Can confirm this MR fixes the issue I've been having with my card under my Wakapi instance.

@JiveOff thanks for the confirmation!

@Zo-Bro-23 Zo-Bro-23 merged commit c301289 into master Jun 2, 2023
@rickstaa rickstaa deleted the update_waka_to_new_api branch June 2, 2023 09:11
sheerlox pushed a commit to sheerlox/github-readme-stats that referenced this pull request Jun 2, 2023
* fix: Make WakaTime card compatible with new API

This commit makes sure that the WakaTime card works with the new
WakaTime API. See anuraghazra#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>
LucienZhang pushed a commit to LucienZhang/github-readme-stats that referenced this pull request Jun 5, 2023
* fix: Make WakaTime card compatible with new API

This commit makes sure that the WakaTime card works with the new
WakaTime API. See anuraghazra#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>
devantler pushed a commit to devantler/github-readme-stats that referenced this pull request Sep 24, 2023
* fix: Make WakaTime card compatible with new API

This commit makes sure that the WakaTime card works with the new
WakaTime API. See anuraghazra#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>
jacobbexten pushed a commit to jacobbexten/github-readme-stats that referenced this pull request Nov 6, 2024
* fix: Make WakaTime card compatible with new API

This commit makes sure that the WakaTime card works with the new
WakaTime API. See anuraghazra#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>
@muety
Copy link
Contributor

muety commented Dec 8, 2024

Any chances we can add the range query param back in? At least from Wakapi's perspective, I'd find it super convenient if a user could customize the time range displayed by their readme card without restricting their publicly accessible time range (via API) in general.

For example, a user might want to use the stats endpoint in some custom script or for displaying badges with a maximum time range of last_year, but at the same time have the card display only the past week (i.e. last_7_days). I'd find it cool to decouple this and allow to configure the card content independently from the underlying (generic) API endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
card-i18n Card text translations. documentation Improvements or additions to documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Waka time card broken range parameter broken
6 participants