feat(runs): add step title column, step descriptions, and snippet logging

This commit is contained in:
2026-04-10 14:56:15 +03:00
parent 607abcafc5
commit fd655c3253
2 changed files with 10 additions and 4 deletions
+4 -4
View File
@@ -115,10 +115,10 @@ export function RunDetailPage() {
const stepColumns: TableColumn<ScenarioRunStep>[] = [ const stepColumns: TableColumn<ScenarioRunStep>[] = [
{ key: 'order', header: t('runs.step_order'), render: (s) => s.order, width: 50 }, { key: 'order', header: t('runs.step_order'), render: (s) => s.order, width: 50 },
{ {
key: 'type', key: 'title',
header: t('runs.step_type'), header: t('runs.step_title'),
width: 80, width: 220,
render: (s) => <Badge variant="neutral">{s.scenarioStep?.type ?? ''}</Badge>, render: (s) => s.scenarioStep?.title ?? <span className={styles.muted}></span>,
}, },
{ {
key: 'status', key: 'status',
@@ -286,6 +286,8 @@ export class ScenarioSchedulerService {
); );
const vr = this.parseValidateResult(result); const vr = this.parseValidateResult(result);
if (!vr.success) throw new Error(vr.description ?? "Validation failed"); if (!vr.success) throw new Error(vr.description ?? "Validation failed");
await this.passStepRun(stepRun, vr.description ?? null);
return;
} }
await this.passStepRun(stepRun, null); await this.passStepRun(stepRun, null);
@@ -334,6 +336,8 @@ export class ScenarioSchedulerService {
); );
const vr = this.parseValidateResult(result); const vr = this.parseValidateResult(result);
if (!vr.success) throw new Error(vr.description ?? "Validation failed"); if (!vr.success) throw new Error(vr.description ?? "Validation failed");
await this.passStepRun(stepRun, vr.description ?? null, execOutput);
return;
} }
await this.passStepRun(stepRun, null, execOutput); await this.passStepRun(stepRun, null, execOutput);
@@ -375,6 +379,8 @@ export class ScenarioSchedulerService {
); );
const vr = this.parseValidateResult(result); const vr = this.parseValidateResult(result);
if (!vr.success) throw new Error(vr.description ?? "Validation failed"); if (!vr.success) throw new Error(vr.description ?? "Validation failed");
await this.passStepRun(stepRun, vr.description ?? null);
return;
} }
await this.passStepRun(stepRun, null); await this.passStepRun(stepRun, null);