@milabench/bujang 0.1.13 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -100,7 +100,7 @@ export const LogDisplay: React.FC<LogDisplayProps> = ({
100
100
 
101
101
  return (
102
102
  <Card.Root bg="var(--color-bg-card)" padding="10px" border="1px solid" borderColor="var(--color-border)" className="logview" flex={1} minH={0} display="flex" flexDirection="column">
103
- <Card.Header paddingBottom="5px" flexShrink={0}>
103
+ <Card.Header p={0} paddingBottom="5px" flexShrink={0}>
104
104
  <HStack justify="space-between">
105
105
  <Heading size="md">{displayName}</Heading>
106
106
 
@@ -116,7 +116,7 @@ export const LogDisplay: React.FC<LogDisplayProps> = ({
116
116
  </HStack>
117
117
  </HStack>
118
118
  </Card.Header>
119
- <Card.Body flex="1" minH={0} display="flex" flexDirection="column">
119
+ <Card.Body p={0} flex="1" minH={0} display="flex" flexDirection="column">
120
120
  {error ? (
121
121
  <Alert.Root status="error">
122
122
  <Alert.Indicator />
@@ -692,7 +692,7 @@ export const PipelineBuilder: React.FC<{
692
692
  <Dialog.Root open={isOpen} onOpenChange={(details) => { if (!details.open) onClose(); }} size="cover">
693
693
  <Dialog.Backdrop />
694
694
  <Dialog.Positioner>
695
- <Dialog.Content maxW="1100px" h="min(760px, 90vh)" display="flex" flexDirection="column">
695
+ <Dialog.Content className="bujang-dialog" maxW="1100px" h="min(760px, 90vh)" display="flex" flexDirection="column">
696
696
  <Dialog.Header py={3} px={4} borderBottom="1px solid" borderColor="var(--color-border)">
697
697
  <HStack gap={3} w="100%" pr={8} align="flex-start">
698
698
  <Input
@@ -1,4 +1,4 @@
1
- import React, { useState, useMemo } from 'react';
1
+ import React, { useState } from 'react';
2
2
  import { Tooltip } from '../components/tooltip'
3
3
  import {
4
4
  Box,
@@ -19,7 +19,7 @@ import {
19
19
  } from '@chakra-ui/react';
20
20
  import { Link as RouterLink, useNavigate, useParams, useSearchParams } from 'react-router-dom';
21
21
  import { useBujangPaths } from '../context';
22
- import { NO_JOB_ID } from '../constants';
22
+ import { COMPACT_ROWS, NO_JOB_ID } from '../constants';
23
23
  import { toaster } from '../toast';
24
24
  import { LuArrowLeft, LuPencil, LuPlay, LuPlus, LuSearch } from 'react-icons/lu';
25
25
  import { useQuery, useQueries, useMutation, useQueryClient } from '@tanstack/react-query';
@@ -39,9 +39,10 @@ import type {
39
39
  PipelineRunResponse,
40
40
  PipelineRunSummary,
41
41
  PipelineRunStatus,
42
+ PipelineRunStep,
42
43
  PipelineRunState
43
44
  } from '../types';
44
- import { PipelineGraph, graphIsDrawable } from './PipelineGraph';
45
+ import { AgentBadge } from './AgentActivityView';
45
46
  import { PipelineBuilder } from './PipelineEditor';
46
47
  import type { PipelineTemplateFileData } from './PipelineEditor';
47
48
  import { usePageTitle } from '../hooks/usePageTitle';
@@ -86,6 +87,53 @@ const JobLogsLink: React.FC<{ jobId?: string | null; slurmJobId?: string | null;
86
87
  const isRunOver = (run?: PipelineRunStatus): boolean =>
87
88
  !!run && (run.status === 'failed' || run.state === 'completed' || run.state === 'failed');
88
89
 
90
+ /** A row of the steps table: a group of the definition, or one of its jobs with the step it became */
91
+ type StepRow =
92
+ | { kind: 'group'; node: Exclude<PipelineNode, { type: 'job' }>; depth: number; marker: string; steps: PipelineRunStep[] }
93
+ | { kind: 'job'; node?: PipelineNode; step?: PipelineRunStep; depth: number; marker: string };
94
+
95
+ const countJobs = (node: PipelineNode): number =>
96
+ node.type === 'job' ? 1 : (node.jobs || []).reduce((n, child) => n + countJobs(child), 0);
97
+
98
+ /**
99
+ * The definition as indented rows, its jobs paired with the steps of the run (the server lists the steps
100
+ * in the order of the definition). Without a definition that matches the steps: the steps, flat.
101
+ */
102
+ const stepRows = (definition: PipelineNode | null | undefined, steps: PipelineRunStep[]): StepRow[] => {
103
+ if (!definition || (steps.length > 0 && countJobs(definition) !== steps.length)) {
104
+ return steps.map((step) => ({ kind: 'job', step, depth: 0, marker: '' }));
105
+ }
106
+ const out: StepRow[] = [];
107
+ let next = 0;
108
+ const walk = (node: PipelineNode, depth: number, marker: string) => {
109
+ if (node.type === 'job') {
110
+ out.push({ kind: 'job', node, step: steps[next++], depth, marker });
111
+ return;
112
+ }
113
+ const first = next;
114
+ const row: StepRow = { kind: 'group', node, depth, marker, steps: [] };
115
+ out.push(row);
116
+ (node.jobs || []).forEach((child, i) => walk(child, depth + 1, node.type === 'sequential' ? `${i + 1}.` : '•'));
117
+ row.steps = steps.slice(first, next);
118
+ };
119
+ walk(definition, 0, '');
120
+ return out;
121
+ };
122
+
123
+ /** The last part of a step id without its position: "1.Sizing/0.lynx_sizing" -> "lynx_sizing" */
124
+ const stepName = (step?: string): string => (step ?? '').split('/').pop()!.replace(/^\d+\./, '');
125
+
126
+ /** "12/20 COMPLETED, 3 RUNNING": the states of the steps of a group, most frequent first */
127
+ const groupSummary = (steps: PipelineRunStep[]): string => {
128
+ if (steps.length === 0) return '';
129
+ const counts: Record<string, number> = {};
130
+ for (const step of steps) counts[step.state || 'UNKNOWN'] = (counts[step.state || 'UNKNOWN'] || 0) + 1;
131
+ return Object.entries(counts)
132
+ .sort((a, b) => b[1] - a[1])
133
+ .map(([state, n], i) => (i === 0 ? `${n}/${steps.length} ${state}` : `${n} ${state}`))
134
+ .join(', ');
135
+ };
136
+
89
137
  // Progress of one run: steps with their state and the pipeline log, refreshed until it is over
90
138
  const PipelineRunProgress: React.FC<{ runId: string }> = ({ runId }) => {
91
139
  const { data: run, error, dataUpdatedAt, isFetching } = useQuery<PipelineRunStatus, ApiError>({
@@ -128,6 +176,7 @@ const PipelineRunProgress: React.FC<{ runId: string }> = ({ runId }) => {
128
176
  <HStack gap={3} flexWrap="wrap">
129
177
  <Heading size="md" color="var(--color-text)">{run.name || runId}</Heading>
130
178
  <Badge colorPalette={runStateColor(run.status, run.state)} size="lg">{label}</Badge>
179
+ <AgentBadge tag={run.agent} />
131
180
  <Text fontFamily="mono" fontSize="sm" color="var(--color-text-muted)">{runId}</Text>
132
181
  <Spacer />
133
182
  <Text fontSize="xs" color="var(--color-text-muted)">
@@ -151,7 +200,7 @@ const PipelineRunProgress: React.FC<{ runId: string }> = ({ runId }) => {
151
200
  )}
152
201
 
153
202
  {run.steps && run.steps.length > 0 && (
154
- <Table.Root size="sm" variant="outline">
203
+ <Table.Root size="sm" variant="outline" css={COMPACT_ROWS}>
155
204
  <Table.Header>
156
205
  <Table.Row>
157
206
  <Table.ColumnHeader>Step</Table.ColumnHeader>
@@ -161,18 +210,42 @@ const PipelineRunProgress: React.FC<{ runId: string }> = ({ runId }) => {
161
210
  </Table.ColumnHeader>
162
211
  )}
163
212
  <Table.ColumnHeader>Runs on</Table.ColumnHeader>
164
- <Table.ColumnHeader>Waits on</Table.ColumnHeader>
165
213
  <Table.ColumnHeader>State</Table.ColumnHeader>
166
214
  <Table.ColumnHeader>Job folder</Table.ColumnHeader>
167
215
  </Table.Row>
168
216
  </Table.Header>
169
217
  <Table.Body>
170
- {run.steps.map((step) => {
171
- const after = step.after && step.after.length > 0 ? step.after.join(', ') : null;
218
+ {stepRows(run.definition, run.steps).map((row, index) => {
219
+ const indent = (
220
+ <Text as="span" display="inline-block" minW="1.6em" color="var(--color-text-muted)" fontFamily="mono" fontSize="xs">
221
+ {row.marker}
222
+ </Text>
223
+ );
224
+ if (row.kind === 'group') {
225
+ return (
226
+ <Table.Row key={`group-${index}`} bg="var(--color-bg-page)">
227
+ <Table.Cell pl={`${12 + row.depth * 20}px`} whiteSpace="nowrap">
228
+ {indent}
229
+ <Badge size="sm" variant="outline" mr={2} textTransform="capitalize">{row.node.type}</Badge>
230
+ <Text as="span" fontWeight="semibold" fontSize="sm">{row.node.name}</Text>
231
+ </Table.Cell>
232
+ <Table.Cell colSpan={sweepKeys.length > 0 ? 4 : 3} fontSize="xs" color="var(--color-text-muted)">
233
+ {groupSummary(row.steps)}
234
+ </Table.Cell>
235
+ </Table.Row>
236
+ );
237
+ }
238
+ const step = row.step;
239
+ if (!step) return null;
240
+ // in the tree the parents are the rows above: "1.Sizing/0.lynx_sizing" -> "lynx_sizing"
241
+ const name = row.node ? stepName(step.step) : step.step;
172
242
  return (
173
- <Table.Row key={step.job_id || step.step}>
174
- <Table.Cell fontFamily="mono" fontSize="xs">
175
- <JobLogsLink jobId={step.job_id} slurmJobId={step.executor === 'ssh' ? null : step.slurm_jobid}>{step.step}</JobLogsLink>
243
+ <Table.Row key={step.job_id || step.step || index}>
244
+ <Table.Cell fontFamily="mono" fontSize="xs" pl={`${12 + row.depth * 20}px`} whiteSpace="nowrap">
245
+ {indent}
246
+ <Tooltip content={step.step} disabled={name === step.step}>
247
+ <JobLogsLink jobId={step.job_id} slurmJobId={step.executor === 'ssh' ? null : step.slurm_jobid}>{name}</JobLogsLink>
248
+ </Tooltip>
176
249
  </Table.Cell>
177
250
  {sweepKeys.length > 0 && (
178
251
  <Table.Cell fontFamily="mono" fontSize="xs">
@@ -185,14 +258,6 @@ const PipelineRunProgress: React.FC<{ runId: string }> = ({ runId }) => {
185
258
  {step.executor === 'ssh' ? `ssh ${step.host}` : `slurm ${step.slurm_jobid ?? '-'}`}
186
259
  <Text as="span" color="var(--color-text-muted)"> ({step.profile})</Text>
187
260
  </Table.Cell>
188
- {/* a step after a wide parallel group waits on many: clipped, all of them in the tooltip */}
189
- <Table.Cell fontFamily="mono" fontSize="xs" color="var(--color-text-muted)" maxW="200px">
190
- {after ? (
191
- <Tooltip content={<Text fontFamily="mono" fontSize="xs" whiteSpace="pre-wrap">{step.after!.join('\n')}</Text>}>
192
- <Text truncate cursor="default">{after}</Text>
193
- </Tooltip>
194
- ) : '-'}
195
- </Table.Cell>
196
261
  <Table.Cell>
197
262
  <Badge colorPalette={stepStateColor(step.state)}>{step.state || 'UNKNOWN'}</Badge>
198
263
  </Table.Cell>
@@ -247,9 +312,13 @@ const usePipelineRuns = () => useQuery<PipelineRunSummary[], ApiError>({
247
312
 
248
313
  const OVER_STATES: (PipelineRunState | null | undefined)[] = ['completed', 'failed'];
249
314
 
315
+ // the server reads the state of a run from the local job index: none yet is "submitted" only for a new run
316
+ const JUST_SUBMITTED_S = 15 * 60;
317
+
250
318
  /** What a run shows: the submission when it is not submitted, else the state of its jobs */
251
319
  const runLabel = (run: PipelineRunSummary, state?: PipelineRunState | null): string =>
252
- run.status !== 'submitted' ? run.status : (state || 'submitted');
320
+ run.status !== 'submitted' ? run.status
321
+ : (state || (Date.now() / 1000 - run.started < JUST_SUBMITTED_S ? 'submitted' : 'unknown'));
253
322
 
254
323
  // runs older than this are not polled: their jobs may be gone from sacct, they would look running forever
255
324
  const LIVE_RUN_MAX_AGE_S = 3 * 24 * 3600;
@@ -370,7 +439,19 @@ const RunButton: React.FC<{ name: string; onStarted: (run: PipelineRunResponse)
370
439
  };
371
440
 
372
441
  // the list shows the pipelines run most recently, the search finds the others
373
- const PIPELINES_SHOWN = 10;
442
+ const PIPELINES_SHOWN = 25;
443
+
444
+ /** The clusters of the steps of a definition ("<cluster>/<profile>"): for the pipelines never run */
445
+ const definitionClusters = (node?: PipelineNode, out: string[] = []): string[] => {
446
+ if (!node) return out;
447
+ if (node.type === 'job') {
448
+ const cluster = node.cluster || (node.profile || '').split('/')[0];
449
+ if (cluster && !out.includes(cluster)) out.push(cluster);
450
+ return out;
451
+ }
452
+ for (const child of node.jobs || []) definitionClusters(child, out);
453
+ return out;
454
+ };
374
455
 
375
456
  /** /pipelines: the saved pipelines, most recently run first */
376
457
  export const PipelinesView: React.FC = () => {
@@ -395,7 +476,8 @@ export const PipelinesView: React.FC = () => {
395
476
 
396
477
  const rows = names.map((name, index) => {
397
478
  const data = definitions[index]?.data;
398
- return { name, data, last: runsOf(runs, name, data?.name)[0] as PipelineRunSummary | undefined };
479
+ const own = runsOf(runs, name, data?.name);
480
+ return { name, data, last: own[0] as PipelineRunSummary | undefined, count: own.length };
399
481
  });
400
482
  // most recently run first, then the ones never run by name
401
483
  rows.sort((a, b) => (b.last?.started ?? -1) - (a.last?.started ?? -1) || a.name.localeCompare(b.name));
@@ -467,18 +549,23 @@ export const PipelinesView: React.FC = () => {
467
549
  {shown.length === 0 ? (
468
550
  <Text fontSize="sm" color="var(--color-text-muted)">No pipeline matches {search}.</Text>
469
551
  ) : (
470
- <Table.Root size="sm" variant="outline">
552
+ <Table.Root size="sm" variant="outline" css={COMPACT_ROWS}>
471
553
  <Table.Header>
472
554
  <Table.Row>
473
555
  <Table.ColumnHeader>Name</Table.ColumnHeader>
474
- <Table.ColumnHeader>Description</Table.ColumnHeader>
475
- <Table.ColumnHeader textAlign="end">Steps</Table.ColumnHeader>
476
- <Table.ColumnHeader>Last run</Table.ColumnHeader>
556
+ <Table.ColumnHeader textAlign="end" px={4}>Steps</Table.ColumnHeader>
557
+ <Table.ColumnHeader textAlign="end" px={4}>Runs</Table.ColumnHeader>
558
+ <Table.ColumnHeader px={4}>Cluster</Table.ColumnHeader>
559
+ <Table.ColumnHeader px={4}>Status</Table.ColumnHeader>
560
+ <Table.ColumnHeader px={4}>Last run</Table.ColumnHeader>
561
+ <Table.ColumnHeader px={4}>Description</Table.ColumnHeader>
477
562
  <Table.ColumnHeader />
478
563
  </Table.Row>
479
564
  </Table.Header>
480
565
  <Table.Body>
481
- {shown.map(({ name, data, last }) => (
566
+ {shown.map(({ name, data, last, count }) => {
567
+ const clusters = last?.clusters?.length ? last.clusters : definitionClusters(data?.definition);
568
+ return (
482
569
  <Table.Row
483
570
  key={name}
484
571
  cursor="pointer"
@@ -490,29 +577,41 @@ export const PipelinesView: React.FC = () => {
490
577
  <RouterLink to={paths.pipelineDetails(name)} onClick={(e) => e.stopPropagation()}>{name}</RouterLink>
491
578
  </Link>
492
579
  </Table.Cell>
493
- <Table.Cell fontSize="xs" color="var(--color-text-muted)" maxW="520px">
494
- <Text lineClamp={2}>{data?.description || '-'}</Text>
495
- </Table.Cell>
496
- <Table.Cell textAlign="end">
580
+ <Table.Cell textAlign="end" px={4}>
497
581
  {data?.definition ? countSteps(data.definition) : '-'}
498
582
  </Table.Cell>
499
- <Table.Cell fontSize="xs" whiteSpace="nowrap">
583
+ <Table.Cell textAlign="end" px={4}>
584
+ {count || <Text as="span" color="var(--color-text-muted)">0</Text>}
585
+ </Table.Cell>
586
+ <Table.Cell px={4} fontSize="xs" fontFamily="mono">
587
+ {/* 12 characters at most, the full list in the tooltip */}
588
+ <Tooltip content={clusters.join(', ')} disabled={clusters.join(', ').length <= 12}>
589
+ <Text truncate maxW="12ch">{clusters.length ? clusters.join(', ') : '-'}</Text>
590
+ </Tooltip>
591
+ </Table.Cell>
592
+ <Table.Cell px={4} whiteSpace="nowrap">
500
593
  {last ? (
501
- <HStack gap={2}>
502
- <Badge colorPalette={runStateColor(last.status, states[last.run_id] ?? undefined)}>
503
- {runLabel(last, states[last.run_id])}
504
- </Badge>
505
- <Tooltip content={formatStarted(last.started)}>
506
- <Text>{formatAgo(last.started)}</Text>
507
- </Tooltip>
508
- </HStack>
594
+ <Badge colorPalette={runStateColor(last.status, states[last.run_id] ?? undefined)}>
595
+ {runLabel(last, states[last.run_id])}
596
+ </Badge>
597
+ ) : <Text fontSize="xs" color="var(--color-text-muted)">-</Text>}
598
+ </Table.Cell>
599
+ <Table.Cell px={4} fontSize="xs" whiteSpace="nowrap">
600
+ {last ? (
601
+ <Tooltip content={formatStarted(last.started)}>
602
+ <Text>{formatAgo(last.started)}</Text>
603
+ </Tooltip>
509
604
  ) : <Text color="var(--color-text-muted)">never</Text>}
510
605
  </Table.Cell>
606
+ <Table.Cell px={4} fontSize="xs" color="var(--color-text-muted)" maxW="520px">
607
+ <Text lineClamp={2}>{data?.description || '-'}</Text>
608
+ </Table.Cell>
511
609
  <Table.Cell textAlign="end">
512
610
  <RunButton name={name} size="xs" onStarted={(run) => navigate(paths.pipelineDetails(name, run.run_id))} />
513
611
  </Table.Cell>
514
612
  </Table.Row>
515
- ))}
613
+ );
614
+ })}
516
615
  </Table.Body>
517
616
  </Table.Root>
518
617
  )}
@@ -543,7 +642,7 @@ export const PipelineDetailsView: React.FC = () => {
543
642
  const [params, setParams] = useSearchParams();
544
643
  const [isEditOpen, setIsEditOpen] = useState(false);
545
644
 
546
- const { data: pipeline, error, isLoading } = usePipelineDefinition(pipelineName);
645
+ const { data: pipeline, error } = usePipelineDefinition(pipelineName);
547
646
  const { data: allRuns = [] } = usePipelineRuns();
548
647
  const runs = runsOf(allRuns, pipelineName, pipeline?.name);
549
648
  const shownRunId = params.get('run') ?? runs[0]?.run_id ?? null;
@@ -554,15 +653,6 @@ export const PipelineDetailsView: React.FC = () => {
554
653
  queryFn: () => getPipelineRunStatus(shownRunId as string),
555
654
  enabled: !!shownRunId,
556
655
  });
557
- const states = useMemo(() => {
558
- const out: Record<string, string> = {};
559
- for (const step of shownRun?.steps ?? []) if (step.step && step.state) out[step.step] = step.state;
560
- return out;
561
- }, [shownRun]);
562
-
563
- // the graph of the run shown is the definition it was started with (the pipeline may have changed since)
564
- const graphDefinition = shownRun?.definition ?? pipeline?.definition;
565
-
566
656
  const selectRun = (runId: string) => setParams({ run: runId });
567
657
  const runStates = useLiveRunStates(runs);
568
658
 
@@ -653,6 +743,7 @@ export const PipelineDetailsView: React.FC = () => {
653
743
  >
654
744
  <HStack gap={2}>
655
745
  <Badge size="sm" colorPalette={runStateColor(run.status, state ?? undefined)}>{runLabel(run, state)}</Badge>
746
+ <AgentBadge tag={run.agent} />
656
747
  <Spacer />
657
748
  <Text fontSize="xs" color="var(--color-text-muted)" title={formatStarted(run.started)}>
658
749
  {formatAgo(run.started)}
@@ -669,31 +760,46 @@ export const PipelineDetailsView: React.FC = () => {
669
760
  </Card.Root>
670
761
 
671
762
  <VStack gap={6} align="stretch" flex={1} minW={0}>
672
- {(graphDefinition ? graphIsDrawable(graphDefinition) : isLoading) && (
763
+ {shownRunId && (
673
764
  <Card.Root bg="var(--color-bg-card)" borderColor="var(--color-border)" borderRadius="lg" boxShadow="sm">
674
- <Card.Header pb={0}>
675
- <HStack>
676
- <Heading size="md" color="var(--color-text)">Graph</Heading>
677
- <Spacer />
678
- {shownRunId && Object.keys(states).length > 0 && (
679
- <Text fontSize="xs" color="var(--color-text-muted)">
680
- {shownRun?.definition ? 'definition and step states' : 'step states'} of run {shownRunId}
681
- </Text>
682
- )}
683
- </HStack>
684
- </Card.Header>
685
765
  <Card.Body>
686
- {graphDefinition
687
- ? <PipelineGraph definition={graphDefinition} states={states} />
688
- : <Text color="var(--color-text-muted)">Loading...</Text>}
766
+ <PipelineRunProgress key={shownRunId} runId={shownRunId} />
689
767
  </Card.Body>
690
768
  </Card.Root>
691
769
  )}
692
-
693
- {shownRunId && (
770
+ {/* never run: the steps it would submit */}
771
+ {!shownRunId && pipeline?.definition && (
694
772
  <Card.Root bg="var(--color-bg-card)" borderColor="var(--color-border)" borderRadius="lg" boxShadow="sm">
773
+ <Card.Header pb={0}>
774
+ <Heading size="md" color="var(--color-text)">Steps</Heading>
775
+ </Card.Header>
695
776
  <Card.Body>
696
- <PipelineRunProgress key={shownRunId} runId={shownRunId} />
777
+ <Table.Root size="sm" variant="outline" css={COMPACT_ROWS}>
778
+ <Table.Header>
779
+ <Table.Row>
780
+ <Table.ColumnHeader>Step</Table.ColumnHeader>
781
+ <Table.ColumnHeader>Profile</Table.ColumnHeader>
782
+ </Table.Row>
783
+ </Table.Header>
784
+ <Table.Body>
785
+ {stepRows(pipeline.definition, []).map((row, index) => {
786
+ const node = row.node;
787
+ return (
788
+ <Table.Row key={index} bg={row.kind === 'group' ? 'var(--color-bg-page)' : undefined}>
789
+ <Table.Cell pl={`${12 + row.depth * 20}px`} whiteSpace="nowrap" fontSize={row.kind === 'group' ? 'sm' : 'xs'} fontFamily={row.kind === 'group' ? undefined : 'mono'}>
790
+ <Text as="span" display="inline-block" minW="1.6em" color="var(--color-text-muted)" fontFamily="mono" fontSize="xs">{row.marker}</Text>
791
+ {node?.type === 'job'
792
+ ? (node.label || node.script)
793
+ : <><Badge size="sm" variant="outline" mr={2} textTransform="capitalize">{node?.type}</Badge><Text as="span" fontWeight="semibold">{node?.name}</Text></>}
794
+ </Table.Cell>
795
+ <Table.Cell fontFamily="mono" fontSize="xs" color="var(--color-text-muted)">
796
+ {node?.type === 'job' ? node.profile : `${countJobs(node!)} steps`}
797
+ </Table.Cell>
798
+ </Table.Row>
799
+ );
800
+ })}
801
+ </Table.Body>
802
+ </Table.Root>
697
803
  </Card.Body>
698
804
  </Card.Root>
699
805
  )}
@@ -32,7 +32,7 @@ const ScheduleDialog: React.FC<ScheduleDialogProps> = ({ onClose, onSave, isSavi
32
32
  <Dialog.Root open onOpenChange={(details) => { if (!details.open) onClose(); }} size="md">
33
33
  <Dialog.Backdrop />
34
34
  <Dialog.Positioner>
35
- <Dialog.Content>
35
+ <Dialog.Content className="bujang-dialog">
36
36
  <Dialog.Header py={3} px={4} borderBottom="1px solid" borderColor="var(--color-border)">
37
37
  <Dialog.Title fontSize="md" color="var(--color-text)">Schedule this job</Dialog.Title>
38
38
  </Dialog.Header>
@@ -176,7 +176,7 @@ const TemplateSyncDialog: React.FC<{
176
176
  >
177
177
  <Dialog.Backdrop />
178
178
  <Dialog.Positioner>
179
- <Dialog.Content maxW="95vw" maxH="95vh" overflow="hidden" display="flex" flexDirection="column">
179
+ <Dialog.Content className="bujang-dialog" maxW="95vw" maxH="95vh" overflow="hidden" display="flex" flexDirection="column">
180
180
  <Dialog.Header>
181
181
  <Dialog.Title>
182
182
  Update "{job?.name}" from template {job?.source_template ? <Code>{job.source_template}</Code> : null}
@@ -348,7 +348,7 @@ const EditScheduledJobDialog: React.FC<{
348
348
  >
349
349
  <Dialog.Backdrop />
350
350
  <Dialog.Positioner>
351
- <Dialog.Content maxW="95vw" maxH="95vh" overflow="hidden" display="flex" flexDirection="column">
351
+ <Dialog.Content className="bujang-dialog" maxW="95vw" maxH="95vh" overflow="hidden" display="flex" flexDirection="column">
352
352
  <Dialog.Header>
353
353
  <Dialog.Title>Edit scheduled job</Dialog.Title>
354
354
  <Dialog.CloseTrigger />
@@ -373,7 +373,7 @@ const SweepDialog: React.FC<SweepDialogProps> = ({
373
373
  <Dialog.Root open={isOpen} onOpenChange={(details) => { if (!details.open) onClose(); }} size="cover">
374
374
  <Dialog.Backdrop />
375
375
  <Dialog.Positioner>
376
- <Dialog.Content maxW="1200px" h="min(760px, 90vh)" display="flex" flexDirection="column">
376
+ <Dialog.Content className="bujang-dialog" maxW="1200px" h="min(760px, 90vh)" display="flex" flexDirection="column">
377
377
  <Dialog.Header py={3} px={4} borderBottom="1px solid" borderColor="var(--color-border)">
378
378
  <Dialog.Title fontSize="md" color="var(--color-text)">Sweep: a pipeline from this job</Dialog.Title>
379
379
  </Dialog.Header>