From 6fd088af9f77933745c8ecb93dda98fa0938ea4d Mon Sep 17 00:00:00 2001 From: "t3-code[bot]" <269035359+t3-code[bot]@users.noreply.github.com> Date: Wed, 12 Aug 2026 16:07:44 +0530 Subject: [PATCH] fix(web): align mobile onboarding header (#6293) Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com> Co-authored-by: Utkarsh Patil <73941998+UtkarshUsername@users.noreply.github.com> --- .../web/src/routes/-chatIndexTitlebar.test.ts | 20 +++++++++++++++++++ apps/web/src/routes/_chat.index.tsx | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 apps/web/src/routes/-chatIndexTitlebar.test.ts diff --git a/apps/web/src/routes/-chatIndexTitlebar.test.ts b/apps/web/src/routes/-chatIndexTitlebar.test.ts new file mode 100644 index 0000000000000000000000000000000000000000..5e74103a5421320de03d3f70d4a20a42492f31c4 --- /dev/null +++ b/apps/web/src/routes/-chatIndexTitlebar.test.ts @@ -0,0 +1,20 @@ +// @effect-diagnostics nodeBuiltinImport:off - Regression coverage compares the onboarding header with the shared titlebar contract. +import * as NodeFS from "node:fs"; + +import { describe, expect, it } from "vite-plus/test"; + +describe("hosted static onboarding header", () => { + it("uses the shared workspace topbar geometry", () => { + const routeSource = NodeFS.readFileSync(new URL("./_chat.index.tsx", import.meta.url), "utf8"); + const onboardingStart = routeSource.indexOf("function HostedStaticOnboardingState()"); + const onboardingEnd = routeSource.indexOf('', onboardingStart); + + expect(onboardingStart).toBeGreaterThanOrEqual(0); + expect(onboardingEnd).toBeGreaterThan(onboardingStart); + + const onboardingHeader = routeSource.slice(onboardingStart, onboardingEnd); + + expect(onboardingHeader).toContain("workspace-topbar"); + expect(onboardingHeader).not.toMatch(/(?:^|\s)(?:[\w-]+:)*py-/); + }); +}); diff --git a/apps/web/src/routes/_chat.index.tsx b/apps/web/src/routes/_chat.index.tsx index 6e8dbe33ff5f900f31f32dd0d19c7bbf2ea14639..12bbdf666c43b78f5aba9e21adf15b37275e1f14 100644 --- a/apps/web/src/routes/_chat.index.tsx +++ b/apps/web/src/routes/_chat.index.tsx @@ -145,7 +145,7 @@ function HostedStaticOnboardingState() {
-- 2.54.0