feat(activity): integrate 7-day compact heatmap into activity view #312
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/steeper!312
Loading…
Reference in a new issue
No description provided.
Delete branch "phase05-heatmap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Add a 7-day compact heatmap to the activity view's render output, completing #234.
New file:
internal/activity/heatmap.goRender7DayHeatmap(days)Wed ▄ Thu ▃ ...)heatmapLevel(count, maxVal)totalActivity(d)Heatmap levels
·▁▂▃▄Integration
View.renderSparklines()as the first section, before PR/Issue/Contribution sparklinesDailyActivitycache (compatible format viatotalActivity())References: #234, #230, #231, #232, #233
Testing
go test -race ./...— all pass (0 races)Review
Result: Approved — no blocking issues.
Summary: Adds
internal/activity/heatmap.gowith 7-day compact heatmap.Render7DayHeatmapoutputs weekday-level pairs (e.g.,Wed ▄ Thu ▃ ...) using 5 levels (· ▁ ▂ ▃ ▄).totalActivity()sums all 6 metrics.heatmapLevel()uses equal-step distribution scaled to max value. Integrated into view'srenderSparklines()as first section under "Activity" heading. ROADMAP2.md updated.Non-blocking:
Render7DayHeatmapChecklist:
go test -racepasses