Skip to content

feat(admin): sort job board by name or date (#2488) - #2498

Merged
jung-thomas merged 2 commits into
DEVfrom
worktree-issue-2488-job-board-sort
Sep 24, 2026
Merged

jung-thomas merged 2 commits into
DEVfrom
worktree-issue-2488-job-board-sort

Conversation

@jung-thomas

Copy link
Copy Markdown
Contributor

What

Adds a Name / Date sort toggle to the Cron health panel on the admin-ui Board (/admin-ui/#/board), per #2488.

  • Date (default) — unchanged Cron overview and monitoring page #750 chronological sort by nextRunIso (soonest first).
  • Name — alphabetical by 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: new sortJobsByName + sortJobs(jobs, key) dispatcher (pure helpers).
  • Board.controller.js: cache the unsorted JOIN in _joinedJobs, add _applyJobSort + onJobSortChange; sortKey tracked on the jobControls model.
  • Board.view.xml: Panel headerToolbar hosts the title + SegmentedButton (selectedKey two-way bound to jobControls>/sortKey).

Tests

  • test/unit/admin-shell/job-controls-sort.test.js: +8 cases for sortJobsByName and the dispatcher. 11/11 pass.
  • Existing board-controller-job-controls suite: 29/29 pass.
  • UI5 linter clean on all 3 changed source files.

Closes #2488

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
@jung-thomas
jung-thomas merged commit f2f041d into DEV Sep 24, 2026
5 checks passed
@jung-thomas
jung-thomas deleted the worktree-issue-2488-job-board-sort branch September 24, 2026 12:38
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.

1 participant