Polish dashboard analytics and campaign layouts

This commit is contained in:
Matthias
2026-07-01 19:50:31 +02:00
parent 5db471fba4
commit f0b2c48073
9 changed files with 302 additions and 81 deletions

View File

@@ -11,6 +11,7 @@ const sidebarPath = join(
const authEntryPath = join(process.cwd(), "components", "auth-entry.tsx");
const layoutPath = join(process.cwd(), "app", "layout.tsx");
const globalsPath = join(process.cwd(), "app", "globals.css");
const themePath = join(process.cwd(), "components", "dashboard-theme.tsx");
test("dashboard sidebar uses PitchFast SaaS branding", async () => {
const source = await readFile(sidebarPath, "utf8");
@@ -31,6 +32,17 @@ test("light theme sidebar remains a light operational rail", async () => {
assert.match(darkBlock, /--sidebar:\s*oklch\(0\.13/);
});
test("desktop dashboard shell keeps sidebar height independent from content", async () => {
const sidebar = await readFile(sidebarPath, "utf8");
const theme = await readFile(themePath, "utf8");
assert.match(theme, /md:items-start/);
assert.match(sidebar, /md:h-dvh/);
assert.match(sidebar, /md:self-start/);
assert.match(sidebar, /md:overflow-y-auto/);
assert.doesNotMatch(sidebar, /md:min-h-dvh/);
});
test("public entry branding also uses PitchFast", async () => {
const authEntry = await readFile(authEntryPath, "utf8");
const layout = await readFile(layoutPath, "utf8");