From 8ab19397078cea8380f1e28102aa7eba4af07625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matheus=20Vila=C3=A7a=20de=20Jesus?= Date: Sun, 25 Oct 2026 07:43:35 -0300 Subject: [PATCH 1/2] chore: start #593 From 9169c901c21ab9caf0f51a748289c0a9aa24b080 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matheus=20Vila=C3=A7a=20de=20Jesus?= Date: Sun, 25 Oct 2026 07:44:00 -0300 Subject: [PATCH 2/2] fix: a CLI source under packages/ui/bin selects no docs route (#593) --- packages/ui/tests/route-impact.test.ts | 8 ++++++++ scripts/route-impact.ts | 1 + 2 files changed, 9 insertions(+) diff --git a/packages/ui/tests/route-impact.test.ts b/packages/ui/tests/route-impact.test.ts index c1ab727e..62093847 100644 --- a/packages/ui/tests/route-impact.test.ts +++ b/packages/ui/tests/route-impact.test.ts @@ -55,6 +55,14 @@ describe("route-impact", () => { expect(pick("site/src/templates/_shared/brand-new.ts").all).toBe(true); }); + it("a CLI source under packages/ui/bin renders nothing and selects no route (#593)", () => { + for (const file of ["packages/ui/bin/ca-ui-mcp.ts", "packages/ui/bin/codeatlas-ui.ts"]) { + const s = pick(file); + expect(s.all).toBe(false); + expect(s.routes).toEqual([]); + } + }); + it("selects every route for a component the site shell renders on every page", () => { // Which components the shell renders changes with the site (#556 moved Button out of it): read it // from the map rather than naming one. diff --git a/scripts/route-impact.ts b/scripts/route-impact.ts index 84c9cedd..adea53bb 100644 --- a/scripts/route-impact.ts +++ b/scripts/route-impact.ts @@ -107,6 +107,7 @@ const NO_ROUTE_IMPACT = [ /^(\.github|\.changeset|\.agents|\.vscode|docs)\//, /^(llms\.txt|lefthook\.yml|biome\.json|bunfig\.toml|tsconfig\.json|\.editorconfig|\.gitignore|LICENSE|NOTICE|package\.json)$/, /^scripts\//, + /^packages\/ui\/bin\//, // CLIs (codeatlas-ui, ca-ui-mcp): Node programs no page renders or imports /^packages\/ui\/tests\//, /^packages\/ui\/(vite\.config\.ts|svelte\.config\.js|tsconfig\.json|size-limit\.json|CHANGELOG\.md)$/, /\.(svelte\.test|vrt\.test|ssr\.test)\.ts$|\.test\.svelte$|__screenshots__\//,