Skip to content

Align miner activity heatmap summary window#1254

Open
victortran0904 wants to merge 1 commit into
entrius:testfrom
victortran0904:codex/miner-activity-window-label
Open

Align miner activity heatmap summary window#1254
victortran0904 wants to merge 1 commit into
entrius:testfrom
victortran0904:codex/miner-activity-window-label

Conversation

@victortran0904
Copy link
Copy Markdown

Summary

References #1152.

Verification

  • npm run lint -- --max-warnings 0
  • npm run build
  • git diff --check

Copilot AI review requested due to automatic review settings May 20, 2026 21:51
@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label May 20, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the miner profile’s Developer Activity heatmap so the prominent contribution count and subtitle reflect the same time window as the rendered heatmap (rather than a hardcoded “last 30 days”).

Changes:

  • Derives the displayed contribution count (contributionsShown) directly from the heatmap’s rendered day-bucket map.
  • Updates the subtitle to use the computed totalDaysShown window.
  • Renames the heatmap prop from contributionsLast30DayscontributionsShown.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/components/miners/MinerActivity.tsx Computes contributionsShown from rendered heatmap data and updates subtitle to use totalDaysShown.
src/components/ContributionHeatmap.tsx Renames the count prop and makes the default subtitle depend on totalDaysShown.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +664 to 667
contributionsShown={contributionsShown}
totalDaysShown={totalDaysShown}
subtitle="contribution(s) in the last 30 days"
subtitle={`contribution(s) in the last ${totalDaysShown} day(s)`}
footerText="* Activity based on merged PRs in Gittensor-tracked repositories"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants