Skip to content

feat(core): convert wakatime card to TypeScript - #505

Open
marcalexiei wants to merge 1 commit into
stats-organization:masterfrom
marcalexiei:core-ts
Open

feat(core): convert wakatime card to TypeScript#505
marcalexiei wants to merge 1 commit into
stats-organization:masterfrom
marcalexiei:core-ts

Conversation

@marcalexiei

@marcalexiei marcalexiei commented Aug 23, 2026

Copy link
Copy Markdown

Another step of #140

  • cards/wakatime.js ➡️ cards/wakatime.ts
  • Test and snapshot renamed to renderWakatimeCard.test.ts / renderWakatimeCard.test.ts.snap;
    the snapshot are unchanged.
  • New common/languageColors.ts owns the language-color table:
    the gist and wakatime cards repeated (languageColors as Record<string, string>)[name] || "#858585" three times, and top-languages declared a fourth copy of that hex.
    They now share getLanguageColor() / DEFAULT_LANG_COLOR, and typing the table at the import removes the cast.

@vercel

vercel Bot commented Aug 23, 2026

Copy link
Copy Markdown

@marcalexiei is attempting to deploy a commit to the martin-mfg's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant