mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 11:07:10 +00:00
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:
1 parent
f237eb2c4d
commit
e9c6066ba4
3 files changed
+5
-4
No files matched your search
@@ -111,7 +111,7 @@ function renderTarget(target: string, isTag: boolean) {
|
||||
}
|
||||
|
||||
function contentTextForStep(step: Step): string {
|
||||
const action = step.action;
|
||||
const action = step.next_action;
|
||||
if (!action) {
|
||||
return "";
|
||||
}
|
||||
@@ -140,7 +140,7 @@ function truncateForInline(text: string): string {
|
||||
}
|
||||
|
||||
function positionTextForStep(step: Step): string | null {
|
||||
const action = step.action;
|
||||
const action = step.next_action;
|
||||
if (!action) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ export default function RunDetail() {
|
||||
{
|
||||
id: "screenshot",
|
||||
label: "Screenshot",
|
||||
content: <Screenshot src={beforeScreenshot} action={currentStep?.action} />,
|
||||
content: <Screenshot src={beforeScreenshot} action={currentStep?.next_action} />,
|
||||
},
|
||||
{
|
||||
id: "snapshots",
|
||||
|
||||
@@ -125,7 +125,8 @@ export interface Step {
|
||||
timestamp: string;
|
||||
screen?: string;
|
||||
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[];
|
||||
violations?: string[];
|
||||
hierarchy?: Hierarchy;
|
||||
|
||||
Reference in new issue
Block a user