mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-25 00:01:55 +00:00
whitelabel nits
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
export let refreshLog: boolean = false
|
||||
export let durationStates: Writable<Record<string, DurationStatus>> | undefined
|
||||
export let downloadLogs = true
|
||||
export let tagLabel: string | undefined = undefined
|
||||
|
||||
let lastJobId: string | undefined = undefined
|
||||
let drawer: Drawer | undefined = undefined
|
||||
@@ -93,6 +94,7 @@
|
||||
><button class="" on:click={drawer.openDrawer}>explore all steps' logs</button></div
|
||||
>
|
||||
<LogViewer
|
||||
{tagLabel}
|
||||
download={downloadLogs}
|
||||
content={logs ?? ''}
|
||||
{jobId}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
import LogViewer from './LogViewer.svelte'
|
||||
|
||||
export let jobId: string
|
||||
export let tagLabel: string | undefined = undefined
|
||||
|
||||
let logs: string | undefined = undefined
|
||||
|
||||
@@ -13,4 +14,4 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<LogViewer content={logs} isLoading={false} tag={undefined} {jobId} />
|
||||
<LogViewer content={logs} isLoading={false} tag={undefined} {jobId} {tagLabel} />
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
export let noAutoScroll = false
|
||||
export let download = true
|
||||
export let customEmptyMessage = 'No logs are available yet'
|
||||
|
||||
export let tagLabel: string | undefined = undefined
|
||||
// @ts-ignore
|
||||
const ansi_up = new AnsiUp()
|
||||
|
||||
@@ -227,8 +227,10 @@
|
||||
<Loader2 class="animate-spin" />
|
||||
{#if tag}
|
||||
<div class="flex flex-row items-center gap-1">
|
||||
<div class="text-secondary {small ? '!text-2xs' : '!text-xs'}">tag: {tag}</div>
|
||||
<NoWorkerWithTagWarning {tag} />
|
||||
<div class="text-secondary {small ? '!text-2xs' : '!text-xs'}"
|
||||
>{tagLabel ?? 'tag'}: {tag}</div
|
||||
>
|
||||
<NoWorkerWithTagWarning {tagLabel} {tag} />
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
disableHistory?: boolean
|
||||
onUpdateMock?: (mock: { enabled: boolean; return_value?: unknown }) => void
|
||||
loadingJob?: boolean
|
||||
tagLabel?: string
|
||||
}
|
||||
|
||||
let {
|
||||
@@ -40,7 +41,8 @@
|
||||
disableMock = false,
|
||||
disableHistory = false,
|
||||
onUpdateMock,
|
||||
loadingJob = false
|
||||
loadingJob = false,
|
||||
tagLabel = undefined
|
||||
}: Props = $props()
|
||||
|
||||
const { testSteps } = getContext<FlowEditorContext>('FlowEditorContext')
|
||||
@@ -98,6 +100,7 @@
|
||||
isLoading={false}
|
||||
tag={undefined}
|
||||
customEmptyMessage="Using pinned data"
|
||||
{tagLabel}
|
||||
/>
|
||||
{:else}
|
||||
<LogViewer
|
||||
@@ -108,6 +111,7 @@
|
||||
content={logJob?.logs}
|
||||
isLoading={(testIsLoading && logJob?.['running'] == false) || loadingJob}
|
||||
tag={logJob?.tag}
|
||||
{tagLabel}
|
||||
/>
|
||||
{/if}
|
||||
</Pane>
|
||||
|
||||
@@ -24,9 +24,10 @@
|
||||
interface Props {
|
||||
searchTerm: string
|
||||
queryParseErrors?: string[]
|
||||
tagLabel?: string
|
||||
}
|
||||
|
||||
let { searchTerm, queryParseErrors = $bindable() }: Props = $props()
|
||||
let { searchTerm, queryParseErrors = $bindable(), tagLabel }: Props = $props()
|
||||
|
||||
let minTs: undefined | string = $state(undefined)
|
||||
let maxTs: undefined | string = $state(undefined)
|
||||
@@ -771,6 +772,7 @@
|
||||
noMaxH
|
||||
isLoading={false}
|
||||
tag={undefined}
|
||||
{tagLabel}
|
||||
content={processLogWithJsonFmt(
|
||||
logsContent[file.file_path].content,
|
||||
file.json_fmt
|
||||
|
||||
@@ -51,6 +51,7 @@ export type PreviewPanelUi = {
|
||||
displayResult?: DisplayResultUi
|
||||
disableVariablePicker?: boolean
|
||||
disableDownload?: boolean
|
||||
tagLabel?: string
|
||||
}
|
||||
|
||||
export type EditorBarUi = {
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
import { onDestroy } from 'svelte'
|
||||
interface Props {
|
||||
tag: string
|
||||
tagLabel?: string
|
||||
}
|
||||
|
||||
let { tag }: Props = $props()
|
||||
let { tag, tagLabel = undefined }: Props = $props()
|
||||
|
||||
let noWorkerWithTag = $state(false)
|
||||
|
||||
@@ -44,7 +45,7 @@
|
||||
<Popover notClickable placement="top">
|
||||
<AlertTriangle size={16} class="text-yellow-500" />
|
||||
{#snippet text()}
|
||||
No worker with tag <b>{tag}</b> is currently running.
|
||||
No worker with {tagLabel ?? 'tag'} <b>{tag}</b> is currently running.
|
||||
{/snippet}
|
||||
</Popover>
|
||||
{/if}
|
||||
|
||||
@@ -146,6 +146,7 @@
|
||||
isLoading={previewJob?.['running'] == false && previewIsLoading}
|
||||
tag={previewJob?.tag}
|
||||
download={customUi?.disableDownload !== true}
|
||||
tagLabel={customUi?.tagLabel}
|
||||
/>
|
||||
</Pane>
|
||||
<Pane>
|
||||
|
||||
Reference in New Issue
Block a user