From 137548b74c35c4429ca1df32057595581c435f4f Mon Sep 17 00:00:00 2001 From: fretchen Date: Fri, 16 Oct 2026 23:55:29 +0200 Subject: [PATCH] fix where the agent lives --- website/layouts/LayoutDefault.tsx | 1 + website/pages/index/+Page.tsx | 7 ++++++- website/pages/lab/+Page.tsx | 6 ------ website/test/territory.test.ts | 6 ++++-- website/utils/territory.ts | 8 +++++--- 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/website/layouts/LayoutDefault.tsx b/website/layouts/LayoutDefault.tsx index eeab83bb2..d08ff81df 100644 --- a/website/layouts/LayoutDefault.tsx +++ b/website/layouts/LayoutDefault.tsx @@ -62,6 +62,7 @@ export default function LayoutDefault({ children }: { children: React.ReactNode
Blog + Assistant Quantum Lab diff --git a/website/pages/index/+Page.tsx b/website/pages/index/+Page.tsx index d445e760f..d280c3523 100644 --- a/website/pages/index/+Page.tsx +++ b/website/pages/index/+Page.tsx @@ -38,10 +38,15 @@ export default function Page() { description="Game theory and economics, quantum physics, and what I learned building on the web." link="/blog" /> + diff --git a/website/pages/lab/+Page.tsx b/website/pages/lab/+Page.tsx index f805d2673..b7adeb17c 100644 --- a/website/pages/lab/+Page.tsx +++ b/website/pages/lab/+Page.tsx @@ -19,12 +19,6 @@ const LabPage: React.FC = () => { link="/imagegen" /> - - { expect(territoryFor("/quantum/qml/3")).toBe("voice"); }); - it("gives the lab and everything reachable from it one hue", () => { - // The point of the map: following a card from /lab must not change colour. + it("gives the tool pages one hue — the lab's children and the nav-promoted assistant", () => { + // The point of the map: following a card from /lab must not change colour. The + // assistant moved out of the lab into the nav, but it is a tool page all the + // same, so it keeps the explore hue rather than the writing blue. for (const path of ["/lab", "/imagegen", "/x402", "/assistent", "/agent-onboarding"]) { expect(territoryFor(path), path).toBe("explore"); } diff --git a/website/utils/territory.ts b/website/utils/territory.ts index a6d06e1e0..e2ce1d43a 100644 --- a/website/utils/territory.ts +++ b/website/utils/territory.ts @@ -4,11 +4,13 @@ * Two page territories: * * voice — brand blue writing and navigation: home, blog, quantum notes, articles - * explore — purple the lab: the experiments, and every tool reachable from it + * explore — purple the tool pages: the lab and everything reachable from it, + * plus the assistant, which has its own nav entry * - * Quantum is `voice`, not `explore`: it is writing, the same as the blog. And the lab's + * Quantum is `voice`, not `explore`: it is writing, the same as the blog. The lab's * children (`/imagegen`, `/x402`, …) carry the lab's hue — they *are* its contents, so - * following a card from `/lab` must not change colour. + * following a card from `/lab` must not change colour. The assistant is not a lab + * child anymore, but it is a tool page all the same, so it keeps the same hue. * * Orange is deliberately absent here. It means value exchange — collect, support, tip, pay * — which is a property of *actions*, not of pages, so it lives on buttons only. Using it