Skip to content

feat: cable timeline — 24-hour message volume chart#63

Merged
eclectic-coding merged 2 commits into
mainfrom
feat/cable-timeline
May 26, 2026
Merged

feat: cable timeline — 24-hour message volume chart#63
eclectic-coding merged 2 commits into
mainfrom
feat/cable-timeline

Conversation

@eclectic-coding
Copy link
Copy Markdown
Owner

@eclectic-coding eclectic-coding commented May 26, 2026

Closes #35

Summary

  • Adds CableTimeline model that buckets SolidCable::Message records into 24 hourly slots over the last 24 hours
  • Renders a full-width bar chart on the Cable overview page using the existing build_sparkline_svg helper; each bar has a hover tooltip showing the exact message count for that hour
  • Adds cable_messages_timeline_svg helper and sqw-timeline-chart--cable / sqw-timeline-grid--single CSS modifiers so the cable chart uses var(--info) and spans full width (vs. the 2-column cache layout)
  • Adds margin-bottom to .sqw-timeline-grid to match existing margin-top

Test plan

  • Start the dummy app (cd spec/dummy && bin/rails server) and visit /solid_stack/cable
  • Confirm the 24-hour bar chart renders below the stats and above the search form
  • Hover bars to verify tooltips show correct hour labels ("X messages this hour" / "X messages Nh ago")
  • Confirm empty buckets render at reduced opacity
  • Visit /solid_stack/cache and confirm the Cache timeline is unaffected
  • bundle exec rake passes clean

🤖 Generated with Claude Code

eclectic-coding and others added 2 commits May 26, 2026 16:09
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eclectic-coding eclectic-coding merged commit bdf4c03 into main May 26, 2026
5 checks passed
@eclectic-coding eclectic-coding deleted the feat/cable-timeline branch May 26, 2026 20: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.

[v0.6.0] Cable: cable timeline chart

1 participant