Skip to content

Automate browser based workflows with AI

fix(SKY-11832): remove Inspecting chip from studio screenshots view (#7108)

Celal Zamanoğlub38764df3b6d
diff --git a/skyvern-frontend/src/routes/workflows/studio/BrowserTab.test.tsx b/skyvern-frontend/src/routes/workflows/studio/BrowserTab.test.tsx
index 7a3915400..70c92bd74 100644
--- a/skyvern-frontend/src/routes/workflows/studio/BrowserTab.test.tsx
+++ b/skyvern-frontend/src/routes/workflows/studio/BrowserTab.test.tsx
@@ -316,7 +316,6 @@ describe("BrowserTab view machine", () => {
stepId: "step_1",
actionOrder: 0,
});
- expect(screen.getByText(/Inspecting ·/)).toBeTruthy();
});
it("stays live for an executing block run in the debug session", () => {
diff --git a/skyvern-frontend/src/routes/workflows/studio/BrowserTab.tsx b/skyvern-frontend/src/routes/workflows/studio/BrowserTab.tsx
index fd5bad12b..fe7f21955 100644
--- a/skyvern-frontend/src/routes/workflows/studio/BrowserTab.tsx
+++ b/skyvern-frontend/src/routes/workflows/studio/BrowserTab.tsx
@@ -1,5 +1,5 @@
import { useCallback } from "react";
-import { ClockIcon, CounterClockwiseClockIcon } from "@radix-ui/react-icons";
+import { ClockIcon } from "@radix-ui/react-icons";
import { usePostHog } from "posthog-js/react";
import { StreamStatusPanel } from "@/routes/streaming/StreamDiagnostics";
@@ -40,8 +40,6 @@ export function BrowserTab() {
isPaused,
recordingUrls,
heroSelection,
- heroLabel,
- scrubbing,
} = visuals;
const onRecordingPlay = useCallback(
@@ -127,17 +125,7 @@ export function BrowserTab() {
</div>
)
) : heroSelection ? (
- <>
- <HeroScreenshot selection={heroSelection} running={running} />
- {scrubbing ? (
- <div className="absolute left-3 top-3 flex max-w-[26rem] items-center gap-2 rounded-md bg-black/70 px-3 py-1.5 text-xs text-white backdrop-blur">
- <CounterClockwiseClockIcon className="h-3.5 w-3.5 shrink-0" />
- <span className="truncate">
- Inspecting · <b>{heroLabel}</b>
- </span>
- </div>
- ) : null}
- </>
+ <HeroScreenshot selection={heroSelection} running={running} />
) : (
<div className="absolute inset-0 grid place-items-center text-sm text-muted-foreground">
{visuals.finalized
diff --git a/skyvern-frontend/src/routes/workflows/studio/useRunVisuals.ts b/skyvern-frontend/src/routes/workflows/studio/useRunVisuals.ts
index 3c1c0795f..2aab7eebd 100644
--- a/skyvern-frontend/src/routes/workflows/studio/useRunVisuals.ts
+++ b/skyvern-frontend/src/routes/workflows/studio/useRunVisuals.ts
@@ -20,11 +20,7 @@ import {
resolveScreenshotBlockId,
} from "../workflowRun/workflowTimelineUtils";
import { type HeroSelection } from "./runview/HeroScreenshot";
-import {
- actionLabel,
- buildFilmstrip,
- runOutcomeFromStatus,
-} from "./runProjections";
+import { buildFilmstrip, runOutcomeFromStatus } from "./runProjections";
export type RunVisuals = {
workflowRun: WorkflowRunStatusApiResponseWithWorkflow | undefined;
@@ -40,7 +36,6 @@ export type RunVisuals = {
// ?active= pins a specific step (anything but the live-edge "stream" pin).
scrubbing: boolean;
heroSelection: HeroSelection | null;
- heroLabel: string;
};
function hasScreenshotCandidate(selection: HeroSelection | null): boolean {
@@ -148,14 +143,6 @@ export function useRunVisuals(workflowRunId: string | undefined): RunVisuals {
const hasScreenshots =
hasScreenshotFrame || hasScreenshotCandidate(heroSelection);
- const heroLabel = isAction(activeItem)
- ? actionLabel(activeItem)
- : isWorkflowRunBlock(activeItem)
- ? (activeItem.label ?? "Screenshot")
- : isObserverThought(activeItem)
- ? (activeItem.thought ?? "Thought")
- : "Screenshot";
-
return {
workflowRun,
timeline,
@@ -169,6 +156,5 @@ export function useRunVisuals(workflowRunId: string | undefined): RunVisuals {
hasScreenshots,
scrubbing,
heroSelection,
- heroLabel,
};
}