Skip to content

Commit 1b109f0

Browse files
committed
Keep batch logs in logs tab
1 parent 1844cfa commit 1b109f0

1 file changed

Lines changed: 1 addition & 22 deletions

File tree

web/src/components/execution/BatchExecutionView.tsx

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { useEffect, useMemo, useRef, useState, type ComponentType, type ReactNode } from 'react'
2-
import { Activity, AlertTriangle, GitBranch, Layers3, Loader2, Terminal } from 'lucide-react'
2+
import { Activity, AlertTriangle, GitBranch, Layers3, Loader2 } from 'lucide-react'
33
import { clsx } from 'clsx'
44
import { EmptyState, FetchResult, StatusDot, mapHealthToTone } from '@skyhook-io/k8s-ui'
55
import { buildWorkflowExecutionModel, type WorkflowExecutionActivity, type WorkflowExecutionModel, type WorkflowExecutionNode, type WorkflowTemplateReference } from '@skyhook-io/k8s-ui/utils/workflow-execution'
66
import { useResource, useWorkloadRuns, type WorkloadRun } from '../../api/client'
7-
import { WorkloadLogsViewer } from '../logs/WorkloadLogsViewer'
87

98
const EMPTY_RUNS: WorkloadRun[] = []
109
const SCHEDULED_KINDS = new Set(['CronJob', 'CronWorkflow'])
@@ -236,26 +235,6 @@ export function BatchExecutionFullscreen({ kind, apiKind, namespace, name, resou
236235
<TemplateReferencePanel refs={workflowExecution.templateRefs} onNavigateToResource={onNavigateToResource} />
237236
)}
238237

239-
{selectedRun && (
240-
<section className="min-h-[380px] overflow-hidden rounded-lg border border-theme-border bg-theme-surface">
241-
<div className="flex items-center justify-between border-b border-theme-border px-4 py-2">
242-
<div className="flex items-center gap-2 text-sm font-medium text-theme-text-primary">
243-
<Terminal className="h-4 w-4 text-theme-text-secondary" />
244-
Logs
245-
</div>
246-
<span className="text-xs text-theme-text-tertiary">{selectedRun.namespace}/{selectedRun.name}</span>
247-
</div>
248-
<div className="h-[420px]">
249-
<WorkloadLogsViewer
250-
key={`${selectedRun.kind}/${selectedRun.namespace}/${selectedRun.name}`}
251-
kind={selectedRun.kind}
252-
namespace={selectedRun.namespace}
253-
name={selectedRun.name}
254-
autoStream={selectedRun.active}
255-
/>
256-
</div>
257-
</section>
258-
)}
259238
</div>
260239
</main>
261240
</div>

0 commit comments

Comments
 (0)