refactor(inspect-ui): rename Step.action to Step.next_action

Aligns the SPA type and consumers with the trace schema rename. The
StepSummary.action_kind/action_label labels stay unchanged since they
are derived labels, not the raw next-action.
This commit is contained in:
pj committed 2026-05-31 15:41:25 +05:30
1 parent f237eb2c4d
commit e9c6066ba4
3 files changed
+5 -4

No files matched your search

+2 -2
View File
@@ -111,7 +111,7 @@ function renderTarget(target: string, isTag: boolean) {
} }
function contentTextForStep(step: Step): string { function contentTextForStep(step: Step): string {
const action = step.action; const action = step.next_action;
if (!action) { if (!action) {
return ""; return "";
} }
@@ -140,7 +140,7 @@ function truncateForInline(text: string): string {
} }
function positionTextForStep(step: Step): string | null { function positionTextForStep(step: Step): string | null {
const action = step.action; const action = step.next_action;
if (!action) { if (!action) {
return null; return null;
} }
+1 -1
View File
@@ -127,7 +127,7 @@ export default function RunDetail() {
{ {
id: "screenshot", id: "screenshot",
label: "Screenshot", label: "Screenshot",
content: <Screenshot src={beforeScreenshot} action={currentStep?.action} />, content: <Screenshot src={beforeScreenshot} action={currentStep?.next_action} />,
}, },
{ {
id: "snapshots", id: "snapshots",
+2 -1
View File
@@ -125,7 +125,8 @@ export interface Step {
timestamp: string; timestamp: string;
screen?: string; screen?: string;
snapshots?: Record<string, unknown>; snapshots?: Record<string, unknown>;
action?: Action; // next_action is the action chosen for the next iteration based on observing this step.
next_action?: Action;
exceptions?: Exception[]; exceptions?: Exception[];
violations?: string[]; violations?: string[];
hierarchy?: Hierarchy; hierarchy?: Hierarchy;