Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix(SKY-10405): update n8n integration logo (#6239)
Aaron Perez51fa23420433
diff --git a/skyvern-frontend/src/components/icons/N8nIcon.test.tsx b/skyvern-frontend/src/components/icons/N8nIcon.test.tsxnew file mode 100644index 000000000..08c355694--- /dev/null+++ b/skyvern-frontend/src/components/icons/N8nIcon.test.tsx@@ -0,0 +1,15 @@+import { render } from "@testing-library/react";+import { describe, expect, it } from "vitest";++import { N8nIcon } from "./N8nIcon";++describe("N8nIcon", () => {+ it("renders the official n8n pink workflow mark without the old placeholder tile", () => {+ const { container } = render(<N8nIcon className="size-6" />);++ const svg = container.querySelector("svg");+ expect(svg?.getAttribute("viewBox")).toBe("0 0 304 160");+ expect(svg?.querySelector('path[fill="#EA4B71"]')).toBeTruthy();+ expect(svg?.querySelector('rect[fill="#101330"]')).toBeNull();+ });+});diff --git a/skyvern-frontend/src/components/icons/N8nIcon.tsx b/skyvern-frontend/src/components/icons/N8nIcon.tsxindex ecaf6937e..2b70899ca 100644--- a/skyvern-frontend/src/components/icons/N8nIcon.tsx+++ b/skyvern-frontend/src/components/icons/N8nIcon.tsx@@ -2,27 +2,23 @@ type Props = {className?: string;};-// Placeholder icon - replace with official asset before setting status to live.function N8nIcon({ className }: Props) {return (<svg- width="24"- height="24"- viewBox="0 0 24 24"+ width="304"+ height="160"+ viewBox="0 0 304 160"fill="none"xmlns="http://www.w3.org/2000/svg"className={className}+ aria-hidden="true"+ focusable="false">- <rect width="24" height="24" rx="5" fill="#101330" />- <circle cx="6.25" cy="12" r="1.75" fill="#EA4B71" />- <circle cx="12" cy="7.5" r="1.75" fill="#EA4B71" />- <circle cx="12" cy="16.5" r="1.75" fill="#EA4B71" />- <circle cx="17.75" cy="12" r="1.75" fill="#EA4B71" /><path- d="M6.25 12L12 7.5M6.25 12L12 16.5M12 7.5L17.75 12M12 16.5L17.75 12"- stroke="#EA4B71"- strokeWidth="1.25"- strokeLinecap="round"+ fillRule="evenodd"+ clipRule="evenodd"+ d="M272 64C257.089 64 244.561 53.8018 241.008 40H204.331C196.51 40 189.835 45.6546 188.549 53.3696L187.234 61.2608C185.985 68.7531 182.195 75.2738 176.835 80C182.195 84.7262 185.985 91.2469 187.234 98.7392L188.549 106.63C189.835 114.345 196.51 120 204.331 120H209.008C212.561 106.198 225.089 96 240 96C257.673 96 272 110.327 272 128C272 145.673 257.673 160 240 160C225.089 160 212.56 149.802 209.008 136H204.331C188.688 136 175.338 124.691 172.766 109.261L171.451 101.37C170.165 93.6546 163.49 88 155.669 88H142.992C139.44 101.802 126.911 112 112 112C97.0893 112 84.5605 101.802 81.0081 88H62.9919C59.4395 101.802 46.9107 112 32 112C14.3269 112 0 97.6731 0 80C0 62.3269 14.3269 48 32 48C46.9107 48 59.4395 58.1982 62.9919 72H81.0081C84.5605 58.1982 97.0893 48 112 48C126.911 48 139.44 58.1982 142.992 72H155.669C163.49 72 170.165 66.3454 171.451 58.6304L172.766 50.7392C175.338 35.3092 188.688 24 204.331 24L241.008 24C244.56 10.1982 257.089 0 272 0C289.673 0 304 14.3269 304 32C304 49.6731 289.673 64 272 64ZM272 48C280.837 48 288 40.8366 288 32C288 23.1634 280.837 16 272 16C263.163 16 256 23.1634 256 32C256 40.8366 263.163 48 272 48ZM32 96C40.8366 96 48 88.8366 48 80C48 71.1634 40.8366 64 32 64C23.1634 64 16 71.1634 16 80C16 88.8366 23.1634 96 32 96ZM128 80C128 88.8366 120.837 96 112 96C103.163 96 96 88.8366 96 80C96 71.1634 103.163 64 112 64C120.837 64 128 71.1634 128 80ZM256 128C256 136.837 248.837 144 240 144C231.163 144 224 136.837 224 128C224 119.163 231.163 112 240 112C248.837 112 256 119.163 256 128Z"+ fill="#EA4B71"/></svg>);diff --git a/skyvern-frontend/src/routes/root/SideNav.test.tsx b/skyvern-frontend/src/routes/root/SideNav.test.tsxindex 563ae27bd..15a3bdaae 100644--- a/skyvern-frontend/src/routes/root/SideNav.test.tsx+++ b/skyvern-frontend/src/routes/root/SideNav.test.tsx@@ -170,4 +170,24 @@ describe("SideNav", () => {).toBeTruthy();expect(screen.getByRole("menuitem", { name: "Agents" })).toBeTruthy();});++ it("uses the n8n logo in the collapsed integrations popout", async () => {+ useSidebarStore.setState({ collapsed: true });++ render(+ <MemoryRouter>+ <SideNav />+ </MemoryRouter>,+ );++ fireEvent.pointerDown(screen.getByTitle("Integrations"), {+ button: 0,+ ctrlKey: false,+ });++ const n8nMenuItem = await screen.findByRole("menuitem", { name: "n8n" });+ expect(+ n8nMenuItem.querySelector('svg[viewBox="0 0 304 160"]'),+ ).toBeTruthy();+ });});diff --git a/skyvern-frontend/src/routes/root/SideNav.tsx b/skyvern-frontend/src/routes/root/SideNav.tsxindex 6b679cfd6..7ced2702e 100644--- a/skyvern-frontend/src/routes/root/SideNav.tsx+++ b/skyvern-frontend/src/routes/root/SideNav.tsx@@ -1,7 +1,6 @@import {BookmarkIcon,CalendarIcon,- Component1Icon,CounterClockwiseClockIcon,DesktopIcon,DotsHorizontalIcon,@@ -26,6 +25,7 @@ import { HospitalIcon } from "@/components/icons/HospitalIcon";import { InboxIcon } from "@/components/icons/InboxIcon";import { KeyIcon } from "@/components/icons/KeyIcon";import { LogisticsIcon } from "@/components/icons/LogisticsIcon";+import { N8nIcon } from "@/components/icons/N8nIcon";import { ReceiptIcon } from "@/components/icons/ReceiptIcon";import { RobotIcon } from "@/components/icons/RobotIcon";import {@@ -205,7 +205,7 @@ function SideNav() {{label: "n8n",to: "/integrations?query=n8n",- icon: <Component1Icon className="size-3.5" />,+ icon: <N8nIcon className="size-3.5" />,},{label: "More",