From baeb0f480dbe00c11064bd7779f5dfff9c29bec2 Mon Sep 17 00:00:00 2001 From: eti Date: Wed, 2 Sep 2026 16:35:27 +0200 Subject: [PATCH] web/repo: move the pipeline status into the commit header Signed-off-by: eti --- .../lib/components/repo/CommitHeader.svelte | 45 +++++++++++-------- web/src/lib/components/repo/CommitView.svelte | 4 +- .../routes/[handle]/[repo]/+layout@.svelte | 2 +- 3 files changed, 29 insertions(+), 22 deletions(-) diff --git a/web/src/lib/components/repo/CommitHeader.svelte b/web/src/lib/components/repo/CommitHeader.svelte index 82d4140de..a327e8fb8 100644 --- a/web/src/lib/components/repo/CommitHeader.svelte +++ b/web/src/lib/components/repo/CommitHeader.svelte @@ -6,7 +6,7 @@ root: "flex flex-col gap-4 text-foreground-default", header: "flex flex-col gap-2", headerSubject: "typography-paragraph-large", - headerBody: "typography-monospace-regular whitespace-pre-wrap text-foreground-muted", + headerBody: "typography-monospace-regular whitespace-pre-wrap", commitDetails: "flex flex-col gap-2 typography-paragraph-regular", commitDetailsRow: "inline-flex flex-wrap items-center", commitDetailsTitle: "w-32 text-foreground-muted select-none" @@ -62,7 +62,31 @@
-

{commit.subject}

+ +

+ {commit.subject} + + + master + +

+ {#if pipelineStatuses} + + {@const pipeline = (await pipelineStatuses)[commit.hash]} + {#if pipeline} + + {/if} + + {/if} +
{#if commit.body}

{commit.body} @@ -154,21 +178,4 @@ {/if}

- - {#if pipelineStatuses} - - {@const pipeline = (await pipelineStatuses)[commit.hash]} - {#if pipeline} -
- -
- {/if} -
- {/if}
diff --git a/web/src/lib/components/repo/CommitView.svelte b/web/src/lib/components/repo/CommitView.svelte index 465448a79..220fe314f 100644 --- a/web/src/lib/components/repo/CommitView.svelte +++ b/web/src/lib/components/repo/CommitView.svelte @@ -59,8 +59,8 @@ const blobBase = $derived(resolve(`${base}/blob/${encodeURIComponent(ref)}` as "/")); -
- +
+ {#if mirror} diff --git a/web/src/routes/[handle]/[repo]/+layout@.svelte b/web/src/routes/[handle]/[repo]/+layout@.svelte index 54a08ea51..487cb9478 100644 --- a/web/src/routes/[handle]/[repo]/+layout@.svelte +++ b/web/src/routes/[handle]/[repo]/+layout@.svelte @@ -113,7 +113,7 @@
{#key `${page.params.handle}/${page.params.repo}`} -- 2.51.2