commit 03bf2bd087800b8e433a97533d48471e178f8190
parent 835394b3bba125819c1f10b66758b39c3902b9ed
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Thu, 5 Nov 2026 03:11:40 -0500
umtool: the head's primary row sits on the stepper's row (the title's row keeps its actions inline, as phone.spec checks), the newest take's length and day beside its Play, the status "<n> open notes · <the cut>"
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
3 files changed, 25 insertions(+), 13 deletions(-)
diff --git a/umtool/components/piece/PieceFrame.tsx b/umtool/components/piece/PieceFrame.tsx
@@ -75,7 +75,7 @@ export default function PieceFrame({
note?: React.ReactNode;
/** The ⋯ menu's items (Delete project …). */
more?: React.ReactNode;
- /** The head's primary action row (a report video's Play, Walk): before the lifecycle chip, on every tab. */
+ /** The head's primary action row (a report video's Play, Walk, + Add a clip): on the stepper's row, on every tab. */
primary?: React.ReactNode;
/** A living report's schedule (R5): the cadence chip, Pause/Resume, Tick now. */
schedule?: { id: string; shape: string; chip: string; paused: boolean; cadence: Cadence; running: boolean } | null;
@@ -102,11 +102,6 @@ export default function PieceFrame({
sheet={head}
actions={
<>
- {primary && (
- <span className="inline-flex flex-wrap items-center gap-1.5" data-piece-primary="">
- {primary}
- </span>
- )}
{piece && <LifecycleChip piece={frame.pieceId} title={piece.title} state={frame.lifecycle} />}
{more && (
<Menu
@@ -124,6 +119,12 @@ export default function PieceFrame({
below={
<div className="flex flex-wrap items-center gap-x-6 gap-y-2" data-piece-frame={frame.pieceId} data-piece-stage={frame.stage} data-piece-lifecycle={frame.lifecycle}>
<Stepper steps={frame.steps} className="max-md:hidden" />
+ {/* The head's primary row (lane/ui-simplify): beside the stepper, so the title's row keeps its actions inline. */}
+ {primary && (
+ <span className="inline-flex flex-wrap items-center gap-1.5 md:order-last md:ml-auto" data-piece-primary="">
+ {primary}
+ </span>
+ )}
<StagePips steps={frame.steps} lifecycle={frame.lifecycle} className="md:hidden" />
{frame.board && (
<span className="text-[12.5px] text-muted" data-piece-from-board={frame.board.id}>
diff --git a/umtool/components/projects/ProjectPrimary.tsx b/umtool/components/projects/ProjectPrimary.tsx
@@ -20,14 +20,20 @@ const day = (iso: string | null | undefined) => {
return Number.isNaN(d.getTime()) ? null : d.toLocaleDateString("en-GB", { day: "numeric", month: "short" });
};
-/** "latest mid-14 · 38:56 · rendered 4 Nov · 0 open notes · <the cut's own status>". */
+/** The head's status: "7 open notes · <the cut's own status>" (the newest take is named on the primary row). */
export function primaryStatus(working: Working, openNotes: number, cut: string): string {
+ void working;
+ return `${openNotes} open note${openNotes === 1 ? "" : "s"} · ${cut}`;
+}
+
+/** "29:50 · rendered 1 Nov": the newest take, beside its Play. */
+export function latestWords(working: Working): string | null {
const l = working?.latest;
- const head = l ? [`latest ${l.id}`, mmss(l.seconds), day(l.builtAt) ? `rendered ${day(l.builtAt)}` : null].filter(Boolean).join(" · ") : "no take yet";
- return `${head} · ${openNotes} open note${openNotes === 1 ? "" : "s"} · ${cut}`;
+ if (!l) return null;
+ return [mmss(l.seconds), day(l.builtAt) ? `rendered ${day(l.builtAt)}` : null].filter(Boolean).join(" · ") || null;
}
-export default function ProjectPrimary({ project, detail, latest }: { project: string; detail: ClipDetail; latest: string | null }) {
+export default function ProjectPrimary({ project, detail, latest, words = null }: { project: string; detail: ClipDetail; latest: string | null; words?: string | null }) {
const entries = detail.entries;
if (entries.length === 0) {
return (
@@ -40,6 +46,11 @@ export default function ProjectPrimary({ project, detail, latest }: { project: s
return (
<>
<PlayLink project={project} where="header" variant="header" label={latest ? `▶ Play ${latest}` : "▶ Play the cut"} />
+ {words && (
+ <span className="font-mono text-[11px] text-muted" data-primary-latest={latest ?? ""}>
+ {words}
+ </span>
+ )}
{/* A walk is of clips: a cut of posts alone has none to walk. */}
{latest && firstClip ? (
<Link href={takeWalkHref(project, latest)} prefetch={false} data-primary-walk={latest} className={buttonVariants({ variant: "quiet", size: "md" })} title={`walk take ${latest}: its clips, a verdict each`}>
diff --git a/umtool/components/projects/ReportProject.tsx b/umtool/components/projects/ReportProject.tsx
@@ -11,7 +11,7 @@ import { readClipDetail } from "@/lib/projects/report.mjs";
import path from "node:path";
import { readNotes } from "@/lib/annotations/store.mjs";
import { readWorkingCut } from "@/lib/report/workingCut.mjs";
-import ProjectPrimary, { primaryStatus } from "./ProjectPrimary";
+import ProjectPrimary, { latestWords, primaryStatus } from "./ProjectPrimary";
import { RememberCut } from "@/components/shell/RecentCuts";
// ---------------------------------------------------------------------------
@@ -60,7 +60,7 @@ export default async function ReportProject({
const tab = tabOf(search, { noteTab: !search.tab ? await projectNoteTab(project.dir, search.note) : null });
const frame = await readPieceFrame(project);
// The head's one primary row (lane/ui-simplify): Play the newest take, on every tab, and the status line
- // "latest mid-14 · 38:56 · rendered 4 Nov · 0 open notes".
+ // "▶ Play mid-14 38:56 · rendered 4 Nov" on the primary row, "0 open notes · …" in the status.
const [working, notes] = await Promise.all([
readWorkingCut(project.dir).catch(() => null),
readNotes(path.join(project.dir, "notes.json")).catch(() => ({ doc: null })),
@@ -76,7 +76,7 @@ export default async function ReportProject({
tabs={PIECE_TABS.map((t) => ({ ...t, href: projectHref(project.id, { tab: t.id }) }))}
counts={await reportCounts(detail, project.dir)}
note={primaryStatus(working, openNotes, reportStatus(detail))}
- primary={<ProjectPrimary project={project.id} detail={detail} latest={working?.latest?.id ?? null} />}
+ primary={<ProjectPrimary project={project.id} detail={detail} latest={working?.latest?.id ?? null} words={latestWords(working)} />}
more={
<>
<span className="px-2 pb-1 pt-0.5 font-mono text-[11px] text-muted">{project.id}</span>