commit 3964830807f5d7554cedad63e167d291ecb57567
parent a2b4f5f8bcb4cd71cfbb48c6cf676ffb5be46e62
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 14 Oct 2026 07:49:36 -0400
umtool: a piece page lights Work as the place it is under, not as Work itself (shell.spec's /articles/delta)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/umtool/components/articles/ArticlePage.tsx b/umtool/components/articles/ArticlePage.tsx
@@ -155,6 +155,7 @@ export default async function ArticlePage({
return (
<div className="flex h-full flex-col">
<PieceFrame
+ active="articles"
crumbs={[...crumbs, ...(title !== reportId ? [{ label: reportId }] : []), { label: title }]}
frame={frame}
tab={tab}
diff --git a/umtool/components/piece/PieceFrame.tsx b/umtool/components/piece/PieceFrame.tsx
@@ -27,6 +27,7 @@ import PieceKeys from "./PieceKeys";
export type FrameTab = { id: string; label: string; href: string };
export default function PieceFrame({
+ active = "projects",
crumbs,
frame,
tab,
@@ -38,6 +39,8 @@ export default function PieceFrame({
more,
children,
}: {
+ /** The rail's key (components/AppNav.tsx): a piece is under Work, never Work itself -- `projects` or `articles`. */
+ active?: string;
/** The trail, its last crumb the piece's title (the head's `<h1>`). */
crumbs: Crumb[];
frame: Frame;
@@ -69,7 +72,7 @@ export default function PieceFrame({
return (
<>
<AppShell
- active="work"
+ active={active}
crumbs={crumbs}
note={note}
meta={meta}