From 3710e83772b6057c105a3279c404aaff5f4628d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 18 Mar 2026 07:28:02 +0100 Subject: [PATCH 1/2] feat: click test name to copy short name instead of linking to GitHub Clicking a test name now copies just the filename (without the parallel/ or sequential/ prefix) to clipboard. The GitHub source link is moved into the hover tooltip instead. Co-Authored-By: Claude Opus 4.6 (1M context) --- islands/ReportTable.tsx | 49 ++++++++++++++++++++++++++++++++++------- 1 file changed, 41 insertions(+), 8 deletions(-) diff --git a/islands/ReportTable.tsx b/islands/ReportTable.tsx index 762bf83..f38aa61 100644 --- a/islands/ReportTable.tsx +++ b/islands/ReportTable.tsx @@ -238,16 +238,11 @@ export function ReportTable(props: { class?: string; report: DayReport }) { class="text-xs py-2 whitespace-nowrap sm:overflow-visible overflow-scroll px-3" > - - {testName} - + @@ -361,7 +356,34 @@ function useCopyState(text: string) { return [copied, copy] as const; } -function CommandTooltip(props: { path: string; useNodeTest?: boolean }) { +function getShortTestName(testName: string): string { + return testName.replace(/^(?:parallel|sequential)\//, ""); +} + +function CopyableTestName({ testName }: { testName: string }) { + const shortName = getShortTestName(testName); + const [copied, copy] = useCopyState(shortName); + return ( + + ); +} + +function CommandTooltip( + props: { path: string; nodeVersion?: string; useNodeTest?: boolean }, +) { const [useDev, setUseDev] = useState(false); const denoPath = useDev ? "./target/debug/deno" : "deno"; const denoSubcommand = props.useNodeTest ? "test" : "run"; @@ -430,6 +452,17 @@ function CommandTooltip(props: { path: string; useNodeTest?: boolean }) {
         {props.path}
       
+ {props.nodeVersion && ( +

+ + View source on GitHub + +

+ )} ); } From c3472ec973eab491003507b4e812daffad1b9670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 18 Mar 2026 07:31:31 +0100 Subject: [PATCH 2/2] fix: strip everything before first slash in test name Co-Authored-By: Claude Opus 4.6 (1M context) --- islands/ReportTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/islands/ReportTable.tsx b/islands/ReportTable.tsx index f38aa61..ad2881a 100644 --- a/islands/ReportTable.tsx +++ b/islands/ReportTable.tsx @@ -357,7 +357,7 @@ function useCopyState(text: string) { } function getShortTestName(testName: string): string { - return testName.replace(/^(?:parallel|sequential)\//, ""); + return testName.replace(/^[^/]*\//, ""); } function CopyableTestName({ testName }: { testName: string }) {