feat: time-based period filter on jobs and failed jobs#21
Merged
Conversation
Adds a ?period= param (1h / 24h / 7d) to the jobs and failed jobs indexes that filters results by the job's enqueued timestamp. The active period is preserved across status tab switches, class name search, queue filter links, Discard All / Retry All bulk actions, and single-row Discard redirects. Invalid period values are silently ignored. A small pill-style period filter bar appears between the status tabs and search form on both pages. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Uses margin-left: auto on .sqd-period-filter inside the flex search form to push the period pills to the far right of the search row. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- role="group" + aria-label="Time period" on the container so screen readers
announce the group purpose before reading the links
- aria-current="true" on the active period link so AT announces the current
selection without relying on visual styling alone
- aria-label on each link with natural language descriptions ("Last 1 hour"
etc.) so terse labels like "1h" are not read literally
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 12 12
Lines 185 193 +8
=========================================
+ Hits 185 193 +8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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
?period=param (1h/24h/7d) to the jobs and failed jobs indexes, filtering results by the job's enqueued timestampmargin-left: autorole="group",aria-label="Time period"on the container;aria-current="true"on the active link; descriptivearia-labelon each pill ("Last 1 hour", etc.)Test plan
/jobs/list— period pills appear right-aligned in the search row; "All" is active by default?period=1h/jobs/failed_jobs— same filter behavior for failed jobs, including Retry All / Discard All scoping🤖 Generated with Claude Code