feat: tarjeta portal lleva al tablero IT (boardHref shell)

This commit is contained in:
Nurfog committed 2026-09-09 10:02:12 -03:00
1 parent 23df440b79
commit 39cb4ec89a
3 files changed
+44 -10

No files matched your search

+18 -6
View File
@@ -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 ? (
<a
href={board.href}
className="text-decoration-none text-dark d-block py-2 stretched-link"
>
{name}
</a>
) : (
<Link
href={board.href}
className="text-decoration-none text-dark d-block py-2 stretched-link"
>
{name}
</Link>
);
return (
<div className="col-md-6" key={m.name}>
<div className="app-card p-2">
@@ -45,12 +62,7 @@ export default function Home() {
/>
</td>
<td>
<Link
href={`/m/${m.name}`}
className="text-decoration-none text-dark d-block py-2 stretched-link"
>
{name}
</Link>
{boardLink}
<div className="d-flex align-items-center gap-2">
<span className={`status-dot ${status.cls}`} />
<small className="text-muted" style={{ fontSize: "0.75rem" }}>