Skip to content

feat(wakatime): split insights into separate language and editor sections#32

Merged
thisisrick25 merged 1 commit into
mainfrom
feat/wakatime-split-insights
Jul 24, 2026
Merged

feat(wakatime): split insights into separate language and editor sections#32
thisisrick25 merged 1 commit into
mainfrom
feat/wakatime-split-insights

Conversation

@thisisrick25

Copy link
Copy Markdown
Owner

Splits the single insights config key into two independent keys for granular control:

  • insightsLanguages -> insights/languages/last_year
  • insightsEditors -> insights/editors/last_year

The section config now supports 5 keys: last30, allTime, sinceToday, insightsLanguages, insightsEditors. Default remains ['last30'] when sections is unset. Sections render in config order; only selected endpoints are fetched; graceful per-section degradation preserved.

  • Updated SectionKey union + VALID_SECTIONS
  • Split renderInsights into renderInsightsLanguages (#### Last Year Languages) + renderInsightsEditors (#### Last Year Editors)
  • Updated exhaustive renderSection switch
  • Updated plugin README sections table, note, example output, and config example
  • Verified: npm run build exit 0, npx tsc --noEmit exit 0

@thisisrick25
thisisrick25 merged commit 3a83c22 into main Jul 24, 2026
@thisisrick25
thisisrick25 deleted the feat/wakatime-split-insights branch July 24, 2026 08:01
@thisisrick25 thisisrick25 Bot mentioned this pull request Jul 24, 2026
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