|
1 | 1 | 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' |
3 | 3 | import { clsx } from 'clsx' |
4 | 4 | import { EmptyState, FetchResult, StatusDot, mapHealthToTone } from '@skyhook-io/k8s-ui' |
5 | 5 | import { buildWorkflowExecutionModel, type WorkflowExecutionActivity, type WorkflowExecutionModel, type WorkflowExecutionNode, type WorkflowTemplateReference } from '@skyhook-io/k8s-ui/utils/workflow-execution' |
6 | 6 | import { useResource, useWorkloadRuns, type WorkloadRun } from '../../api/client' |
7 | | -import { WorkloadLogsViewer } from '../logs/WorkloadLogsViewer' |
8 | 7 |
|
9 | 8 | const EMPTY_RUNS: WorkloadRun[] = [] |
10 | 9 | const SCHEDULED_KINDS = new Set(['CronJob', 'CronWorkflow']) |
@@ -236,26 +235,6 @@ export function BatchExecutionFullscreen({ kind, apiKind, namespace, name, resou |
236 | 235 | <TemplateReferencePanel refs={workflowExecution.templateRefs} onNavigateToResource={onNavigateToResource} /> |
237 | 236 | )} |
238 | 237 |
|
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 | | - )} |
259 | 238 | </div> |
260 | 239 | </main> |
261 | 240 | </div> |
|
0 commit comments