feat: job detail page (v0.2.0 #1)#5
Merged
Conversation
Add a show action and view for individual job executions, surfacing full arguments (pretty-printed JSON), queue, priority, enqueued time, status badge, Active Job ID, and status-specific metadata (scheduled_at, concurrency key, blocked-until). Job class names in the list are now links to the detail page with data-turbo-frame="_top" to break out of the filter Turbo Frame. Discard button available on the detail page for ready, scheduled, and blocked jobs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Switch show page from single-column stacked layout to side-by-side grid (1fr 1fr): Details card left, Arguments card right. Move Discard button into the page header (top right) with breadcrumb navigation replacing the back link. Show all fields unconditionally with — for empty values. Update dl to auto/1fr columns and code block to pre-wrap with max-height scroll. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Without turbo-rails, Rails doesn't know about text/vnd.turbo-stream.html
so respond_to { format.turbo_stream } raises an unrecognised format error.
Register it once at engine boot; the unless guard avoids double-registration
when the host app already has turbo-rails loaded.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The turbo_stream helper (used in destroy.turbo_stream.erb) is provided by turbo-rails, not by loading Turbo from a CDN. Add turbo-rails >= 2.0 as a declared gemspec dependency and require it in the engine, matching the solid_queue_dashboard approach. Remove the now-redundant manual Mime::Type registration. Expose @execution in destroy so the template uses @execution.id rather than params[:id]. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Use CSS stretched-link pattern: sqw-gem-card__link::after covers the entire card, making the whole surface navigate to the section. Queue card stat links remain independently clickable via position: relative z-index: 1. Cards also get a hover box-shadow for visual feedback. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
README: add job detail page to features list, add turbo-rails to requirements, note clickable dashboard cards. ROADMAP: remove completed job detail page entry from v0.2.0. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /jobs/:idshow view with full job metadata: class, status badge, queue, priority, Active Job ID, enqueued time, scheduled/blocked-until, and concurrency key — displayed in a two-column card layout matchingsolid_queue_dashboarddata-turbo-frame="_top"breaks out of the filter Turbo Frame)turbo-rails >= 2.0as a declared gemspec dependency andrequire "turbo-rails"in the engine — this provides theturbo_streamview helper used indestroy.turbo_stream.erb(previously missing, causing 500 errors on Discard)::afteroverlay on the header link); individual Queue stat links remain independently clickable viaz-index: 1Test plan
bundle exec rake)/solid_stack/jobs— job class names are clickable links🤖 Generated with Claude Code