commit 8da9015910851d46c246dc93c838d23fcaeb8497
parent 8250c6956c1bf34742bd27fae0667c42c41ea2a1
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 10 Nov 2026 12:58:36 -0500
umtool: the piece page's way to the workspace is in its More menu, not the sticky head's row
A wider primary row made the sticky head cover the Cut tab's drop target in cut-groups.spec (a clip dragged out of its
run: no write); verified by running it without the button.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
3 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/umtool/components/projects/ProjectPrimary.tsx b/umtool/components/projects/ProjectPrimary.tsx
@@ -1,6 +1,6 @@
import Link from "next/link";
import { buttonVariants } from "@/components/ui/button";
-import { clipBenchHref, projectHref, presentHref, workspaceHref } from "@/lib/hrefs";
+import { clipBenchHref, projectHref, presentHref } from "@/lib/hrefs";
import PlayLink from "./PlayLink";
import SaveVersionButton from "./SaveVersionButton";
import type { ClipDetail } from "./report/shared";
@@ -45,10 +45,6 @@ export default function ProjectPrimary({ project, detail, latest, words = null }
const firstClip = entries.find((e) => e.kind === "clip")?.id ?? null;
return (
<>
- {/* The workspace (L7a): the project's own address, one screen -- the draft playing, its blocks, the inspector. */}
- <Link href={workspaceHref(project)} prefetch={false} data-primary-workspace="" className={buttonVariants({ variant: "outline", size: "md" })} title="the workspace: the draft playing, its blocks, an inspector for the one you pick">
- Workspace
- </Link>
<PlayLink project={project} where="header" variant="header" label="▶ Play the draft" title="the working draft: every edit lands here" />
<Link href={presentHref(project)} prefetch={false} data-present-link="header" className={buttonVariants({ variant: "quiet", size: "md" })} title="the cut as slides, one at a time, navigated like a deck (present mode)">
Present
diff --git a/umtool/components/projects/ReportProject.tsx b/umtool/components/projects/ReportProject.tsx
@@ -1,7 +1,8 @@
import AppShell from "@/components/shell/AppShell";
import PieceFrame from "@/components/piece/PieceFrame";
import { readPieceFrame } from "@/lib/pieces/frame";
-import { projectHref, projectsHref } from "@/lib/hrefs";
+import Link from "next/link";
+import { projectHref, projectsHref, workspaceHref } from "@/lib/hrefs";
import { projectNoteTab } from "@/lib/pieces/article";
import { PIECE_TABS, tabOf } from "@/lib/pieces/tabs.mjs";
import type { ProjectRef } from "@/lib/project-types";
@@ -80,6 +81,11 @@ export default async function ReportProject({
more={
<>
<span className="px-2 pb-1 pt-0.5 font-mono text-[11px] text-muted">{project.id}</span>
+ {/* The workspace (L7a): the project's own address -- the draft playing, its blocks, the inspector. Here, not in
+ the head's row: the head is sticky, and a wider row is a taller head over the Cut tab's drop targets. */}
+ <Link href={workspaceHref(project.id)} prefetch={false} data-primary-workspace="" className="block rounded-[2px] px-2 py-1 text-[12.5px] text-text-2 hover:bg-panel-2 hover:text-text">
+ Open the workspace
+ </Link>
<DeleteProject project={project.id} />
</>
}
diff --git a/umtool/e2e/workspace.spec.ts b/umtool/e2e/workspace.spec.ts
@@ -152,7 +152,8 @@ test("the piece page's tabs stay at ?tab=; the Overview is written out", async (
await page.goto(urls.projectHref(P, { tab: "overview" }));
await expect(page.locator("[data-workspace]")).toHaveCount(0);
await expect(page.locator("[data-piece-tabs]")).toHaveAttribute("data-piece-tabs", "overview");
- // ...and the piece page's own Workspace link goes back to it.
+ // ...and the piece page's ⋯ More goes back to it.
+ await page.getByRole("button", { name: "More" }).click();
await expect(page.locator("[data-primary-workspace]")).toHaveAttribute("href", urls.workspaceHref(P));
});