TorbatYar/frontend/modules/crm/features/sales/analytics.tsx
Mortezakoohjani e140908034 Ship enterprise CRM frontend with real API wiring and thin app routes.
Connect all CRM pages to the BFF and CRM service, add module docs, and mark CRM available in the SuperApp catalog.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-26 20:58:17 +03:30

30 lines
1.0 KiB
TypeScript

"use client";
import { PageHeader } from "@/components/ds";
import { useTenantId } from "@/hooks/useTenantId";
import { CrmCountsGrid, CrmPageLoader } from "@/modules/crm/pages/shared";
import { CrmBreadcrumbs } from "@/modules/crm/components/CrmBreadcrumbs";
import { CrmScopeNotice } from "@/modules/crm/components/CrmScopeNotice";
export default function AnalyticsPage() {
const { tenantId } = useTenantId();
if (!tenantId) return <CrmPageLoader />;
return (
<div>
<CrmBreadcrumbs items={[{ label: "تحلیل‌ها" }]} />
<PageHeader
title="تحلیل CRM"
description="Dashboard تحلیلی از داده real-time lists — AnalyticsProvider فقط contract."
/>
<CrmCountsGrid tenantId={tenantId} />
<div className="mt-6">
<CrmScopeNotice
title="Analytics engine خارج از CRM"
description="CRM events را publish می‌کند؛ BI/Analytics warehouse در این فاز UI ندارد."
/>
</div>
</div>
);
}