feat(ansible): runs named by what ran where, with ago, duration and one status badge (#5125)
Runs read "update.yml on web-1" (run_title over the scope label, beside describe_scope) on the runs list, the run page's title and breadcrumb, and the run-started panel. The list shows started |ago (full time on hover), |duration (counting "so far" while a run is going) and a dry-run tag. Run statuses join STATES, so the list and the run page use status_badge: queued dim, running info (blue, so work in progress doesn't read as a problem), success ok "Succeeded", failed crit, interrupted warn, cancelled dim. run_started.html leaves its hard-coded colours for tokens; the run page's facts move to the .kv list and its failures to var(--red). Template hex colours: 54 -> 47. Also fixes #5124's sidebar count, which CI run 8389 failed on: the stylesheet guard allows no weight above 500, and .nav-count asked for 600. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -116,6 +116,14 @@ STATES: dict[str, tuple[str, str]] = {
|
||||
"inactive": ("dim", "Inactive"),
|
||||
"paused": ("dim", "Paused"),
|
||||
"unknown": ("dim", "Unknown"),
|
||||
# An Ansible run (AnsibleRunStatus): working is blue, not amber, so a run
|
||||
# in progress doesn't read as a problem.
|
||||
"queued": ("dim", "Queued"),
|
||||
"running": ("info", "Running"),
|
||||
"success": ("ok", "Succeeded"),
|
||||
"failed": ("crit", "Failed"),
|
||||
"interrupted": ("warn", "Interrupted"),
|
||||
"cancelled": ("dim", "Cancelled"),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user