Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix: align integration CTA styling (#6328)
Aaron Perez42e767ec49ca
diff --git a/skyvern-frontend/src/components/SidebarResourceLinks.tsx b/skyvern-frontend/src/components/SidebarResourceLinks.tsxindex bd7e358c7..553c65d0b 100644--- a/skyvern-frontend/src/components/SidebarResourceLinks.tsx+++ b/skyvern-frontend/src/components/SidebarResourceLinks.tsx@@ -72,7 +72,7 @@ function SidebarResourceLinks({ collapsed }: Props) {{"w-7 justify-center": collapsed,"w-full gap-2.5 px-2": !collapsed,- "border border-cta/30 bg-cta/10 text-cta shadow-[inset_0_1px_0_rgba(255,255,255,0.65)] hover:bg-cta/15 hover:text-cta-hover dark:border-cta/35 dark:bg-cta/15 dark:text-cta-foreground dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.08)] dark:hover:bg-cta/25 dark:hover:text-cta-foreground":+ "border border-sky-500/30 bg-sky-500/10 text-sky-700 shadow-[inset_0_1px_0_rgba(255,255,255,0.65)] hover:bg-sky-500/15 hover:text-sky-800 dark:border-sky-400/35 dark:bg-sky-400/10 dark:text-sky-300 dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.08)] dark:hover:bg-sky-400/20 dark:hover:text-sky-200":link.cta,},)}@@ -81,7 +81,7 @@ function SidebarResourceLinks({ collapsed }: Props) {className={cn("flex size-4 shrink-0 items-center justify-center text-neutral-400 transition-colors duration-100 group-hover:text-neutral-900 dark:text-neutral-500 dark:group-hover:text-neutral-300",{- "text-cta group-hover:text-cta-hover dark:text-cta-foreground/90 dark:group-hover:text-cta-foreground":+ "text-sky-700 group-hover:text-sky-800 dark:text-sky-300 dark:group-hover:text-sky-200":link.cta,},)}diff --git a/skyvern-frontend/src/components/ui/css-vars.test.ts b/skyvern-frontend/src/components/ui/css-vars.test.tsindex 1f7235637..d5b2e3f2b 100644--- a/skyvern-frontend/src/components/ui/css-vars.test.ts+++ b/skyvern-frontend/src/components/ui/css-vars.test.ts@@ -177,3 +177,42 @@ describe("shared semantic tokens are consistent across cloud/eval/src", () => {expectConsistentToken("--cta-hover", ".dark");});});++// The primary CTA must track the DS --primary token, not an independent+// brand value. Locks SKY-10608: --cta aliases --primary so the neutral+// primary is the single source of truth and #606bd2 cannot drift back.+describe("--cta tracks the DS --primary (SKY-10608)", () => {+ function tokenValue(css: string, selector: string, token: string): string {+ const block = blockBetween(css, selector);+ const m = block.match(new RegExp(`${token}:\\s*([^;]+);`));+ return (m?.[1] ?? "").trim();+ }++ describe.each(CSS_FILES)("%s", (file) => {+ const css = load(file);++ it("light-mode --cta equals --primary", () => {+ expect(tokenValue(css, ":root", "--cta")).toBe(+ tokenValue(css, ":root", "--primary"),+ );+ });++ it("dark-mode --cta equals --primary", () => {+ expect(tokenValue(css, ".dark", "--cta")).toBe(+ tokenValue(css, ".dark", "--primary"),+ );+ });++ it("light-mode --cta-foreground equals --primary-foreground", () => {+ expect(tokenValue(css, ":root", "--cta-foreground")).toBe(+ tokenValue(css, ":root", "--primary-foreground"),+ );+ });++ it("dark-mode --cta-foreground equals --primary-foreground", () => {+ expect(tokenValue(css, ".dark", "--cta-foreground")).toBe(+ tokenValue(css, ".dark", "--primary-foreground"),+ );+ });+ });+});diff --git a/skyvern-frontend/src/index.css b/skyvern-frontend/src/index.cssindex be679ed6a..8124d227d 100644--- a/skyvern-frontend/src/index.css+++ b/skyvern-frontend/src/index.css@@ -15,9 +15,9 @@--primary: 0 0% 7%;--primary-foreground: 0 0% 98%;- --cta: 234 52% 56%;- --cta-hover: 234 52% 48%;- --cta-foreground: 0 0% 100%;+ --cta: 0 0% 7%;+ --cta-hover: 0 0% 14%;+ --cta-foreground: 0 0% 98%;--secondary: 0 0% 96%;--secondary-foreground: 0 0% 7%;@@ -66,9 +66,9 @@--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;- --cta: 234 56% 60%;- --cta-hover: 234 56% 52%;- --cta-foreground: 0 0% 100%;+ --cta: 210 40% 98%;+ --cta-hover: 210 40% 92%;+ --cta-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;diff --git a/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx b/skyvern-frontend/src/routes/tasks/create/PromptBox.tsxindex ba06f5690..d83e9c69a 100644--- a/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx+++ b/skyvern-frontend/src/routes/tasks/create/PromptBox.tsx@@ -360,7 +360,7 @@ function PromptBox({ enableCopilotHandoff = false }: PromptBoxProps) {type="button"aria-label="submit-prompt"disabled={!prompt.trim() || isSubmitting}- className="flex items-center justify-center rounded-lg bg-indigo-600 p-2 text-white shadow-sm shadow-indigo-950/15 transition-colors hover:bg-indigo-500 disabled:pointer-events-none disabled:bg-indigo-600/45 disabled:text-white/65 disabled:shadow-none dark:bg-indigo-500 dark:hover:bg-indigo-400 dark:disabled:bg-indigo-500/35"+ className="flex items-center justify-center rounded-lg bg-cta p-2 text-cta-foreground shadow-sm transition-colors hover:bg-cta-hover disabled:pointer-events-none disabled:bg-cta/45 disabled:text-cta-foreground/65 disabled:shadow-none"onClick={() => {submitPrompt({ prompt });}}diff --git a/skyvern-frontend/src/routes/workflows/copilot/NarrativeView.tsx b/skyvern-frontend/src/routes/workflows/copilot/NarrativeView.tsxindex 02ffaf796..fac959ec3 100644--- a/skyvern-frontend/src/routes/workflows/copilot/NarrativeView.tsx+++ b/skyvern-frontend/src/routes/workflows/copilot/NarrativeView.tsx@@ -28,9 +28,9 @@ const PALETTE_CRED: BlockPalette = {glyph: "⌬",};const PALETTE_LOOP: BlockPalette = {- fg: "text-violet-300",- bg: "bg-violet-500/15",- border: "border-violet-400/60",+ fg: "text-sky-300",+ bg: "bg-sky-500/15",+ border: "border-sky-400/60",glyph: "↻",};const PALETTE_ACTION: BlockPalette = {@@ -40,9 +40,9 @@ const PALETTE_ACTION: BlockPalette = {glyph: "✦",};const PALETTE_EXTRACTION: BlockPalette = {- fg: "text-violet-300",- bg: "bg-violet-500/15",- border: "border-violet-400/60",+ fg: "text-sky-300",+ bg: "bg-sky-500/15",+ border: "border-sky-400/60",glyph: "↓",};const PALETTE_TASK: BlockPalette = {@@ -167,7 +167,7 @@ function FSubRow({function ActivityRow({ entry }: { entry: ActivityEntry }) {if (entry.kind === "narration") {return (- <FSubRow glyph="✦" glyphClass="text-violet-300" italic muted>+ <FSubRow glyph="✦" glyphClass="text-sky-300" italic muted>{entry.text}</FSubRow>);@@ -366,7 +366,7 @@ function FDesignRow({ done, blockLabels, activity }: FDesignRowProps) {onClick={() => setUserOpen((v) => !(v === null ? !done : v))}><span- className="flex h-6 w-6 shrink-0 items-center justify-center rounded-full border border-violet-400/60 bg-violet-500/15 text-[11px] font-bold text-violet-300"+ className="flex h-6 w-6 shrink-0 items-center justify-center rounded-full border border-sky-400/60 bg-sky-500/15 text-[11px] font-bold text-sky-300"aria-hidden="true">{done ? "✓" : <Spinner />}@@ -493,7 +493,7 @@ function accentBg(accent: TurnSummary["accent"]): string {return "border-rose-400/60 bg-rose-500/15 text-rose-300";}if (accent === "qa") {- return "border-violet-400/60 bg-violet-500/15 text-violet-300";+ return "border-sky-400/60 bg-sky-500/15 text-sky-300";}return "border-emerald-400/60 bg-emerald-500/15 text-emerald-300";}diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/HttpUtils.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/HttpUtils.tsxindex 12199049d..c71345fb1 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/HttpUtils.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/HttpRequestNode/HttpUtils.tsx@@ -31,7 +31,7 @@ export function MethodBadge({case "DELETE":return "bg-red-100 text-red-800 border-red-300 dark:bg-red-900/20 dark:text-red-400 dark:border-red-800";case "PATCH":- return "bg-purple-100 text-purple-800 border-purple-300 dark:bg-purple-900/20 dark:text-purple-400 dark:border-purple-800";+ return "bg-orange-100 text-orange-800 border-orange-300 dark:bg-orange-900/20 dark:text-orange-400 dark:border-orange-800";case "HEAD":return "bg-gray-100 text-gray-800 border-gray-300 dark:bg-gray-900/20 dark:text-gray-400 dark:border-gray-800";case "OPTIONS":