task-b
task-b.1 complere
This commit is contained in:
@@ -1,24 +1,30 @@
|
||||
import { HydrationBoundary, dehydrate } from '@tanstack/react-query';
|
||||
import PageContainer from '@/components/layout/page-container';
|
||||
import { enquiryByIdOptions } from '@/features/crm/api/queries';
|
||||
import { EnquiryDetailPage } from '@/features/crm/components/enquiry-detail';
|
||||
import { getQueryClient } from '@/lib/query-client';
|
||||
import { CrmProductionPlaceholder } from '@/features/foundation/components/crm-production-placeholder';
|
||||
|
||||
type PageProps = { params: Promise<{ id: string }> };
|
||||
type PageProps = {
|
||||
params: Promise<{ id: string }>;
|
||||
};
|
||||
|
||||
export default async function EnquiryDetailRoute({ params }: PageProps) {
|
||||
const { id } = await params;
|
||||
const queryClient = getQueryClient();
|
||||
void queryClient.prefetchQuery(enquiryByIdOptions(id));
|
||||
|
||||
return (
|
||||
<PageContainer
|
||||
pageTitle='Enquiry Detail'
|
||||
pageDescription='Header summary, customer/contact, requirement summary, timeline, and related quotations'
|
||||
pageDescription={`Production detail route placeholder for enquiry ${id}.`}
|
||||
>
|
||||
<HydrationBoundary state={dehydrate(queryClient)}>
|
||||
<EnquiryDetailPage id={id} />
|
||||
</HydrationBoundary>
|
||||
<CrmProductionPlaceholder
|
||||
title='Enquiry detail pending'
|
||||
summary='This route is reserved for the production enquiry detail page and no longer imports the demo in-memory service.'
|
||||
foundationItems={[
|
||||
'Organization context',
|
||||
'Branch validation',
|
||||
'Master option lookups',
|
||||
'Audit logging'
|
||||
]}
|
||||
nextStep='Implement enquiry detail on top of persisted enquiry, activity, and relationship data.'
|
||||
demoHref={`/dashboard/crm-demo/enquiries/${id}`}
|
||||
/>
|
||||
</PageContainer>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user