From fcdc79f8010d7564682ba4b26d206125319f4a69 Mon Sep 17 00:00:00 2001 From: Jason Crawford Date: Tue, 24 Feb 2026 09:41:43 -0800 Subject: [PATCH] feat: make site URLs clickable throughout the app URLs now open in a new tab on site cards, open incident cards, site detail pages, and incident detail pages. Refactored incident cards on the status page to use the overlay link pattern to avoid nested anchor tags. Closes #61 Co-Authored-By: Claude Opus 4.6 --- src/app/incidents/[id]/page.tsx | 11 +++++++++++ src/app/page.tsx | 23 ++++++++++++++++------- src/app/sites/[id]/page.tsx | 10 ++++++++-- src/components/SiteList.tsx | 10 +++++++--- 4 files changed, 42 insertions(+), 12 deletions(-) diff --git a/src/app/incidents/[id]/page.tsx b/src/app/incidents/[id]/page.tsx index d708242..f1e9a3f 100644 --- a/src/app/incidents/[id]/page.tsx +++ b/src/app/incidents/[id]/page.tsx @@ -122,6 +122,17 @@ export default async function IncidentDetailPage({ Resolved )} +
+ + {incident.site?.url} + +
Triggered by: 0 ? (
{incidents.map((incident) => ( - + - +
))}
) : ( diff --git a/src/app/sites/[id]/page.tsx b/src/app/sites/[id]/page.tsx index e750f79..71880de 100644 --- a/src/app/sites/[id]/page.tsx +++ b/src/app/sites/[id]/page.tsx @@ -74,9 +74,15 @@ export default async function SiteDetailPage({ > {site.name} -
+ {site.url} -
+ {user && ( diff --git a/src/components/SiteList.tsx b/src/components/SiteList.tsx index ed5a6bf..8af2ddd 100644 --- a/src/components/SiteList.tsx +++ b/src/components/SiteList.tsx @@ -138,12 +138,16 @@ function SiteCard({ {site.name} - e.stopPropagation()} > {site.url} - + {isAdmin && (