@haiiro/docuflow 0.0.19 → 0.0.20

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.
@@ -17,6 +17,7 @@ import {
17
17
  formatDate,
18
18
  formatDateTime,
19
19
  formatMemberName,
20
+ formatRunStarter,
20
21
  RUN_STATUS_COLORS,
21
22
  RUN_STATUS_LABELS,
22
23
  STEP_TYPE_LABELS,
@@ -203,7 +204,7 @@ const ProcessStages = ({ process, members }: { process: DocflowProcess; members:
203
204
  );
204
205
  };
205
206
 
206
- const RecentRuns = ({ workflowId }: { workflowId: string }) => {
207
+ const RecentRuns = ({ workflowId, members }: { workflowId: string; members: WorkspaceMember[] }) => {
207
208
  const theme = useTheme();
208
209
  const { data: runs, loading } = useAsync(
209
210
  async () =>
@@ -250,7 +251,7 @@ const RecentRuns = ({ workflowId }: { workflowId: string }) => {
250
251
  >
251
252
  <span style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>
252
253
  {formatDateTime(run.startedAt ?? run.createdAt)}
253
- {run.createdBy?.name ? ` · ${run.createdBy.name}` : ''}
254
+ {formatRunStarter(run, members) ? ` · ${formatRunStarter(run, members)}` : ''}
254
255
  </span>
255
256
  <StatusChip color={RUN_STATUS_COLORS[run.status ?? ''] ?? 'gray'}>
256
257
  {RUN_STATUS_LABELS[run.status ?? ''] ?? run.status}
@@ -429,7 +430,7 @@ const ProcessPanel = ({
429
430
  </section>
430
431
  <section style={{ display: 'flex', flexDirection: 'column', gap: theme.spacing[1] }}>
431
432
  <SectionTitle>Последние запуски</SectionTitle>
432
- <RecentRuns workflowId={process.workflowId} />
433
+ <RecentRuns workflowId={process.workflowId} members={members} />
433
434
  </section>
434
435
  </div>
435
436
  );