mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-03 08:02:19 +00:00
fix: label chat job links with the end of the job id (#11324)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9b46b21f51
commit
2f2882adff
@@ -16,7 +16,7 @@
|
||||
import { Bot, ExternalLink } from 'lucide-svelte'
|
||||
import CopyButton from '$lib/components/common/button/CopyButton.svelte'
|
||||
import { base } from '$lib/base'
|
||||
import { displayDate } from '$lib/utils'
|
||||
import { displayDate, truncateRev } from '$lib/utils'
|
||||
|
||||
interface Props {
|
||||
message: DisplayMessage
|
||||
@@ -191,7 +191,7 @@
|
||||
class="inline-flex items-center gap-1 hover:text-primary hover:underline"
|
||||
title="Open this run"
|
||||
>
|
||||
<span>job <span class="font-mono">{jobId?.slice(0, 8)}</span></span>
|
||||
<span>job <span class="font-mono">{truncateRev(jobId ?? '', 8)}</span></span>
|
||||
<ExternalLink size={11} class="shrink-0" />
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
BookOpen
|
||||
} from 'lucide-svelte'
|
||||
import { base } from '$lib/base'
|
||||
import { truncateRev } from '$lib/utils'
|
||||
import {
|
||||
EXIT_PLAN_MODE_TOOL,
|
||||
isPlanCardTool,
|
||||
@@ -291,7 +292,7 @@
|
||||
class="shrink-0 inline-flex items-center gap-1 font-main text-2xs text-tertiary hover:text-primary hover:underline"
|
||||
title="Open this run"
|
||||
>
|
||||
<span>job <span class="font-mono">{message.jobId?.slice(0, 8)}</span></span>
|
||||
<span>job <span class="font-mono">{truncateRev(message.jobId ?? '', 8)}</span></span>
|
||||
<ExternalLink size={11} class="shrink-0" />
|
||||
</a>
|
||||
{/snippet}
|
||||
|
||||
Reference in New Issue
Block a user