feat(runs): add step title column, step descriptions, and snippet logging
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user