diff --git a/frontend/src/lib/components/runs/JobDetailFieldConfig.ts b/frontend/src/lib/components/runs/JobDetailFieldConfig.ts index 4ab1398355..b7cb8f1d6d 100644 --- a/frontend/src/lib/components/runs/JobDetailFieldConfig.ts +++ b/frontend/src/lib/components/runs/JobDetailFieldConfig.ts @@ -57,6 +57,7 @@ export interface FieldConfig { label: string getValue: (job: Job) => string | null getHref?: (job: Job, workspaceId: string) => string | null + getTitle?: (job: Job) => string | null } /** @@ -243,9 +244,9 @@ export const fieldConfigs: Record = { getValue: (job) => { if (!job.token_prefix) return null const label = job.token_label === 'session' ? 'Session' : job.token_label - const owner = job.token_owner ? `, owned by ${job.token_owner}` : '' - return `${job.token_prefix}****${label ? ` (${label})` : ''}${owner}` + return `${job.token_prefix}****${label ? ` (${label})` : ''}` }, + getTitle: (job) => (job.token_owner ? `Owned by ${job.token_owner}` : null), getHref: (job, workspaceId) => job.token_prefix ? `${AUDIT_LOGS_PATH}?token=${encodeURIComponent(job.token_prefix)}&workspace=${encodeURIComponent(job.workspace_id || workspaceId)}` diff --git a/frontend/src/lib/components/runs/JobDetailHeader.svelte b/frontend/src/lib/components/runs/JobDetailHeader.svelte index a37116e7a8..3027b19399 100644 --- a/frontend/src/lib/components/runs/JobDetailHeader.svelte +++ b/frontend/src/lib/components/runs/JobDetailHeader.svelte @@ -384,7 +384,7 @@ ? 'Flow version' : 'Script hash' }: ${fullValue}` - : fullValue} + : (config.getTitle?.(job) ?? fullValue)} > {displayValue}