Skip to content

feat: 24-hour cache timeline charts#57

Merged
eclectic-coding merged 3 commits into
mainfrom
feat/cache-timeline
May 26, 2026
Merged

feat: 24-hour cache timeline charts#57
eclectic-coding merged 3 commits into
mainfrom
feat/cache-timeline

Conversation

@eclectic-coding
Copy link
Copy Markdown
Owner

Summary

  • Adds two side-by-side 24-hour bar charts to the Solid Cache overview page: Entries written per hour and Bytes written per hour
  • Each bar shows a hover tooltip (entry count / byte size + time label) via the existing sparkline-tooltip Stimulus controller
  • Backed by a CacheTimeline PORO — single DB query, bucketed in Ruby, matching the ThroughputSparkline pattern
  • New sqw-sparkline--lg CSS modifier (64px height) for larger chart bars
  • v0.5.0 milestone fully shipped; section removed from ROADMAP

Closes #28

Test plan

  • bundle exec rake passes (229 examples, 0 failures)
  • /cache page shows both timeline charts below the size distribution sections
  • Hovering a bar shows the correct count/size and time label
  • Charts render correctly when cache is empty (all bars at minimum height)

🤖 Generated with Claude Code

eclectic-coding and others added 3 commits May 26, 2026 10:07
Adds two side-by-side bar charts to the Solid Cache overview page:
- Entries written per hour over the last 24 hours
- Bytes written per hour over the last 24 hours

Backed by CacheTimeline PORO (single query, bucketed in Ruby).
Reuses the existing sparkline SVG helper and sparkline-tooltip
Stimulus controller; bars use a new sqw-sparkline--lg (64px) modifier.

Closes #28

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
v0.5.0 milestone fully shipped; section removed from ROADMAP.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
display:flex on a td breaks row-height alignment with adjacent cells.
Moving the flex wrapper to an inner div fixes the vertical misalignment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eclectic-coding eclectic-coding merged commit 036926e into main May 26, 2026
5 checks passed
@eclectic-coding eclectic-coding deleted the feat/cache-timeline branch May 26, 2026 14:12
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.

[v0.5.0] Cache: cache timeline chart

1 participant