Skip to content

[BUG] Commit Activity Tracker displays fixed telemetry for every user #3351

Description

@nyxsky404

Bug Description

The dashboard’s Commit Activity Tracker does not load commit data for the signed-in user. It always renders the same seven hard-coded weekday values for commits, additions, and deletions, while presenting them as a personalized activity chart. The empty state is unreachable because the fixed array is never empty.

Steps to Reproduce

  1. Go to the dashboard as any signed-in user.
  2. Open the Commit Activity Tracker and note the values for each weekday.
  3. Sign in with a different account, or use an account with no recent commits.
  4. Return to the widget and observe the identical chart and tooltip values.

Affected Area

Dashboard

Screenshots

Not applicable. The current widget defines MOCK_TELEMETRY_DATA directly in src/components/dashboard/CommitActivityWidget.tsx and passes it to the chart without an API request.

Browser & OS

Chrome 139 on macOS 15

Environment

Both

Additional Context

The component should request the authenticated user’s commit activity, render a loading and an honest empty/error state, and only display chart values derived from that response. Regression coverage should include two accounts with different activity and a user with no data.

Metadata

Metadata

Assignees

Labels

gssoc:assignedGSSoC: Issue assigned to a contributor

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions