Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 44c127d0d85fd93def64549a4234cc0c13936fd5
parent 3fe5ddd7feedefddf3bfb37cc9b2886f768d938c
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 14 Oct 2026 15:25:49 -0400

umtool: P6a deletes — BrowseHeader, the dead list pages, /drafts' page, the JobProgress re-export, the unused Verdict primitive

- BrowseHeader's 11 call sites render AppShell directly (same crumbs, note,
  header); a tool page passes its own key, so /tools/faces and a trim set
  light Tools (they lit Work).
- app/articles/page.tsx and app/sites/page.tsx were unreachable behind P3's
  /articles and /sites rows; app/drafts/page.tsx becomes a P6 row,
  /drafts → /create?make=article (where it landed).
- components/shell/JobProgress.tsx re-exported two parts of
  components/ui/job-progress.tsx for RunningList alone; it imports them.
- components/ui/verdict.tsx and its .verdict CSS: imported by nothing since P1.
- shell.spec: every tool page lights Tools; redirects.spec: the P6 row.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Dumtool/app/articles/page.tsx | 119-------------------------------------------------------------------------------
Dumtool/app/drafts/page.tsx | 12------------
Mumtool/app/globals.css | 31-------------------------------
Mumtool/app/projects/[...path]/page.tsx | 6+++---
Mumtool/app/projects/page.tsx | 4++--
Mumtool/app/sites/[site]/page.tsx | 4++--
Dumtool/app/sites/page.tsx | 90-------------------------------------------------------------------------------
Mumtool/app/tools/bench/page.tsx | 4++--
Mumtool/app/tools/faces/page.tsx | 4++--
Mumtool/app/tools/find/page.tsx | 4++--
Mumtool/app/tools/sources/page.tsx | 4++--
Mumtool/app/tools/trim/[set]/page.tsx | 4++--
Dumtool/components/BrowseHeader.tsx | 27---------------------------
Mumtool/components/articles/EvidencePage.tsx | 4++--
Mumtool/components/projects/ReportProject.tsx | 4++--
Mumtool/components/projects/SweepProject.tsx | 4++--
Dumtool/components/shell/JobProgress.tsx | 4----
Mumtool/components/shell/RunningList.tsx | 2+-
Mumtool/components/ui/job-progress.tsx | 3+--
Dumtool/components/ui/verdict.tsx | 22----------------------
Mumtool/e2e/redirects.spec.ts | 4+++-
Mumtool/e2e/shell.spec.ts | 5+++++
Mumtool/lib/activity.ts | 2+-
Mumtool/redirects.mjs | 6+++---
24 files changed, 37 insertions(+), 336 deletions(-)

diff --git a/umtool/app/articles/page.tsx b/umtool/app/articles/page.tsx @@ -1,119 +0,0 @@ -import Link from "next/link"; -import BrowseHeader from "@/components/BrowseHeader"; -import ArticleTable from "@/components/articles/ArticleTable"; -import { badgeVariants } from "@/components/ui/badge"; -import { readStoreRow, type ArticleRow } from "@/lib/articles/sites"; -import { readPendingArticles } from "@/lib/articles/generation"; - -export const dynamic = "force-dynamic"; - -// The homepage's articles (transcripts/reports/, release 26): published in -// reports/index.json's order, then drafts, each with its audience, notes, -// video project and source. Zero client JS: the filters are links. A site's -// own pages are on /sites. Above them, the articles in the making (release -// 27: iterations, no report.json yet), each with its newest iteration. - -type Search = { status?: string; notes?: string; audience?: string; deleted?: string; freed?: string }; - -export default async function ArticlesPage({ searchParams }: { searchParams: Promise<Search> }) { - const sp = await searchParams; - const [store, pending] = await Promise.all([readStoreRow(), readPendingArticles()]); - const keep = (a: ArticleRow) => - (!sp.status || a.status === sp.status) && - (!sp.audience || a.audience === sp.audience) && - (sp.notes !== "open" || a.openNotes > 0); - const shown = store.articles.filter(keep); - const qs = (next: Partial<Search>) => { - const p = new URLSearchParams(); - for (const [k, v] of Object.entries({ ...sp, ...next })) if (v && k !== "deleted" && k !== "freed") p.set(k, String(v)); - const s = p.toString(); - return `/articles${s ? `?${s}` : ""}`; - }; - const count = (f: (a: ArticleRow) => boolean) => store.articles.filter(f).length; - - return ( - <div className="flex h-full flex-col"> - <BrowseHeader - active="articles" - crumbs={[{ label: "articles" }]} - note={`${store.published} published (${store.publicCount} public) · ${store.drafts} drafts · ${store.openNotes} open notes`} - /> - <main className="deck-main flex-1 p-4"> - {sp.deleted && ( - <p role="status" data-deleted={sp.deleted} className="mb-2 text-[12px] text-[var(--color-dim)]"> - Deleted {sp.deleted} - {Number(sp.freed) > 0 ? ` (${(Number(sp.freed) / 1024 / 1024).toFixed(1)} MiB)` : ""}. - </p> - )} - <div className="mb-3 flex flex-wrap items-center gap-1.5"> - <span className="micro">status</span> - <Chip href={qs({ status: "" })} on={!sp.status} label="all" /> - <Chip href={qs({ status: "published" })} on={sp.status === "published"} label={`published ${store.published}`} /> - <Chip href={qs({ status: "draft" })} on={sp.status === "draft"} label={`draft ${store.drafts}`} /> - <span className="micro ml-3">audience</span> - <Chip href={qs({ audience: "" })} on={!sp.audience} label="all" /> - <Chip href={qs({ audience: "public" })} on={sp.audience === "public"} label={`public ${count((a) => a.audience === "public")}`} /> - <Chip href={qs({ audience: "private" })} on={sp.audience === "private"} label={`private ${count((a) => a.audience === "private")}`} /> - <span className="micro ml-3">notes</span> - <Chip href={qs({ notes: "" })} on={sp.notes !== "open"} label="all" /> - <Chip href={qs({ notes: "open" })} on={sp.notes === "open"} label={`open ${count((a) => a.openNotes > 0)}`} /> - <Link href="/articles/new" className="ml-auto text-[12px] text-[var(--color-dim)] hover:text-[var(--color-text)]"> - new article - </Link> - <Link href="/sites" className="ml-2 text-[12px] text-[var(--color-dim)] hover:text-[var(--color-text)]"> - site pages - </Link> - <Link href="/bench" className="ml-2 text-[12px] text-[var(--color-dim)] hover:text-[var(--color-text)]"> - verdict bench - </Link> - </div> - {pending.length > 0 && ( - <section aria-label="in the making" className="mb-4"> - <div className="micro mb-1">in the making</div> - <ul className="flex flex-col gap-1 text-[12px]"> - {pending.map((p) => ( - <li key={p.id} data-pending-article={p.id} data-status={p.newest?.status ?? "none"} className="flex flex-wrap items-baseline gap-2"> - <Link href={`/articles/${p.id}?tab=iterations`} className="font-mono text-[var(--color-text)] hover:underline"> - {p.id} - </Link> - {p.newest && ( - <> - <span className={badgeVariants({ variant: p.newest.status === "failed" ? "blocking" : p.newest.status === "done" ? "on" : "open", size: "sm" })}> - {p.newest.label} {p.newest.status === "queued" || p.newest.status === "running" ? "generating" : p.newest.status} - </span> - <span className="font-mono text-[var(--color-dim)]">{p.newest.model}</span> - {p.newest.question && <span className="text-[var(--color-dim)]">{p.newest.question}</span>} - </> - )} - <span className="text-[var(--color-dim)]"> - {p.count} iteration{p.count === 1 ? "" : "s"} - </span> - </li> - ))} - </ul> - </section> - )} - {store.indexError && ( - <p role="alert" className="mb-3 text-[12px] text-[var(--color-bad)]"> - {store.indexError} - </p> - )} - {store.articles.length === 0 ? ( - <p className="text-[12px] text-[var(--color-dim)]">no articles</p> - ) : shown.length === 0 ? ( - <p className="text-[12px] text-[var(--color-dim)]">nothing matches that filter</p> - ) : ( - <ArticleTable articles={shown} /> - )} - </main> - </div> - ); -} - -function Chip({ href, on, label }: { href: string; on: boolean; label: string }) { - return ( - <Link href={href} aria-current={on ? "true" : undefined} className={badgeVariants({ variant: on ? "on" : "neutral" })}> - {label} - </Link> - ); -} diff --git a/umtool/app/drafts/page.tsx b/umtool/app/drafts/page.tsx @@ -1,12 +0,0 @@ -import { redirect } from "next/navigation"; -import { newArticleHref } from "@/lib/hrefs"; - -export const dynamic = "force-dynamic"; - -// The proof of concept's page (2026-10-12) is the application's now: a new -// article on Create (/create?make=article, P5; it was /articles/new), its -// iterations on the article's Iterations tab (release 27 S8). P6 deletes this -// page and redirects /drafts to the Inbox. -export default function DraftsPage() { - redirect(newArticleHref()); -} diff --git a/umtool/app/globals.css b/umtool/app/globals.css @@ -746,37 +746,6 @@ canvas.grabbable { background: none; } - /* ── a verdict: glyph + word, never colour alone (canvas .v) ── */ - .verdict { - font: 600 11.5px var(--f-ui); - white-space: nowrap; - } - .verdict::before { - font-family: var(--f-mono); - margin-right: 4px; - } - .verdict[data-verdict="kept"] { - color: var(--kept-text); - } - .verdict[data-verdict="kept"]::before { - content: "✓"; - color: var(--kept); - } - .verdict[data-verdict="doubt"] { - color: var(--doubt-text); - } - .verdict[data-verdict="doubt"]::before { - content: "?"; - color: var(--doubt); - } - .verdict[data-verdict="reject"] { - color: var(--reject-text); - } - .verdict[data-verdict="reject"]::before { - content: "✕"; - color: var(--reject); - } - /* ── the stage stepper (canvas .stepper) ── */ .stepper-dot { width: 9px; diff --git a/umtool/app/projects/[...path]/page.tsx b/umtool/app/projects/[...path]/page.tsx @@ -1,6 +1,6 @@ import Link from "next/link"; import { notFound, redirect } from "next/navigation"; -import BrowseHeader from "@/components/BrowseHeader"; +import AppShell from "@/components/shell/AppShell"; import ProjectView from "@/components/projects/ProjectView"; import ProjectGrid from "@/components/projects/ProjectGrid"; import { listProjects, resolveProjectPath } from "@/lib/projects"; @@ -51,7 +51,7 @@ export default async function BrowsePathPage({ if ("ambiguous" in resolved && resolved.ambiguous) { return ( <div className="flex h-full flex-col"> - <BrowseHeader + <AppShell active="projects" crumbs={[{ href: "/projects", label: "projects" }, { label: segments.join("/") }]} note={`${resolved.ambiguous.length} projects answer to that name`} /> @@ -84,7 +84,7 @@ export default async function BrowsePathPage({ const mine = all.filter((p) => p.id.startsWith(`${folder.path}/`)); return ( <div className="flex h-full flex-col"> - <BrowseHeader + <AppShell active="projects" crumbs={[{ href: "/projects", label: "projects" }, { label: folder.label }]} note={`${mine.length} project${mine.length === 1 ? "" : "s"}`} /> diff --git a/umtool/app/projects/page.tsx b/umtool/app/projects/page.tsx @@ -5,7 +5,7 @@ import { EmptyState } from "@/components/ui/empty-state"; import { Input } from "@/components/ui/field"; import { Toolbar, ToolbarGroup } from "@/components/ui/toolbar"; import { homeHref, projectsHref, workHref } from "@/lib/hrefs"; -import BrowseHeader from "@/components/BrowseHeader"; +import AppShell from "@/components/shell/AppShell"; import NewProjectMenu from "@/components/NewProjectMenu"; import CopyButton from "@/components/CopyButton"; import ProjectGrid from "@/components/projects/ProjectGrid"; @@ -98,7 +98,7 @@ export default async function BrowsePage({ return ( <div className="flex h-full flex-col"> - <BrowseHeader + <AppShell active="projects" crumbs={[{ label: "projects" }]} note={projectsNote(all.length, blocking, openN)} /> diff --git a/umtool/app/sites/[site]/page.tsx b/umtool/app/sites/[site]/page.tsx @@ -1,6 +1,6 @@ import Link from "next/link"; import { notFound } from "next/navigation"; -import BrowseHeader from "@/components/BrowseHeader"; +import AppShell from "@/components/shell/AppShell"; import ArticleTable, { articleHref } from "@/components/articles/ArticleTable"; import SiteChips from "@/components/articles/SiteChips"; import WorkspacePanel from "@/components/articles/WorkspacePanel"; @@ -46,7 +46,7 @@ export default async function SitePage({ return ( <div className="flex h-full flex-col"> - <BrowseHeader + <AppShell active="articles" crumbs={[{ href: "/work?by=site", label: "articles" }, { label: row.title }]} note={`${row.published} published · ${row.drafts} drafts · ${row.openNotes} open notes`} diff --git a/umtool/app/sites/page.tsx b/umtool/app/sites/page.tsx @@ -1,90 +0,0 @@ -import Link from "next/link"; -import BrowseHeader from "@/components/BrowseHeader"; -import ArticleTable from "@/components/articles/ArticleTable"; -import SiteChips from "@/components/articles/SiteChips"; -import { badgeVariants } from "@/components/ui/badge"; -import { EmptyState } from "@/components/ui/empty-state"; -import { Toolbar, ToolbarGroup } from "@/components/ui/toolbar"; -import { sitesHref } from "@/lib/hrefs"; -import { listSiteRows, type ArticleRow } from "@/lib/articles/sites"; - -export const dynamic = "force-dynamic"; - -// Every site's articles, private sites first. Zero client JS: the filters are -// links that change searchParams (/browse/decisions' idiom), so a filtered -// view is one pasteable URL. - -type Search = { site?: string; status?: string; notes?: string }; - -export default async function SitesPage({ searchParams }: { searchParams: Promise<Search> }) { - const sp = await searchParams; - const all = await listSiteRows(); - - const keep = (a: ArticleRow) => - (!sp.status || a.status === sp.status) && (sp.notes !== "open" || a.openNotes > 0); - const sites = all - .filter((s) => !sp.site || s.siteId === sp.site) - .map((s) => ({ ...s, shown: s.articles.filter(keep) })) - .filter((s) => s.shown.length > 0 || (!sp.status && !sp.notes)); - - const articles = all.flatMap((s) => s.articles); - const open = articles.reduce((n, a) => n + a.openNotes, 0); - const qs = (next: Partial<Search>) => { - return sitesHref({ ...sp, ...next }); - }; - - return ( - <div className="flex h-full flex-col"> - <BrowseHeader active="articles" crumbs={[{ label: "articles" }]} note={`${all.length} sites · ${articles.length} articles · ${open} open notes`} /> - <main className="deck-main flex-1 p-4"> - <Toolbar aria-label="Filters" className="-mx-4 -mt-4 mb-4"> - <ToolbarGroup label="Site"> - <Chip href={qs({ site: "" })} on={!sp.site} label={`all ${all.length}`} /> - {all.map((s) => ( - <Chip key={s.siteId} href={qs({ site: s.siteId })} on={sp.site === s.siteId} label={s.siteId} /> - ))} - </ToolbarGroup> - <ToolbarGroup label="Status"> - <Chip href={qs({ status: "" })} on={!sp.status} label="all" /> - <Chip href={qs({ status: "published" })} on={sp.status === "published"} label={`published ${articles.filter((a) => a.status === "published").length}`} /> - <Chip href={qs({ status: "draft" })} on={sp.status === "draft"} label={`draft ${articles.filter((a) => a.status === "draft").length}`} /> - </ToolbarGroup> - <ToolbarGroup label="Notes"> - <Chip href={qs({ notes: "" })} on={sp.notes !== "open"} label="all" /> - <Chip href={qs({ notes: "open" })} on={sp.notes === "open"} label={`open ${articles.filter((a) => a.openNotes > 0).length}`} /> - </ToolbarGroup> - </Toolbar> - - {sites.length === 0 ? ( - <EmptyState title={all.length === 0 ? "No sites" : "Nothing matches that filter"} /> - ) : ( - <div className="space-y-6"> - {sites.map((s) => ( - <section key={s.siteId} data-site={s.siteId}> - <h2 className="mb-1.5 flex flex-wrap items-baseline gap-2"> - <Link href={`/sites/${s.siteId}`} className="text-[14px] font-semibold text-text hover:underline"> - {s.title} - </Link> - <span className="font-mono text-[11px] text-[var(--color-dim)]">{s.siteId}</span> - <SiteChips site={s} /> - <span className="micro" data-counts={`${s.published}/${s.drafts}`}> - {s.published} published · {s.drafts} draft{s.drafts === 1 ? "" : "s"} - </span> - </h2> - <ArticleTable articles={s.shown} /> - </section> - ))} - </div> - )} - </main> - </div> - ); -} - -function Chip({ href, on, label }: { href: string; on: boolean; label: string }) { - return ( - <Link href={href} aria-current={on ? "true" : undefined} className={badgeVariants({ variant: on ? "on" : "neutral" })}> - {label} - </Link> - ); -} diff --git a/umtool/app/tools/bench/page.tsx b/umtool/app/tools/bench/page.tsx @@ -1,5 +1,5 @@ import Link from "next/link"; -import BrowseHeader from "@/components/BrowseHeader"; +import AppShell from "@/components/shell/AppShell"; import BarForm from "@/components/bench/BarForm"; import { badgeVariants } from "@/components/ui/badge"; import { @@ -50,7 +50,7 @@ export default async function BenchPage({ searchParams }: { searchParams: Promis return ( <div className="flex h-full flex-col"> - <BrowseHeader + <AppShell active="bench" crumbs={[{ label: "tools", href: "/tools" }, { label: "verdict bench" }]} note={`${runs.length} run${runs.length === 1 ? "" : "s"}`} diff --git a/umtool/app/tools/faces/page.tsx b/umtool/app/tools/faces/page.tsx @@ -1,4 +1,4 @@ -import BrowseHeader from "@/components/BrowseHeader"; +import AppShell from "@/components/shell/AppShell"; import FaceDeck from "@/components/FaceDeck"; import { faceQueue, readFaceVerdicts, rejectedVideos } from "@/lib/faces"; @@ -49,7 +49,7 @@ export default async function FacesPage({ searchParams }: { searchParams: Promis return ( <div className="flex h-full flex-col"> - <BrowseHeader + <AppShell active="faces" crumbs={[{ href: "/tools", label: "tools" }, { label: "faces" }]} note={`${queue.length} corners · ${onAccepted} on accepted covers · ${Object.keys(verdicts.faces).length} judged`} /> diff --git a/umtool/app/tools/find/page.tsx b/umtool/app/tools/find/page.tsx @@ -1,5 +1,5 @@ import Link from "next/link"; -import BrowseHeader from "@/components/BrowseHeader"; +import AppShell from "@/components/shell/AppShell"; import PhraseConsole from "@/components/PhraseConsole"; import ShortlistBar from "@/components/ShortlistBar"; import { @@ -95,7 +95,7 @@ export default async function FindPage({ searchParams }: { searchParams: Promise return ( <div className="flex h-full flex-col"> - <BrowseHeader + <AppShell active="find" crumbs={[{ href: "/tools", label: "tools" }, { label: "find" }]} note={`${episodes.length} episodes${result ? ` · ${result.corpus.words.toLocaleString()} words · ${result.ms}ms` : ""}`} diff --git a/umtool/app/tools/sources/page.tsx b/umtool/app/tools/sources/page.tsx @@ -1,5 +1,5 @@ import Link from "next/link"; -import BrowseHeader from "@/components/BrowseHeader"; +import AppShell from "@/components/shell/AppShell"; import { corpusConcentration } from "@/lib/concentration"; export const dynamic = "force-dynamic"; @@ -20,7 +20,7 @@ export default async function SourcesPage() { return ( <div className="flex h-full flex-col"> - <BrowseHeader + <AppShell active="sources" crumbs={[{ href: "/tools", label: "tools" }, { label: "sources" }]} note={`${c.videos.length} episodes · ${c.builds} plans`} diff --git a/umtool/app/tools/trim/[set]/page.tsx b/umtool/app/tools/trim/[set]/page.tsx @@ -1,5 +1,5 @@ import { notFound } from "next/navigation"; -import BrowseHeader from "@/components/BrowseHeader"; +import AppShell from "@/components/shell/AppShell"; import TrimBench from "@/components/TrimBench"; import BuildChain from "@/components/BuildChain"; import { TRIM_SETS, readCatalogue, readTrims } from "@/lib/trim"; @@ -27,7 +27,7 @@ export default async function TrimPage({ params }: { params: Promise<{ set: stri return ( <div className="flex h-full flex-col"> - <BrowseHeader + <AppShell active="trim" crumbs={[{ href: "/tools", label: "tools" }, { label: `trim: ${set.id}` }]} note={`${catalogue.hooks.length} hooks · ${trims.length} trimmed`} /> diff --git a/umtool/components/BrowseHeader.tsx b/umtool/components/BrowseHeader.tsx @@ -1,27 +0,0 @@ -import AppShell from "@/components/shell/AppShell"; -import type { Crumb } from "@/components/shell/AppHeader"; - -export type { Crumb }; - -/** - * The header the browse levels share -- now a thin wrapper over the shell - * (components/shell/AppShell.tsx): the rail, and the page head with these - * crumbs and this note. - * - * Kept, with the SAME props, until P6 deletes it: it has 22 call sites, - * release 28's ReportProject, NarrationPage and app/bench/page.tsx among them, - * and every one of them gets the rail by changing nothing. New pages use - * AppShell directly. - */ -export default function BrowseHeader({ - crumbs, - note, - active = "browse", -}: { - crumbs: Crumb[]; - note?: string; - /** Which nav item is lit. Defaults to browse, which is the common case. */ - active?: string; -}) { - return <AppShell active={active} crumbs={crumbs} note={note} />; -} diff --git a/umtool/components/articles/EvidencePage.tsx b/umtool/components/articles/EvidencePage.tsx @@ -1,6 +1,6 @@ import { notFound } from "next/navigation"; import { reportCitationNumbers } from "yt-dlp-transcript-common/lib/report/uses"; -import BrowseHeader, { type Crumb } from "@/components/BrowseHeader"; +import AppShell, { type Crumb } from "@/components/shell/AppShell"; import EvidenceWalk, { type WalkItem } from "@/components/articles/EvidenceWalk"; import { articleHref } from "@/lib/articles/href"; import { readArticleNotes, readReportFile } from "@/lib/articles/sites"; @@ -43,7 +43,7 @@ export default async function EvidencePage({ }; return ( <div className="flex h-full flex-col"> - <BrowseHeader + <AppShell active="articles" crumbs={[...crumbs, { href: articleHref({ site, id: reportId }), label: reportId }, { label: "evidence" }]} note={`${items.length} citations`} diff --git a/umtool/components/projects/ReportProject.tsx b/umtool/components/projects/ReportProject.tsx @@ -1,4 +1,4 @@ -import BrowseHeader from "@/components/BrowseHeader"; +import AppShell from "@/components/shell/AppShell"; import PieceFrame from "@/components/piece/PieceFrame"; import { readPieceFrame } from "@/lib/pieces/frame"; import { projectHref, projectsHref } from "@/lib/hrefs"; @@ -38,7 +38,7 @@ export default async function ReportProject({ if (!detail) { return ( <div className="flex h-full flex-col"> - <BrowseHeader crumbs={[{ href: "/projects", label: "projects" }, { label: project.id }]} /> + <AppShell active="projects" crumbs={[{ href: "/projects", label: "projects" }, { label: project.id }]} /> <main className="deck-main flex-1 p-4"> <p className="text-[12px] text-[var(--color-bad)]"> <code className="font-mono">video.manifest.json</code> could not be parsed. diff --git a/umtool/components/projects/SweepProject.tsx b/umtool/components/projects/SweepProject.tsx @@ -1,7 +1,7 @@ import Link from "next/link"; import { readdir, readFile, stat } from "node:fs/promises"; import path from "node:path"; -import BrowseHeader from "@/components/BrowseHeader"; +import AppShell from "@/components/shell/AppShell"; import { Markdown } from "@/lib/markdown"; import { fmtAgo } from "@/lib/format"; import type { ProjectRef } from "@/lib/project-types"; @@ -24,7 +24,7 @@ export default async function SweepProject({ project }: { project: ProjectRef }) return ( <div className="flex h-full flex-col"> - <BrowseHeader + <AppShell active="projects" crumbs={[{ href: "/projects", label: "projects" }, { label: project.id }]} note={`${citations} citation${citations === 1 ? "" : "s"} · no manifest`} /> diff --git a/umtool/components/shell/JobProgress.tsx b/umtool/components/shell/JobProgress.tsx @@ -1,4 +0,0 @@ -// The Running row's progress: the two smallest parts of the ONE job progress -// (components/ui/job-progress.tsx, P4b), which the Media tab's drafts, Draft -// everything, the Build tab and the Iterations tab's jobs use whole. -export { JobProgressBar, JobProgressText } from "@/components/ui/job-progress"; diff --git a/umtool/components/shell/RunningList.tsx b/umtool/components/shell/RunningList.tsx @@ -3,7 +3,7 @@ import Link from "next/link"; import { useEffect, useRef, useState } from "react"; import type { ActivityItem, RunningView } from "@/lib/activity-types"; -import { JobProgressBar, JobProgressText } from "./JobProgress"; +import { JobProgressBar, JobProgressText } from "@/components/ui/job-progress"; // --------------------------------------------------------------------------- // The rail's foot (canvas `.running`): what is running, umtool's own and the diff --git a/umtool/components/ui/job-progress.tsx b/umtool/components/ui/job-progress.tsx @@ -21,8 +21,7 @@ import { Button } from "./button"; // // -- so a Running row in the rail, a draft row on the Media tab and the build // on the Build tab read the same way. The Running row uses the two smallest -// parts (JobProgressText, JobProgressBar); `components/shell/JobProgress.tsx` -// re-exports them. Colour: Meter for measurement (the bar, the spend), the +// parts (JobProgressText, JobProgressBar). Colour: Meter for measurement (the bar, the spend), the // verdict text steps only for an ended job's outcome; never Signal. // --------------------------------------------------------------------------- diff --git a/umtool/components/ui/verdict.tsx b/umtool/components/ui/verdict.tsx @@ -1,22 +0,0 @@ -import { cn } from "@/lib/utils"; - -// A judgement: glyph AND word, never colour alone (canvas `.v`). The glyph -// carries the verdict colour; the word takes its text step, which in light is -// darker than the glyph (app/globals.css, "COLOUR MEANS SOMETHING"). -// -// Desk only. A verdict never sits on the reader: the record carries no -// judgement, and on the pale surface the hues collapse for colour-blind eyes. -export type VerdictKind = "kept" | "doubt" | "reject"; - -export function Verdict({ - kind, - className, - children, - ...props -}: React.ComponentProps<"span"> & { kind: VerdictKind }) { - return ( - <span data-verdict={kind} className={cn("verdict", className)} {...props}> - {children} - </span> - ); -} diff --git a/umtool/e2e/redirects.spec.ts b/umtool/e2e/redirects.spec.ts @@ -37,7 +37,7 @@ function parts(href: string): [string, [string, string][]] { return [u.pathname, [...u.searchParams.entries()]]; } -test("the table has the P3 and P5 rows, reserved /browse tools before the catch-all", () => { +test("the table has the P3, P5 and P6 rows, reserved /browse tools before the catch-all", () => { const sources = REDIRECTS.map((r) => r.source); const catchAll = sources.indexOf("/browse/:path*"); expect(catchAll).toBeGreaterThan(0); @@ -49,6 +49,8 @@ test("the table has the P3 and P5 rows, reserved /browse tools before the catch- // P5: the editor's hand-off, only when the query has `from`; the new-article form. expect(REDIRECTS.find((r) => r.source === "/")).toMatchObject({ destination: "/create", has: [{ type: "query", key: "from" }] }); expect(REDIRECTS.find((r) => r.source === "/articles/new")?.destination).toBe("/create?make=article"); + // P6: the deleted /drafts page lands where it did. + expect(REDIRECTS.find((r) => r.source === "/drafts")?.destination).toBe("/create?make=article"); }); for (const row of REDIRECTS) { diff --git a/umtool/e2e/shell.spec.ts b/umtool/e2e/shell.spec.ts @@ -26,6 +26,11 @@ const PLACES: { url: string; lit: string; current: "page" | "true" }[] = [ { url: urls.toolsHref(), lit: "tools", current: "page" }, { url: urls.mixHref(), lit: "tools", current: "true" }, { url: urls.findHref(), lit: "tools", current: "true" }, + // Every tool page lights Tools (P6: faces and a trim set lit Work before). + { url: urls.facesHref(), lit: "tools", current: "true" }, + { url: urls.trimHref("mk-hooks"), lit: "tools", current: "true" }, + { url: urls.sourcesHref(), lit: "tools", current: "true" }, + { url: urls.benchHref(), lit: "tools", current: "true" }, { url: urls.systemHref(), lit: "settings", current: "page" }, { url: urls.generationPolicyHref(), lit: "settings", current: "page" }, ]; diff --git a/umtool/lib/activity.ts b/umtool/lib/activity.ts @@ -60,7 +60,7 @@ export type ActivityProgress = { entries?: Record<string, "fetching" | "cutting" | "done" | "failed">; }; -/** One progress presentation for every row (components/shell/JobProgress.tsx). */ +/** One progress presentation for every row (components/ui/job-progress.tsx). */ export type ActivityMeter = { /** 0..1, or null when the job reports none (no bar is drawn). */ fraction: number | null; diff --git a/umtool/redirects.mjs b/umtool/redirects.mjs @@ -39,11 +39,9 @@ * }} RedirectRow */ -// Not here yet, by phase: `/drafts` → `/` (P6 deletes the page; until then -// it redirects to Create's new article by itself). - const p3 = (source, destination) => ({ source, destination, permanent: false, phase: "P3" }); const p5 = (source, destination, extra = {}) => ({ source, destination, permanent: false, ...extra, phase: "P5" }); +const p6 = (source, destination) => ({ source, destination, permanent: false, phase: "P6" }); /** @type {RedirectRow[]} */ export const REDIRECTS = [ @@ -54,6 +52,8 @@ export const REDIRECTS = [ p5("/", "/create", { has: [{ type: "query", key: "from" }] }), // The new-article form is Create's "Article from a question". p5("/articles/new", "/create?make=article"), + // The proof of concept's new-article page (release 27), deleted in P6. + p6("/drafts", "/create?make=article"), // The project list became Work; the decision list became the Inbox. p3("/browse", "/work"), p3("/browse/decisions", "/"),