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 { quotationByIdOptions } from '@/features/crm/api/queries';
|
||||
import { QuotationDetailPage } from '@/features/crm/components/quotation-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 QuotationDetailRoute({ params }: PageProps) {
|
||||
const { id } = await params;
|
||||
const queryClient = getQueryClient();
|
||||
void queryClient.prefetchQuery(quotationByIdOptions(id));
|
||||
|
||||
return (
|
||||
<PageContainer
|
||||
pageTitle='Quotation Detail'
|
||||
pageDescription='Header, status, revision, customer roles, item table, approval timeline, and preview panel'
|
||||
pageDescription={`Production detail route placeholder for quotation ${id}.`}
|
||||
>
|
||||
<HydrationBoundary state={dehydrate(queryClient)}>
|
||||
<QuotationDetailPage id={id} />
|
||||
</HydrationBoundary>
|
||||
<CrmProductionPlaceholder
|
||||
title='Quotation detail pending'
|
||||
summary='This production detail route is isolated from the legacy quotation preview and approval mock flow.'
|
||||
foundationItems={[
|
||||
'Document sequence helper',
|
||||
'Branch scope validation',
|
||||
'Master option lookups',
|
||||
'Audit trail foundation'
|
||||
]}
|
||||
nextStep='Implement production quotation detail with real approval, preview, and related-entity data.'
|
||||
demoHref={`/dashboard/crm-demo/quotations/${id}`}
|
||||
/>
|
||||
</PageContainer>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user