feat(runs,events,ui): identify workflows by immutable UUID (#2125)
This commit is contained in:
46 files changed
+1284
-512
No files matched your search
@@ -148,7 +148,8 @@ const result = computed(() => {
|
||||
<MetadataList :rows="details">
|
||||
<template #value="{ row }">
|
||||
<span v-if="row.label === 'Workflow'" class="inline-flex flex-wrap items-center gap-2">
|
||||
<RouterLink class="underline" :to="`/workflows/${data.run.workflow}`">{{ row.value }}</RouterLink>
|
||||
<RouterLink v-if="data.run.workflow_id" class="underline" :to="`/workflows/${data.run.workflow_id}`">{{ row.value }}</RouterLink>
|
||||
<span v-else>{{ row.value }}</span>
|
||||
<Badge variant="outline">v{{ data.run.workflow_version }}</Badge>
|
||||
</span>
|
||||
<span v-else-if="row.label === 'Event' || row.label === 'Run'" class="inline-flex items-center gap-1">
|
||||
|
||||
@@ -48,7 +48,7 @@ const columns: DataTableColumn<Run>[] = [
|
||||
<template #cell-id="{ row }"><span class="font-mono text-caption text-fg-muted">{{ row.id.slice(0, 8) }}</span></template>
|
||||
<template #menu="{ row }">
|
||||
<ContextMenuItem @select="router.push(`/runs/${row.id}`)"><ExternalLink />Open run</ContextMenuItem>
|
||||
<ContextMenuItem @select="router.push(`/workflows/${row.workflow}`)"><Workflow />Open workflow</ContextMenuItem>
|
||||
<ContextMenuItem v-if="row.workflow_id" @select="router.push(`/workflows/${row.workflow_id}`)"><Workflow />Open workflow</ContextMenuItem>
|
||||
</template>
|
||||
<template #empty><slot name="empty" /></template>
|
||||
</DataTable>
|
||||
|
||||
Reference in new issue
Block a user