swarm-ui: a review runs page lists the review classifier's recent runs
One card per run, newest first, from GET /api/review-classifier/runs: repo, PR, head commit, trigger, when, how long, how many classifications and the outcome as a badge. A card opens to the try-out's result table, the overall verdict, the reason and the posted review's link. TryOutResult takes the answer it shows rather than a whole try-out result, and its styles move to their own file.
This commit is contained in:
parent
2fc0166427
commit
5193a101a6
9 changed files with 355 additions and 16 deletions
|
|
@ -52,6 +52,7 @@ const NAV_ITEMS: { href: string; label: string; accent: string }[] = [
|
|||
{ href: "/jobs", label: "jobs", accent: "var(--pink)" },
|
||||
{ href: "/schedules", label: "schedules", accent: "var(--cyan)" },
|
||||
{ href: "/issues", label: "issues", accent: "var(--yellow)" },
|
||||
{ href: "/review-runs", label: "review runs", accent: "var(--amber)" },
|
||||
{ href: "/review-tryout", label: "review try-out", accent: "var(--red)" },
|
||||
{ href: "/components", label: "components", accent: "var(--blue)" },
|
||||
];
|
||||
|
|
@ -63,7 +64,12 @@ const NAV_ITEMS: { href: string; label: string; accent: string }[] = [
|
|||
// modifier alongside the base class, not a replacement, so every other
|
||||
// route's layout is untouched. `/agents` joined for the same reason —
|
||||
// its own table view (plus the list+detail split) hits the same cap.
|
||||
const WIDE_BODY_ROUTES = new Set(["/issues", "/agents", "/review-tryout"]);
|
||||
const WIDE_BODY_ROUTES = new Set([
|
||||
"/issues",
|
||||
"/agents",
|
||||
"/review-runs",
|
||||
"/review-tryout",
|
||||
]);
|
||||
|
||||
// `/agents/:name/terminal` (and a subagent's, under
|
||||
// `/agents/:name/subagents/:subagent/`) is full-bleed: the terminal fills
|
||||
|
|
|
|||
Loading…
Reference in a new issue