Skip to content

feat: add cpu and os info to history entries with popover badges#118

Merged
fahimfaisaal merged 1 commit into
mainfrom
worktree-history-cpu-os
Jun 3, 2026
Merged

feat: add cpu and os info to history entries with popover badges#118
fahimfaisaal merged 1 commit into
mainfrom
worktree-history-cpu-os

Conversation

@fahimfaisaal

Copy link
Copy Markdown
Member

Summary

  • Extends HistoryEntry (Go + TS) with cpu and os fields so each merge history entry records the hardware it ran on
  • Updates buildHistory in merge.go to capture cpu/os from each benchmark and propagate existing history entry values
  • Replaces static CPU badge in Dashboard with new CpuBadge and OsBadge components — both show a clickable popover listing per-tag hardware history, matching the existing TimestampBadge UX
  • Updates sample.json with realistic cpu/os history data across all tagged benchmarks and adds tag/history to the Logarithmic benchmark

Test plan

  • Click CPU badge on a benchmark with history — popover shows per-tag CPU info
  • Click OS badge — popover shows per-tag OS info
  • Long CPU names truncate cleanly (tag stays visible, CPU truncates right-aligned)
  • Benchmarks without cpu/os show no badge
  • go test ./... passes

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
shared/merge.go 66.66% 3 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@fahimfaisaal
fahimfaisaal merged commit 0172cc1 into main Jun 3, 2026
1 check passed
@fahimfaisaal
fahimfaisaal deleted the worktree-history-cpu-os branch June 3, 2026 10:11
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