commit 84ec1ae887588480d95bbd782f8e37852ade4887
parent 4d3e305703aab6d4a1b2a57885c056bd60f95a52
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 14 Oct 2026 18:00:56 -0400
umtool: a watch is its own kind on Work
R6 listed a watch under Work's Series kind (it is stored like a series).
A watch has no editions and makes an article only when its triage
escalates, so Work's kind facet gains Watch and the row says "watch".
triage-first.spec checks the watch under kind=watch and not under series.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
3 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/umtool/app/work/page.tsx b/umtool/app/work/page.tsx
@@ -61,7 +61,7 @@ export default async function WorkPage({ searchParams }: { searchParams: Promise
const href = (next: Partial<Search>) => workHref({ ...sp, deleted: undefined, freed: undefined, ...next });
const sites = [...new Set(all.map((r) => r.site).filter((s): s is string => !!s))].sort();
- const kinds = [{ id: "article", label: "Article" }, { id: "series", label: "Series" }, ...KINDS.map((k) => ({ id: k.id, label: k.label }))].filter(
+ const kinds = [{ id: "article", label: "Article" }, { id: "series", label: "Series" }, { id: "watch", label: "Watch" }, ...KINDS.map((k) => ({ id: k.id, label: k.label }))].filter(
(k) => all.some((r) => r.kinds.includes(k.id)),
);
const bySite = sp.by === "site";
diff --git a/umtool/e2e/triage-first.spec.ts b/umtool/e2e/triage-first.spec.ts
@@ -226,6 +226,13 @@ test("marks: y and x on the lit flag, kept per watch; the precision and a sugges
await expect(page.locator("[data-series-triage] [data-precision]")).toContainText("precision 50% over 2 marked");
await shoot(page, "watch-page");
expect(series("r6-watch").triage).toBeUndefined();
+ // Work lists a watch as its own kind (P6b), not under Series.
+ await page.goto(urls.workHref({ kind: "watch" }));
+ const watchRow = page.locator("[data-lit-line][data-piece='s:r6-watch']");
+ await expect(watchRow).toBeVisible();
+ await expect(watchRow).toContainText("watch");
+ await page.goto(urls.workHref({ kind: "series" }));
+ await expect(page.locator("[data-lit-line][data-piece='s:r6-watch']")).toHaveCount(0);
// Every flag of the run marked: the card is settled.
await page.goto("/");
await expect(page.locator("[data-card='worth-researching'][data-piece='s:r6-watch']")).toHaveCount(0);
diff --git a/umtool/lib/work.ts b/umtool/lib/work.ts
@@ -88,10 +88,13 @@ export async function readWork(): Promise<{ rows: WorkRow[]; lifecycleError?: st
const linked = p.projects.map((x) => byId.get(x.id)).filter((x) => x !== undefined);
const mine = own ? [own] : linked;
const projectKinds = [...new Set(mine.map((x) => x.kind))];
- const kinds = p.kind === "article" ? ["article", ...projectKinds] : p.kind === "series" ? ["series"] : projectKinds;
+ // A watch (R6) is stored like a series but is its own kind: no editions,
+ // an article only when its triage escalates.
+ const recurringKind = p.schedule?.shape === "watch" ? "watch" : "series";
+ const kinds = p.kind === "article" ? ["article", ...projectKinds] : p.kind === "series" ? [recurringKind] : projectKinds;
const kindLabel =
p.kind === "series"
- ? "series"
+ ? recurringKind
: p.kind === "article"
? projectKinds.length
? `article + ${projectKinds.map((k) => label.get(k) ?? k).join(", ")}`