Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
Remove the outputs indicator dot from the Studio v2 Outputs toggle (SKY-12793) (#7640)
Celal Zamanoğluf15056e13eb1
diff --git a/skyvern-frontend/src/routes/workflows/studio/runview/RunPaneHeader.tsx b/skyvern-frontend/src/routes/workflows/studio/runview/RunPaneHeader.tsxindex 228e786b6..b831a8a25 100644--- a/skyvern-frontend/src/routes/workflows/studio/runview/RunPaneHeader.tsx+++ b/skyvern-frontend/src/routes/workflows/studio/runview/RunPaneHeader.tsx@@ -30,7 +30,7 @@ import { useIsGeneratingCode } from "../../editor/hooks/useIsGeneratingCode";import { constructCacheKeyValue } from "../../editor/utils";import { useWorkflowRunWithWorkflowQuery } from "../../hooks/useWorkflowRunWithWorkflowQuery";import { PaneHeaderDivider } from "../PaneHeaderDivider";-import { runHasOutputs, runOutcomeFromStatus } from "../runProjections";+import { runOutcomeFromStatus } from "../runProjections";import { studioPanelId } from "../constants";import { useStudioPaneCompact } from "../StudioShellContext";import { useStudioInspectedRun } from "../useStudioInspectedRun";@@ -97,7 +97,6 @@ export function RunPaneViewToggles() {workflowRun.status === Status.Created ||workflowRun.status === Status.Queued;const showLive = outcome === "running" && !provisioning;- const showOutputsIndicator = runHasOutputs(workflowRun) && view !== "outputs";return (<>@@ -126,20 +125,7 @@ export function RunPaneViewToggles() {onClick={() => setView("outputs")}compact={compact}label="Outputs"- ariaLabel={- showOutputsIndicator ? "Outputs, content available" : undefined- }- icon={- <span className="relative inline-flex">- <FileTextIcon className="h-3 w-3" />- {showOutputsIndicator ? (- <span- aria-hidden- className="absolute -right-0.5 -top-0.5 size-1.5 rounded-full bg-primary"- />- ) : null}- </span>- }+ icon={<FileTextIcon className="h-3 w-3" />}/><ViewToggleactive={view === "code"}diff --git a/skyvern-frontend/src/routes/workflows/studio/runview/RunView.test.tsx b/skyvern-frontend/src/routes/workflows/studio/runview/RunView.test.tsxindex 5e60c427e..017266e15 100644--- a/skyvern-frontend/src/routes/workflows/studio/runview/RunView.test.tsx+++ b/skyvern-frontend/src/routes/workflows/studio/runview/RunView.test.tsx@@ -717,9 +717,7 @@ describe("RunView output signals", () => {const { container } = renderRunView();const scope = within(container);- // This run has outputs, so the toggle's accessible name carries the new-- // output indicator suffix; match by prefix since that's not under test here.- fireEvent.click(scope.getByRole("button", { name: /^Outputs/ }));+ fireEvent.click(scope.getByRole("button", { name: "Outputs" }));expect(scope.getByText("Run errors")).not.toBeNull();expect(scope.getAllByText("E_INVOICE_MISSING").length).toBeGreaterThan(0);@@ -743,8 +741,7 @@ describe("RunView output signals", () => {const { container } = renderRunView();const scope = within(container);- // This run has outputs, so the toggle name carries the new-output suffix.- fireEvent.click(scope.getByRole("button", { name: /^Outputs/ }));+ fireEvent.click(scope.getByRole("button", { name: "Outputs" }));expect(scope.getByText("Extracted information")).not.toBeNull();expect(scope.getByText("Run outputs")).not.toBeNull();@@ -776,50 +773,3 @@ describe("RunView output signals", () => {expect(scope.queryByText("Downloaded files")).toBeNull();});});--describe("RunView output indicator", () => {- test("the Outputs toggle carries a new-output indicator when unviewed output exists", () => {- seedCompletedRun({ errors: [{ error_code: "E1", reasoning: "x" }] });- const { container } = renderRunView();- const scope = within(container);-- expect(- scope.getByRole("button", { name: "Outputs, content available" }),- ).not.toBeNull();- });-- test("the indicator clears once the Outputs view is active", () => {- seedCompletedRun({ errors: [{ error_code: "E1", reasoning: "x" }] });- const { container } = renderRunView();- const scope = within(container);-- fireEvent.click(- scope.getByRole("button", { name: "Outputs, content available" }),- );- expect(scope.getByRole("button", { name: "Outputs" })).not.toBeNull();- expect(- scope.queryByRole("button", { name: "Outputs, content available" }),- ).toBeNull();- });-- test("no indicator when the run has no output signals", () => {- seedCompletedRun();- const { container } = renderRunView();- const scope = within(container);-- expect(scope.getByRole("button", { name: "Outputs" })).not.toBeNull();- expect(- scope.queryByRole("button", { name: "Outputs, content available" }),- ).toBeNull();- });-- test("the indicator survives the header collapsing to icon-only", () => {- seedCompletedRun({ errors: [{ error_code: "E1", reasoning: "x" }] });- const { container } = renderRunView({}, "/", true);- const scope = within(container);-- expect(- scope.getByRole("button", { name: "Outputs, content available" }),- ).not.toBeNull();- });-});