Skip to content

feat: add failed job trend chart to dashboard (#76)#96

Merged
eclectic-coding merged 1 commit into
mainfrom
feat/failed-job-trend-chart
May 27, 2026
Merged

feat: add failed job trend chart to dashboard (#76)#96
eclectic-coding merged 1 commit into
mainfrom
feat/failed-job-trend-chart

Conversation

@eclectic-coding
Copy link
Copy Markdown
Owner

Summary

  • Adds a FailedJobSparkline service model (mirrors ThroughputSparkline, buckets FailedExecution records by created_at over 12 hours)
  • Adds failed_job_sparkline_svg helper with failure-specific tooltip text
  • Renders a second sparkline wrap below the throughput chart on the Solid Queue dashboard card, colored with --danger so spikes are immediately visible
  • 6 new model specs; full suite passes at 349 examples, 0 failures

Test plan

  • Visit dashboard — "Failures — last 12 hours" sparkline appears below "Throughput — last 12 hours" in the Solid Queue card
  • Bars render in red (danger color) vs blue throughput bars
  • Hover tooltips show "N failures (Xh–Yh ago)" / "N failures in the last hour"
  • With no recent failures, all bars appear at minimum height with low opacity
  • bundle exec rake passes

Closes #76

🤖 Generated with Claude Code

Adds a 'Failures — last 12 hours' sparkline below the throughput sparkline
on the Solid Queue card, rendered in the danger color so failure spikes are
visible before clicking into the failed jobs list.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eclectic-coding eclectic-coding merged commit 02eb68f into main May 27, 2026
5 checks passed
@eclectic-coding eclectic-coding deleted the feat/failed-job-trend-chart branch May 27, 2026 13:22
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.

[v1.1] Failed job trend chart

1 participant