Archilyzer · Source

archilyzer

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

commit 17119e1617113737580089737f5a7e9062016ca9
parent 03bf2bd087800b8e433a97533d48471e178f8190
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Thu,  5 Nov 2026 03:13:52 -0500

umtool: the rail's Recent cuts leaves out the project on screen and names each by its id's last part (the page itself names the title)

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

Diffstat:
Mumtool/components/shell/RecentCuts.tsx | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/umtool/components/shell/RecentCuts.tsx b/umtool/components/shell/RecentCuts.tsx @@ -1,5 +1,6 @@ "use client"; +import { usePathname } from "next/navigation"; import { useEffect, useState } from "react"; import PlayLink from "@/components/projects/PlayLink"; import Link from "next/link"; @@ -41,7 +42,10 @@ export function RememberCut({ project, title }: { project: string; title: string } export default function RecentCuts() { - const [list, setList] = useState<Recent[]>([]); + const [all, setList] = useState<Recent[]>([]); + // Not the one on screen (its own page has its Play), and named by its id's last part (the page names its title). + const here = usePathname() ?? ""; + const list = all.filter((r) => !here.startsWith(projectHref(r.project))); useEffect(() => { const on = () => setList(read()); on(); @@ -59,8 +63,8 @@ export default function RecentCuts() { <ul className="m-0 list-none space-y-0.5 px-4 p-0"> {list.map((r) => ( <li key={r.project} data-recent-cut={r.project} className="flex items-center gap-1 px-1 text-[12px]"> - <Link href={projectHref(r.project)} prefetch={false} className="min-w-0 flex-1 truncate text-text-2 no-underline hover:text-text" title={r.project}> - {r.title} + <Link href={projectHref(r.project)} prefetch={false} className="min-w-0 flex-1 truncate text-text-2 no-underline hover:text-text" title={`${r.title} (${r.project})`}> + {r.project.split("/").pop()} </Link> <PlayLink project={r.project} where="rail" variant="icon" /> </li>