# CI runs Based on ci-dash-app from [herdr-plugins](https://github.com/dougcunha/herdr-plugins) by dougcunha (Douglas Cunha), MIT licence, copyright (c) 2026 Douglas Cunha. This copy changes the title, the error messages, GitHub login handling, the square panel style and the runs list. The bundled YAML parser keeps its own ISC licence (see Built from). CI runs shows the GitHub Actions of the repository in the folder you are working in. A header names the repository. Three tabs sit under it: Runs, Dispatch and Artifacts. Runs is one list of the 30 latest runs, newest first, with a search box and filter chips. Click a run to see its jobs and steps. Dispatch starts a workflow by hand in four steps. Artifacts lists build files and downloads them into the repository folder. It follows the focused terminal, so it changes repository when you change folder. ![CI runs](preview.png) ## What you see The mod fills its block. Colors come from `theme()` by name, so it follows any theme. Examples below use Nightfall: `background` `#212121`, `border` `#2a2a2a`, `foreground` `#c4c4c4`, `muted` `#d6d6d6`, `dim` `#8f8f8f`, `raised` `#2b2b2b`, `hover` `#262626`, `ansi1` `#e06c75`, `ansi2` `#98c379`. Other tokens used (`accent`, `working`, `blocked`, `ansi3`, `solid`) are read from the theme and not fixed here. Base text is 13px. Frame. Without `panel`: 10px radius and a 1px `border` line on all sides. With `panel: true`: square corners (radius 0) and a 1px `border` line on the top and bottom edges only. Contents are clipped. The frame fills the block (`size_full`). Header row, 38px high, 12px side padding, 8px gap: - Title "CI runs", semibold. - The repository as `owner/repo`, 11px, `dim`, truncated. Empty until a repository is found. - On the Artifacts tab only: a `↗` button (opens the downloads folder). - A `⟳` button (refresh). - Buttons are 26px high, 10px side padding, 7px radius, 12px text, 1px `border` line, `muted` text. A primary or active button uses `accent` for line and text. A disabled button uses `dim` and does nothing. Tab row, 40px high, 1px `border` line underneath. Each tab is 28px high, 8px radius, 12px text, with a count badge (16px high, 8px radius, 10px text, `dim`): - Runs, count = number of runs loaded. - Dispatch, count = number of workflows that can be dispatched. - Artifacts, count = number of artifacts found. - The count shows only after that tab has loaded. The active tab has a `raised` fill, a `border` line and `foreground` text. Other tabs use `muted`. Runs tab: - Search box, 36px high, 10px radius, `raised` fill, 1px `border` line, a 14px magnifier icon, placeholder "Filter runs…", 12px text. At the right, a count in 11px `dim`: `30`, or `shown/30` when a filter is active. A small close icon (18px target) appears when text is typed and clears it. - Filter chips under the box, wrapped, 4px gap: All, Running, Failed, Passed, Other. Each chip is 26px high, 8px radius, 12px text, with a 6px colored dot and a count badge. Running uses `working`, Failed `ansi1`, Passed `ansi2`, Other `dim`. Chips other than All show only when they have a count above 0 or are selected. Counts follow the search text. The selected chip has a `raised` fill and a `border` line. - Run list: one scrolling list, no section headers, sorted by start time (`run_started_at`, else `created_at`) newest first, ties broken by higher run id. Each row has 14px side padding, 8px vertical padding, hover fill `hover`. - Top line: status icon (14px), run title (14px, truncated; `display_title`, else `name`, else `Run `), `#` (11px `dim`), age (11px `dim`: `just now`, `5m ago`, `3h ago`, `2d ago`, then an ISO date after 30 days). - Second line, indented 24px, wrapped, 6px gap, made of pills: branch (monospace, 11px branch icon), status pill, duration (`42s`, `3m 07s`, `1h 05m`), event pill in `accent` when the event is not `push` (underscores become spaces), `attempt N` when N is above 1, and ` · ` as 11px `dim` text. - Pill: 20px high, 7px side padding, 6px radius, 11px text, 11px icon. Colored pills have a 14% tint of their color (hex alpha `24`) behind text in that color. A plain pill is a 10% wash (alpha `1a`) of `foreground` with `muted` text. - Status colors: success `ansi2`, failure `ansi1`, warning `ansi3`, running `working`, queued `blocked`, neutral `dim`. Glyphs: `✓` passed, `✕` failed, `!` warning, `–` neutral, `○` queued. Running shows a spinning 11px (pill) or 14px (row) spinner icon that turns once per 900 ms. Labels: `running`, `passed` (for success), `failed`, `timed out`, `startup failure`, `action required`, `cancelled`, `skipped`, `neutral`, `stale`, or the raw status with underscores as spaces for queued states. - If filters match nothing: "No run matches the filters." and a "Clear filters" button. Run detail (replaces the list when you click a run): - Top bar with a bottom line: `‹ Runs`, then at the right `Open`, and either `Cancel` (run not finished) or `Rerun` (run finished, primary style). - Heading block: status icon, run title (15px semibold), `#number`. Under it the status pill, duration, branch, event and attempt pills. Under those, 11px `dim`: ` · · `. - Jobs: one block per job. The job row is 28px high, semibold, with status icon, name and duration at the right. Steps under it are 22px rows, 12px text, indented 32px, with status icon, name and duration. Finished steps use `muted` text. - "Waiting for jobs…" shows in `dim` while no jobs exist. - If an update fails: "Update failed: " in `ansi1`, 11px. - Artifacts section (only when the run is finished and has artifacts, or listing them failed): header `ARTIFACTS ` followed by artifact rows (same rows as the Artifacts tab). A failed list shows "Could not list artifacts: " in `ansi1`. Dispatch tab: - A stepper row with four numbered steps: Workflow, Branch, Inputs, Review. Each is a 20px circle (11px number). The current step is `accent`, done steps show `✓` on a green tint and can be clicked, later steps are `raised` with `dim` text. Steps are joined by 1px lines. When the row is 420px wide or more, every label shows. Narrower, only the current step's label shows. - Step 1, Workflow: text "Pick a workflow to run by hand.", a filter box ("Filter workflows", count at the right), then one card per workflow. A card has a 10px radius, `raised` fill, a 1px `border` line and 12px padding. It holds a 28px tile with a play icon tinted `accent`, the name (14px), the file path (monospace, 11px, `dim`), and a `›`. A second line has a pill `N input(s)` (accent) or `no inputs`, the latest run's status pill with `last run ` (or "no recent run"). While loading: a 22px spinner with "Reading workflows…" and "Checking which ones can be started manually." - Step 2, Branch: a summary strip with the workflow name and path, a filter box ("Filter branches"), a `BRANCHES` section header ("Choose where the run starts"), then 38px rows with a 14px branch icon (accent for the default branch), the name in monospace, a `default` pill (accent) on the default branch and a `current` pill on the branch of the focused terminal. Order: default branch, current branch, then the rest alphabetical. Footer button `‹ Workflows`. - Step 3, Inputs: summary strip with the workflow and a branch pill, then one card per input. The card header has the name (13px semibold), a `required` pill (`ansi1`) or `optional` pill, and the type as a monospace pill at the right. A 11px `dim` description follows if there is one. The editor depends on the type: `string`, `number` and `environment` get a 30px text box (8px radius); `boolean` gets a connected `true | false` control (28px high); `choice` gets one 26px chip per option, the chosen one tinted `accent`. Warnings from the workflow file show as banners at the top. A problem message shows as a red banner above the footer. Footer: `‹ Branches` and a primary `Review →`. - Step 4, Review: summary strip, a banner "Nothing starts until you press Dispatch.", then an `INPUTS` table (key column 110px, monospace, empty values shown as `(empty)`). A workflow with no inputs shows "No inputs to fill" and "The run starts on with the workflow's own defaults." Footer: `‹ Back` and the primary `Dispatch` button (32px high, 16px side padding, 8px radius, `solid` fill, `solid_foreground` text, 13px semibold, play icon). - Busy states show a spinner and text such as "Loading branches for …", "Reading at …", "Dispatching workflow…". - A notice step shows a banner in `blocked` color and a `‹ Back` button. Artifacts tab: - Search box ("Filter artifacts…", count `total` or `shown/total`), a status chip row (All, Available, Downloaded, Expired; Downloaded uses `ansi2`, Expired `ansi1`, Available `accent`), and a type chip row labeled "Type": `All types`, then `.zip`, `.exe` and so on by count, then `other`. The type row shows only when at least one artifact name ends in a known extension. Each chip row counts what the other row already allows. - Results are grouped by workflow. A group header is the workflow name in capitals, a count, and a dim `# · `. - An artifact row: 15px package icon (`accent`, `dim` when expired), name (14px), and at the right an action word in `accent`: `Download`, `Downloading…`, `Retry`, `Again`. Nothing shows for expired. A second line has pills: file type (monospace, accent), size (`512 B`, `1.5 MB`), age, `expired` (red), `downloaded` with `✓` (green), `failed` with `✕` (red), `downloading` (spinner, `working`). After a download the line also shows the folder path in `dim`, or the error in `ansi1`. - A line "N workflow(s) could not be read." (11px, `blocked`) shows when some workflows failed. - Empty states: "No artifacts found." with "None of the latest runs of any workflow produced artifacts."; "No artifact matches the filters." with a "Clear filters" button. Note line. A one-line strip at the bottom (11px, `blocked`, 1px top line) shows messages like "Cancel…", "Rerun failed: ", `Opened `. ## How it behaves Finding the repository: - Each render checks the focused terminal. It uses the folder of the focused pane, else the focused tab's first folder, else the first folder in the space, else the last folder seen, else the space's folder. When the folder (or machine) changes, it runs `gh repo view` there, resets all tabs and loads runs. If the `repo` prop is set, that repository is used instead. - The branch shown as "current" in Dispatch is the branch of that terminal. - While waiting: "Looking for a GitHub repository…". Polling and notifications: - A timer runs every 5 seconds. With the list open, it reloads the list quietly only when some run is not finished and the Runs tab is shown. - With a run open, it reloads that run and its jobs every tick for the first 12 ticks, then every second tick (10 s) up to tick 60, then every sixth tick (30 s). Finished runs are not polled; the display still repaints each tick so ages and running durations stay current. - When a run changes from not finished to finished, a notification fires: title `CI