commit 1eb624161220f289e303bc4fcc2d94349020fca5
parent 8b942fbac24a262feb69ab2ff297696cecd48564
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 14 Oct 2026 09:46:10 -0400
umtool: a sweep's iteration row links its run page (R3) — the row's quiet Run
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/umtool/components/articles/IterationsTab.tsx b/umtool/components/articles/IterationsTab.tsx
@@ -2,7 +2,8 @@
import Link from "next/link";
import { useCallback, useEffect, useState } from "react";
-import { Button } from "@/components/ui/button";
+import { Button, buttonVariants } from "@/components/ui/button";
+import { hasRunPage, runHref } from "@/lib/research/runs-hrefs";
import { badgeVariants } from "@/components/ui/badge";
import ChainPanel from "@/components/articles/ChainPanel";
import ResearchSlot from "@/components/articles/ResearchSlot";
@@ -434,6 +435,18 @@ function IterationCard({
onDone={() => ctx.deleted(it.n)}
/>
)}
+ {/* The run page (R3): a sweep's trace, step by step -- the row's quiet secondary action. */}
+ {hasRunPage(it.kind) && (
+ <Link
+ href={runHref(ctx.article, it.n)}
+ prefetch={false}
+ data-run-link={it.n}
+ aria-label={`Run of ${it.label}`}
+ className={buttonVariants({ variant: "quiet", size: "sm" })}
+ >
+ Run
+ </Link>
+ )}
<label className="ml-auto flex items-center gap-1 text-[12px] text-[var(--color-dim)]">
<input type="checkbox" checked={comparing} onChange={(e) => onCompare(e.target.checked)} aria-label={`compare ${it.label}`} />
compare
diff --git a/umtool/e2e/article-iterations.spec.ts b/umtool/e2e/article-iterations.spec.ts
@@ -4,6 +4,7 @@ import path from "node:path";
import { fileURLToPath } from "node:url";
import { WARM_TIMEOUT, warm } from "./warm";
import * as urls from "./urls";
+import { runHref } from "../lib/research/runs-hrefs";
// ---------------------------------------------------------------------------
// An article's Iterations tab (release 27 S8), over the editor stub: its
@@ -60,6 +61,11 @@ test("an article in the making: listed as such on Work, opened as its piece, its
await expect(card(page, 4)).toHaveAttribute("data-status", "failed");
await expect(card(page, 4).locator("[data-copy-of]")).toHaveAttribute("data-copy-of", "1");
await expect(card(page, 4)).toContainText("the model stopped at its cap");
+ // A sweep's row links its run page (R3), the row's quiet secondary action; a revision has none.
+ await expect(card(page, 1).locator("[data-run-link]")).toHaveAttribute("href", runHref("zeta", 1));
+ await expect(card(page, 4).locator("[data-run-link]")).toHaveAttribute("href", runHref("zeta", 4));
+ await expect(card(page, 2).locator("[data-run-link]")).toHaveCount(0);
+ await expect(card(page, 3).locator("[data-run-link]")).toHaveCount(0);
// Today's spend, from the fixture's usage ledger, against the daily cap.
await expect(list.locator("[data-today-usd]")).toHaveAttribute("data-today-usd", "0.42");
await expect(list.locator("[data-today-usd]")).toContainText("of $20.00");