Skip to content

Automate browser based workflows with AI

fix(SKY-11401): Run-tab header consistency, code pills, summarize tooltip (#6841)

Celal Zamanoğlu78046d5ffdc2
diff --git a/skyvern-frontend/src/routes/workflows/studio/runview/RunHero.tsx b/skyvern-frontend/src/routes/workflows/studio/runview/RunHero.tsx
index 5d62a42f4..3b1abff6c 100644
--- a/skyvern-frontend/src/routes/workflows/studio/runview/RunHero.tsx
+++ b/skyvern-frontend/src/routes/workflows/studio/runview/RunHero.tsx
@@ -128,19 +128,21 @@ export function RunHero({
const headerIcon =
center === "recording" ? (
- <PlayIcon className="h-3 w-3 shrink-0" />
+ <PlayIcon className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />
) : center === "code" ? (
- <CodeIcon className="h-3 w-3 shrink-0" />
+ <CodeIcon className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />
) : (
- <GlobeIcon className="h-3 w-3 shrink-0" />
+ <GlobeIcon className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />
);
return (
<div className="flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden rounded-lg border border-border bg-slate-elevation1">
<div className="flex items-center gap-2 border-b border-border px-3 py-2">
- <div className="flex min-w-0 flex-1 items-center gap-1.5 truncate rounded bg-slate-elevation3 px-2 py-1 text-xs text-muted-foreground">
+ <div className="flex min-w-0 flex-1 items-center gap-1.5">
{headerIcon}
- <span className="truncate">{headerLabel}</span>
+ <span className="min-w-0 flex-1 truncate text-sm font-medium text-foreground">
+ {headerLabel}
+ </span>
</div>
<div className="flex shrink-0 items-center gap-1">
{running ? (
diff --git a/skyvern-frontend/src/routes/workflows/studio/runview/RunOutputsButton.tsx b/skyvern-frontend/src/routes/workflows/studio/runview/RunOutputsButton.tsx
index 72230d189..5fb273429 100644
--- a/skyvern-frontend/src/routes/workflows/studio/runview/RunOutputsButton.tsx
+++ b/skyvern-frontend/src/routes/workflows/studio/runview/RunOutputsButton.tsx
@@ -57,6 +57,7 @@ export function RunOutputsButton({
</PopoverTrigger>
<PopoverContent
align="end"
+ onOpenAutoFocus={(e) => e.preventDefault()}
className="flex w-[30rem] max-w-[90vw] flex-col gap-4"
>
{hasExtracted ? (
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunCode.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunCode.tsx
index ca6f89b2c..7f5cccf62 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunCode.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunCode.tsx
@@ -419,14 +419,16 @@ function WorkflowRunCode(props?: Props) {
"rounded-full border px-2.5 py-1 text-xs transition-colors",
activeChipVersion === usedVersion
? "border-blue-500 bg-blue-500/20 text-blue-300"
- : "border-slate-700 text-slate-400 hover:border-slate-500",
+ : "border-border text-muted-foreground hover:border-muted-foreground",
)}
onClick={() => setSelectedVersion(didGenerate ? usedVersion : null)}
disabled={isEditing}
>
Used: #{usedVersion}
</button>
- {didGenerate && <span className="text-xs text-slate-600">→</span>}
+ {didGenerate && (
+ <span className="text-xs text-muted-foreground">→</span>
+ )}
</>
)}
{generatedVersion != null && (
@@ -443,7 +445,9 @@ function WorkflowRunCode(props?: Props) {
>
Generated: #{generatedVersion}
{usedVersion == null && (
- <span className="ml-1 text-[10px] text-slate-500">(initial)</span>
+ <span className="ml-1 text-[10px] text-muted-foreground">
+ (initial)
+ </span>
)}
</button>
)}
@@ -514,7 +518,7 @@ function WorkflowRunCode(props?: Props) {
value={cacheKeyValue}
onValueChange={(v: string) => setCacheKeyValue(v)}
>
- <SelectTrigger className="h-7 max-w-[15rem] gap-1.5 rounded-full border-slate-700 px-2.5 text-xs [&>span]:text-ellipsis">
+ <SelectTrigger className="h-7 max-w-[15rem] gap-1.5 rounded-full border-border px-2.5 text-xs [&>span]:text-ellipsis">
<SelectValue placeholder="Variant" />
</SelectTrigger>
<SelectContent>