From f26085e36211dc3fd56a5445d6ea2ce22beedbdb Mon Sep 17 00:00:00 2001 From: k4rli Date: Thu, 24 Jul 2025 08:38:30 +0300 Subject: [PATCH] feat(MED-50): add placeholder pages --- .../(dashboard)/order-analysis/page.tsx | 28 +++++++++++++++++++ .../order-health-analysis/page.tsx | 28 +++++++++++++++++++ config/paths.config.ts | 5 ++-- 3 files changed, 58 insertions(+), 3 deletions(-) create mode 100644 app/home/(user)/(dashboard)/order-analysis/page.tsx create mode 100644 app/home/(user)/(dashboard)/order-health-analysis/page.tsx diff --git a/app/home/(user)/(dashboard)/order-analysis/page.tsx b/app/home/(user)/(dashboard)/order-analysis/page.tsx new file mode 100644 index 0000000..e8d28ad --- /dev/null +++ b/app/home/(user)/(dashboard)/order-analysis/page.tsx @@ -0,0 +1,28 @@ +import { createI18nServerInstance } from '~/lib/i18n/i18n.server'; +import { withI18n } from '~/lib/i18n/with-i18n'; +import { PageBody } from '@kit/ui/page'; +import { Trans } from '@kit/ui/trans'; +import { HomeLayoutPageHeader } from '../../_components/home-page-header'; + +export const generateMetadata = async () => { + const { t } = await createI18nServerInstance(); + + return { + title: t('order-analysis:title'), + }; +}; + +async function OrderAnalysisPage() { + return ( + <> + } + description={} + /> + + + + ); +} + +export default withI18n(OrderAnalysisPage); diff --git a/app/home/(user)/(dashboard)/order-health-analysis/page.tsx b/app/home/(user)/(dashboard)/order-health-analysis/page.tsx new file mode 100644 index 0000000..6a8524f --- /dev/null +++ b/app/home/(user)/(dashboard)/order-health-analysis/page.tsx @@ -0,0 +1,28 @@ +import { createI18nServerInstance } from '~/lib/i18n/i18n.server'; +import { withI18n } from '~/lib/i18n/with-i18n'; +import { PageBody } from '@kit/ui/page'; +import { Trans } from '@kit/ui/trans'; +import { HomeLayoutPageHeader } from '../../_components/home-page-header'; + +export const generateMetadata = async () => { + const { t } = await createI18nServerInstance(); + + return { + title: t('order-health-analysis:title'), + }; +}; + +async function OrderHealthAnalysisPage() { + return ( + <> + } + description={} + /> + + + + ); +} + +export default withI18n(OrderHealthAnalysisPage); diff --git a/config/paths.config.ts b/config/paths.config.ts index ca6222d..1a2a2d4 100644 --- a/config/paths.config.ts +++ b/config/paths.config.ts @@ -60,10 +60,9 @@ const pathsConfig = PathsSchema.parse({ booking: '/home/booking', orderAnalysisPackage: '/home/order-analysis-package', myOrders: '/home/order', - // these routes are added as placeholders and can be changed when the pages are added analysisResults: '/home/analysis-results', - orderAnalysis: '/order-analysis', - orderHealthAnalysis: '/order-health-analysis', + orderAnalysis: '/home/order-analysis', + orderHealthAnalysis: '/home/order-health-analysis', }, } satisfies z.infer);