Repository navigation
feat(admin): sort job board by name or date (#2488) - #2498
Merged
Merged
Conversation
Release 1.31.3 — Semaphore taxonomy auto-sync (DEV→main promotion)
Add a Name/Date SegmentedButton to the Cron health panel header on the admin-ui Board. Date (default) keeps the existing #750 chronological sort by nextRunIso; Name sorts alphabetically by jobName (case-insensitive, stable, nameless rows last). - job-controls-sort.js: add sortJobsByName + sortJobs dispatcher - Board.controller.js: cache the JOIN, re-sort in memory on toggle (no server round-trip), rebuild timeline ribbon from sorted order - Board.view.xml: headerToolbar with the sort toggle, selectedKey two-way bound to jobControls>/sortKey - tests: cover sortJobsByName + dispatcher (11 pass) Closes #2488
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.
What
Adds a Name / Date sort toggle to the Cron health panel on the admin-ui Board (
/admin-ui/#/board), per #2488.nextRunIso(soonest first).jobName(case-insensitive, stable; nameless rows sort last).Sorting happens in memory on the cached JOIN — no server round-trip. The 24h timeline ribbon is rebuilt from the sorted order so it stays consistent with the table.
How
job-controls-sort.js: newsortJobsByName+sortJobs(jobs, key)dispatcher (pure helpers).Board.controller.js: cache the unsorted JOIN in_joinedJobs, add_applyJobSort+onJobSortChange;sortKeytracked on thejobControlsmodel.Board.view.xml: PanelheaderToolbarhosts the title +SegmentedButton(selectedKeytwo-way bound tojobControls>/sortKey).Tests
test/unit/admin-shell/job-controls-sort.test.js: +8 cases forsortJobsByNameand the dispatcher. 11/11 pass.board-controller-job-controlssuite: 29/29 pass.Closes #2488