From cb1967a2b54838351f2e19fb4dc13465886e744d Mon Sep 17 00:00:00 2001 From: Toray Altas <6816042+taltas@users.noreply.github.com> Date: Wed, 13 May 2026 03:30:07 +0000 Subject: [PATCH] fix(webview-ui): use zoo docs domain on welcome links --- webview-ui/src/components/welcome/RooTips.tsx | 9 ++++++--- .../src/components/welcome/__tests__/RooTips.spec.tsx | 6 ++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/webview-ui/src/components/welcome/RooTips.tsx b/webview-ui/src/components/welcome/RooTips.tsx index b180a53c261..a52f083d1ca 100644 --- a/webview-ui/src/components/welcome/RooTips.tsx +++ b/webview-ui/src/components/welcome/RooTips.tsx @@ -5,16 +5,19 @@ import { Trans } from "react-i18next" import { buildDocLink } from "@src/utils/docLinks" import { ReplaceAll, Users } from "lucide-react" +const buildWelcomeDocLink = (path: string, campaign: string) => + buildDocLink(path, campaign).replace("https://docs.roocode.com", "https://docs.zoocode.dev") + const tips = [ { icon: , - href: buildDocLink("basic-usage/using-modes", "tips"), + href: buildWelcomeDocLink("basic-usage/using-modes", "tips"), titleKey: "rooTips.customizableModes.title", descriptionKey: "rooTips.customizableModes.description", }, { icon: , - href: buildDocLink("getting-started/connecting-api-provider", "tips"), + href: buildWelcomeDocLink("getting-started/connecting-api-provider", "tips"), titleKey: "rooTips.modelAgnostic.title", descriptionKey: "rooTips.modelAgnostic.description", }, @@ -48,7 +51,7 @@ const RooTips = () => { DocsLink: ( ), }} diff --git a/webview-ui/src/components/welcome/__tests__/RooTips.spec.tsx b/webview-ui/src/components/welcome/__tests__/RooTips.spec.tsx index eb121aaadfe..f8fcbaa821c 100644 --- a/webview-ui/src/components/welcome/__tests__/RooTips.spec.tsx +++ b/webview-ui/src/components/welcome/__tests__/RooTips.spec.tsx @@ -42,5 +42,11 @@ describe("RooTips Component", () => { // Ensure only two tips are present plus the docs link in the Trans component (3 total links) expect(screen.getAllByRole("link")).toHaveLength(3) }) + + test("uses Zoo docs links on the welcome screen", () => { + const links = screen.getAllByRole("link") + + expect(links.every((link) => link.getAttribute("href")?.startsWith("https://docs.zoocode.dev/"))).toBe(true) + }) }) })