Skip to content

fix: rename weekStart → date in demo to match synced CodeFrequencyChart#26

Merged
homeles merged 1 commit into
demofrom
fix/demo-sync-type-error
Apr 16, 2026
Merged

fix: rename weekStart → date in demo to match synced CodeFrequencyChart#26
homeles merged 1 commit into
demofrom
fix/demo-sync-type-error

Conversation

@lupita-hom

Copy link
Copy Markdown
Collaborator

The Sync Demo workflow copies CodeFrequencyChart.tsx from main, which was updated to use date instead of weekStart in the TimeSeriesPoint interface. The demo's github-api.ts still produced objects with weekStart, causing a TS2322 type error on build.

Changes:

  • src/lib/github-api.ts: renamed weekStartdate in the CodeFrequencyData type and all usages
  • src/components/CodeFrequencyChart.tsx: aligned field name (this file gets overwritten by the sync anyway, but keeps the branch buildable)

Fixes the Sync Demo Branch workflow failure from PR #25 merge.

@homeles homeles merged commit 7bc536a into demo Apr 16, 2026
@homeles homeles deleted the fix/demo-sync-type-error branch April 16, 2026 19:36
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.

2 participants