mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 20:17:09 +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 {
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user