mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-29 08:06:46 +00:00
feat: show who deployed each version in script and flow history (#12587)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
a5c7dd4f69
commit
ba0ef82eed
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { Pane, Splitpanes } from 'svelte-splitpanes'
|
||||
import { emptyString } from '$lib/utils'
|
||||
import { displayDate, emptyString } from '$lib/utils'
|
||||
import { ScriptService, type ScriptHistory } from '$lib/gen'
|
||||
import { Skeleton } from '$lib/components/common'
|
||||
import FlowModuleScript from './flows/content/FlowModuleScript.svelte'
|
||||
@@ -59,6 +59,10 @@
|
||||
|
||||
loadVersions()
|
||||
|
||||
function versionMeta(version: ScriptHistory): string {
|
||||
return [version.created_by, displayDate(version.created_at)].filter(Boolean).join(' · ')
|
||||
}
|
||||
|
||||
let showDiff: boolean = $state(false)
|
||||
let previousHash: string | undefined = $state()
|
||||
</script>
|
||||
@@ -93,9 +97,14 @@
|
||||
deploymentMsgUpdateMode = false
|
||||
}}
|
||||
>
|
||||
<span class="text-xs truncate">
|
||||
{#if emptyString(version.deployment_msg)}Version {version.script_hash}{:else}{version.deployment_msg}{/if}
|
||||
</span>
|
||||
<div class="flex flex-col gap-0.5 truncate">
|
||||
<span class="text-xs truncate">
|
||||
{#if emptyString(version.deployment_msg)}Version {version.script_hash}{:else}{version.deployment_msg}{/if}
|
||||
</span>
|
||||
<span class="text-2xs text-tertiary truncate" title={versionMeta(version)}>
|
||||
{versionMeta(version)}
|
||||
</span>
|
||||
</div>
|
||||
{#snippet action()}
|
||||
{#if openDetails}
|
||||
<Button
|
||||
|
||||
@@ -95,6 +95,10 @@
|
||||
let availableVersions = $derived(
|
||||
selectedVersionIndex !== undefined ? versions.slice(selectedVersionIndex + 1) : []
|
||||
)
|
||||
|
||||
function versionMeta(version: FlowVersion): string {
|
||||
return [version.created_by, displayDate(version.created_at)].filter(Boolean).join(' · ')
|
||||
}
|
||||
</script>
|
||||
|
||||
<Splitpanes class="!overflow-visible">
|
||||
@@ -120,9 +124,14 @@
|
||||
deploymentMsgUpdateMode = false
|
||||
}}
|
||||
>
|
||||
<span class="text-xs truncate">
|
||||
{#if emptyString(version.deployment_msg)}Version {version.id}{:else}{version.deployment_msg}{/if}
|
||||
</span>
|
||||
<div class="flex flex-col gap-0.5 truncate">
|
||||
<span class="text-xs truncate">
|
||||
{#if emptyString(version.deployment_msg)}Version {version.id}{:else}{version.deployment_msg}{/if}
|
||||
</span>
|
||||
<span class="text-2xs text-tertiary truncate" title={versionMeta(version)}>
|
||||
{versionMeta(version)}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user