diff --git a/packages/app/src/features/settings/navigation.tsx b/packages/app/src/features/settings/navigation.tsx index 42329e04..38d9de1d 100644 --- a/packages/app/src/features/settings/navigation.tsx +++ b/packages/app/src/features/settings/navigation.tsx @@ -1,5 +1,5 @@ import type { ReactNode } from "react"; import { Page } from "../../shared/ui"; import { Link } from "@tanstack/react-router"; -export function SettingsNavigation() { const cls = "rounded-lg px-3 py-2 hover:bg-stone-100 dark:hover:bg-slate-800"; const active = { className: "bg-factorize-50 text-factorize-700 dark:bg-factorize-500/10 dark:text-factorize-500" }; return ; } +export function SettingsNavigation() { const cls = "rounded-lg px-3 py-2 hover:bg-stone-100 dark:hover:bg-slate-800"; const active = { className: "bg-factorize-50 text-factorize-700 dark:bg-factorize-500/10 dark:text-factorize-500" }; return ; } export function SettingsLayout({ title, children }: { title: string; children: ReactNode }) { return

{title}

{title === "Integrations" ? "Connect every provider used by your jobs. Stored credentials are write-only." : "Manage access to your software factory."}

{children}
; } diff --git a/packages/app/test/auth.browser.test.mjs b/packages/app/test/auth.browser.test.mjs index 2b2881ae..e7c61e97 100644 --- a/packages/app/test/auth.browser.test.mjs +++ b/packages/app/test/auth.browser.test.mjs @@ -131,6 +131,8 @@ test("authenticated password route shows settings navigation with the active pas await page.goto(origin + "/settings/password"); const settings = page.getByRole("navigation", { name: "Settings" }); await settings.getByRole("link", { name: "Integrations", exact: true }).waitFor(); + assert.equal(await settings.getByRole("link", { name: "Skills library", exact: true }).count(), 0); + await page.getByRole("link", { name: "Skills", exact: true }).waitFor(); const password = settings.getByRole("link", { name: "Change password", exact: true }); await password.waitFor(); assert.equal(await password.getAttribute("aria-current"), "page");