From 39cb4ec89a9bf8aa5ef1acd91af4e65f40af6dfb Mon Sep 17 00:00:00 2001 From: Nurfog Date: Wed, 9 Sep 2026 10:02:12 -0300 Subject: [PATCH] feat: tarjeta portal lleva al tablero IT (boardHref shell) --- src/app/page.tsx | 24 ++++++++++++++++++------ src/components/TableroView.tsx | 14 +++++++++++--- src/lib/sam.ts | 16 +++++++++++++++- 3 files changed, 44 insertions(+), 10 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 575536a..7061c6a 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -3,6 +3,7 @@ import Link from "next/link"; import { useModules, refreshModules } from "@/lib/store"; import { + boardHref, displayName, envOf, getModuleMeta, @@ -33,6 +34,22 @@ export default function Home() { const env = envOf(m.branch); const url = moduleUrl(m); const name = displayName(m.name); + const board = boardHref(m); + const boardLink = board.external ? ( + + {name} + + ) : ( + + {name} + + ); return (
@@ -45,12 +62,7 @@ export default function Home() { /> - - {name} - + {boardLink}
diff --git a/src/components/TableroView.tsx b/src/components/TableroView.tsx index 17f538e..82577aa 100644 --- a/src/components/TableroView.tsx +++ b/src/components/TableroView.tsx @@ -5,6 +5,7 @@ import SamShell from "@/components/SamShell"; import { useModules, useStats } from "@/lib/store"; import { displayName, + boardHref, envOf, getModuleMeta, moduleUrl, @@ -103,6 +104,7 @@ function AppCard({ m, stat }: { m: ModuleState; stat?: ContainerStat }) { const env = envOf(m.branch); const cpu = pct(stat?.cpu); const mem = pct(stat?.memPerc); + const board = boardHref(m); return (