From a7e457bdb41debaebb08455ace5deb7f12bb4188 Mon Sep 17 00:00:00 2001 From: BrX Date: Mon, 27 Jul 2026 15:36:09 +0200 Subject: [PATCH] feat: display last commit hash in Git source badge Show the short commit hash next to 'Git' in the stack source column. When a commit hash is available, the badge reads 'Git abc1234' with a tooltip showing the full hash, repo URL, and branch. Falls back to the original 'Git' label when no commit is recorded yet (e.g. before first deploy). --- src/routes/stacks/+page.svelte | 36 +++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/src/routes/stacks/+page.svelte b/src/routes/stacks/+page.svelte index 5beca72..b899938 100644 --- a/src/routes/stacks/+page.svelte +++ b/src/routes/stacks/+page.svelte @@ -1746,13 +1746,35 @@ {:else if column.id === 'source'} {#if source.sourceType === 'git'} - - - Git - + {#if source.gitStack?.lastCommit} + + + + + Git + {source.gitStack.lastCommit} + + + + {source.gitStack.lastCommit} + {#if source.repository} +
+ {source.repository.url} ({source.repository.branch}) + {/if} +
+
+ {:else} + + + Git + + {/if} {:else if source.sourceType === 'internal'}