From ecbf57d97827df260b749b315028fd07b50cccf1 Mon Sep 17 00:00:00 2001 From: chyoo Date: Wed, 8 Jul 2026 18:13:55 +0900 Subject: [PATCH] connect tailscale node status through platform gateway --- src/pages/common-apps/CommonAppBuildPage.tsx | 3 --- src/pages/common-apps/CommonAppSourcePage.tsx | 22 +++++++++---------- src/pages/common-apps/common-app-api.ts | 5 +++-- src/types/application.ts | 4 ++++ 4 files changed, 18 insertions(+), 16 deletions(-) diff --git a/src/pages/common-apps/CommonAppBuildPage.tsx b/src/pages/common-apps/CommonAppBuildPage.tsx index 1247123..d82ee87 100644 --- a/src/pages/common-apps/CommonAppBuildPage.tsx +++ b/src/pages/common-apps/CommonAppBuildPage.tsx @@ -83,9 +83,6 @@ export function CommonAppBuildPage() {

{formatRepositoryName(pipeline.repository)}

- {isActivePipelineStatus(pipeline.status) ? ( - - ) : null}

{pipeline.message || '-'}

diff --git a/src/pages/common-apps/CommonAppSourcePage.tsx b/src/pages/common-apps/CommonAppSourcePage.tsx index 63bb784..2d60708 100644 --- a/src/pages/common-apps/CommonAppSourcePage.tsx +++ b/src/pages/common-apps/CommonAppSourcePage.tsx @@ -25,10 +25,13 @@ const commitRangeLabels: Record = { const commitPageSize = 5; const branchOptions = ['develop', 'release', 'main']; -const defaultCicdBaseUrl = 'http://192.168.0.20:8010'; function repoFullName(repo: GiteaRepo) { - return (repo as GiteaRepo & { fullName?: string }).fullName ?? repo.full_name ?? repo.name; + return repo.fullName ?? repo.full_name ?? repo.name; +} + +function repoHtmlUrl(repo?: GiteaRepo) { + return repo?.htmlUrl ?? repo?.html_url ?? ''; } function splitRepository(repository: string) { @@ -39,13 +42,7 @@ function splitRepository(repository: string) { function cicdLabel(pipeline?: CommonAppPipeline) { if (!pipeline) return '-'; - try { - const origin = pipeline.url ? new URL(pipeline.url).origin : ''; - const baseUrl = origin && !origin.includes(':3000') ? origin : defaultCicdBaseUrl; - return `Woodpecker / ${baseUrl}`; - } catch { - return `Woodpecker / ${defaultCicdBaseUrl}`; - } + return pipeline.ciUrl ? `Woodpecker / ${pipeline.ciUrl}` : 'Woodpecker'; } function commitAuthor(commit: GiteaCommit) { @@ -258,7 +255,10 @@ export function CommonAppSourcePage() {