Gate 2888 failed ten frontend contracts after the onboarding shell and bootstrap moved out of page.tsx, and the western element colors were missing from @theme. The scans now follow the new files and still require the home page to mount them.
39 lines
1.4 KiB
TypeScript
39 lines
1.4 KiB
TypeScript
import { existsSync, readFileSync } from "node:fs";
|
|
|
|
const homeSurfaceFiles = [
|
|
"../src/app/(app)/page.tsx",
|
|
"../src/lib/home-types.ts",
|
|
"../src/components/onboarding-chat-message.tsx",
|
|
"../src/components/home-onboarding-shell.tsx",
|
|
"../src/components/home-bootstrap-error.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",
|
|
"../src/hooks/use-synastry.ts",
|
|
"../src/hooks/use-session-list.ts",
|
|
"../src/hooks/use-home-shell-registration.ts",
|
|
"../src/lib/session-list-context.tsx",
|
|
"../src/lib/session-list-filter.ts",
|
|
"../src/lib/home-bootstrap-run.ts",
|
|
"../src/lib/consultation-recovery-poll.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");
|