fix(housekeeping): harden people account workflows

This commit is contained in:
Simo committed 2026-08-29 13:13:04 +02:00
1 parent e1b31ff773
commit 25b76437ff
41 files changed
+2657 -838

No files matched your search

@@ -0,0 +1,13 @@
import { HousekeepingPageState } from "@/features/housekeeping/foundation/page/housekeeping-page-state";
export default function HousekeepingPreviewLoading() {
return (
<div data-housekeeping-state="loading">
<HousekeepingPageState
state="loading"
title="Loading housekeeping workflow"
description="Fetching the latest authorized data."
/>
</div>
);
}
@@ -8,8 +8,10 @@ import { HOUSEKEEPING_ROUTE_HANDLERS } from "@/features/housekeeping/route-handl
export default async function HousekeepingPreviewRoutePage({
params,
searchParams,
}: {
params: Promise<{ domain: string; segments?: readonly string[] }>;
searchParams?: Promise<Record<string, string | string[] | undefined>>;
}) {
const { domain, segments = [] } = await params;
const registry = createHousekeepingRegistry(HOUSEKEEPING_MANIFESTS);
@@ -39,5 +41,9 @@ export default async function HousekeepingPreviewRoutePage({
notFound();
}
return handler.render({ context, match });
return handler.render({
context,
match,
...(searchParams ? { searchParams: await searchParams } : {}),
});
}