Files
Jyotisha/frontend/tests/home-surface.ts
T
Jesse_Chen dc6598d7e4 fix(web): keep the settings dialog one size and move billing into it (BUG-554)
The four account panes now share a fixed frame, chart profiles open as list then detail, and membership lives in the homepage dialog instead of a separate page.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 18:29:51 +08:00

30 lines
1014 B
TypeScript

import { existsSync, readFileSync } from "node:fs";
const homeSurfaceFiles = [
"../src/app/page.tsx",
"../src/lib/home-types.ts",
"../src/components/onboarding-chat-message.tsx",
"../src/lib/home-profile.ts",
"../src/lib/home-cloud-sync.ts",
"../src/components/birth-location-fields.tsx",
"../src/components/profile-fields.tsx",
"../src/components/chart-library-panel.tsx",
"../src/components/chart-profile-form.tsx",
"../src/components/profile-panel.tsx",
"../src/components/starter-home.tsx",
] as const;
const optionalHomeHookFiles = [
"../src/hooks/use-session-management.ts",
"../src/hooks/use-consultation-run.ts",
"../src/hooks/use-profile-onboarding.ts",
"../src/hooks/use-rectification-surface.ts",
] as const;
export const homeSurface = [
...homeSurfaceFiles,
...optionalHomeHookFiles.filter((relativePath) => existsSync(new URL(relativePath, import.meta.url))),
]
.map((relativePath) => readFileSync(new URL(relativePath, import.meta.url), "utf8"))
.join("\n");