Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
feat(SKY-11392): action-detail card heading redesign (two-tier) (#6948)
Aaron Perez6b5787753aa5
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/blockDetail/BlockDetailHeader.test.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/blockDetail/BlockDetailHeader.test.tsxindex bf77446c2..aa85fab8a 100644--- a/skyvern-frontend/src/routes/workflows/workflowRun/blockDetail/BlockDetailHeader.test.tsx+++ b/skyvern-frontend/src/routes/workflows/workflowRun/blockDetail/BlockDetailHeader.test.tsx@@ -144,3 +144,37 @@ describe("BlockDetailHeader iterated-value chip", () => {expect(screen.getByText("alpha")).toBeDefined();});});++describe("BlockDetailHeader two-tier hierarchy", () => {+ it("keeps title + status in the primary row and demotes the id/label to the meta row", () => {+ const block = buildBlock({+ workflow_run_block_id: "wrb_531711929286793050",+ block_type: "http_request",+ label: "signin",+ status: Status.Completed,+ });++ const { container } = render(<BlockDetailHeader block={block} />);++ const primary = container.querySelector(+ '[data-slot="block-detail-header-primary"]',+ );+ const meta = container.querySelector(+ '[data-slot="block-detail-header-meta"]',+ );+ expect(primary).not.toBeNull();+ expect(meta).not.toBeNull();++ const primaryText = primary?.textContent ?? "";+ const metaText = meta?.textContent ?? "";++ // Primary row is the glance: identity + outcome only.+ expect(primaryText).toContain("HTTP Request");+ expect(primaryText).toContain("Completed");++ // The UUID is debug detail — demoted out of the primary row into meta.+ expect(primaryText).not.toContain("wrb_531711929286793050");+ expect(metaText).toContain("wrb_531711929286793050");+ expect(metaText).toContain("signin");+ });+});diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/blockDetail/shared.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/blockDetail/shared.tsxindex 0f478f724..66f75f776 100644--- a/skyvern-frontend/src/routes/workflows/workflowRun/blockDetail/shared.tsx+++ b/skyvern-frontend/src/routes/workflows/workflowRun/blockDetail/shared.tsx@@ -141,41 +141,48 @@ function BlockDetailHeader({return (<div className="border-b border-slate-700 bg-slate-elevation1">- <div className="flex items-center gap-2 px-3 py-2 text-xs">+ <div+ data-slot="block-detail-header-primary"+ className="flex items-center gap-2 px-3 py-2"+ ><WorkflowBlockIconworkflowBlockType={block.block_type}- className="size-3.5 shrink-0 text-slate-300"+ className="size-4 shrink-0 text-slate-300"/>- <span className="font-medium text-slate-200">+ <span className="min-w-0 truncate text-sm font-semibold text-slate-100">{workflowBlockTitle[block.block_type]}</span>+ <span className="ml-auto flex shrink-0 items-center gap-2">+ {duration && (+ <span className="text-[10px] tabular-nums text-slate-500">+ {duration}+ </span>+ )}+ <StatusPill status={block.status} />+ </span>+ </div>+ <div+ data-slot="block-detail-header-meta"+ className="flex min-w-0 items-center gap-1.5 px-3 pb-2 text-[11px] text-slate-500"+ >{block.label && (<>- <span className="shrink-0 text-slate-400">·</span><TruncatedWithTooltipfull={block.label}- className="text-slate-400"+ className="max-w-[12rem] text-slate-400"/>+ <span className="shrink-0 text-slate-600">·</span></>)}- <span className="shrink-0 text-slate-500">·</span><TruncatedWithTooltipfull={block.workflow_run_block_id}- className="max-w-[9rem] font-mono text-[10px] text-slate-500"+ className="max-w-[11rem] font-mono text-[10px] text-slate-500"/>{iterationLabel && (<span className="shrink-0 rounded bg-slate-800 px-1.5 py-0.5 text-[10px] font-medium text-slate-300">{iterationLabel}</span>)}- <span className="ml-auto flex shrink-0 items-center gap-2">- {duration && (- <span className="text-[10px] tabular-nums text-slate-500">- {duration}- </span>- )}- <StatusPill status={block.status} />- </span></div>{currentValuePreview && (<div className="flex min-w-0 items-center gap-2 border-t border-slate-700/50 px-3 py-1.5 text-[11px] duration-200 animate-in fade-in slide-in-from-top-1">@@ -209,16 +216,18 @@ function BlockDetailHeader({function BlockDetailHeaderSkeleton() {return (<div className="border-b border-slate-700 bg-slate-elevation1">- <div className="flex items-center gap-2 px-3 py-2 text-xs">- <Skeleton className="size-3.5 shrink-0 rounded" />- <Skeleton className="h-3.5 w-16 rounded" />- <span className="shrink-0 text-slate-400">·</span>- <Skeleton className="h-3.5 w-24 rounded" />+ <div className="flex items-center gap-2 px-3 py-2">+ <Skeleton className="size-4 shrink-0 rounded" />+ <Skeleton className="h-4 w-24 rounded" /><span className="ml-auto flex shrink-0 items-center gap-2"><Skeleton className="h-3 w-10 rounded" /><Skeleton className="h-5 w-20 rounded" /></span></div>+ <div className="flex items-center gap-1.5 px-3 pb-2">+ <Skeleton className="h-3 w-16 rounded" />+ <Skeleton className="h-3 w-28 rounded" />+ </div></div>);}