Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
'use client';
|
|
|
|
|
|
|
|
|
|
import { useRealtimeInvalidation } from '@/hooks/use-realtime-invalidation';
|
2026-04-28 12:09:59 +02:00
|
|
|
import { PageHeader } from '@/components/shared/page-header';
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
import { KpiCardsWithBoundary } from './kpi-cards';
|
|
|
|
|
import { PipelineChart } from './pipeline-chart';
|
|
|
|
|
import { RevenueForecast } from './revenue-forecast';
|
|
|
|
|
import { ActivityFeed } from './activity-feed';
|
|
|
|
|
|
|
|
|
|
export function DashboardShell() {
|
|
|
|
|
useRealtimeInvalidation({
|
2026-04-28 12:09:59 +02:00
|
|
|
'interest:stageChanged': [
|
|
|
|
|
['dashboard', 'pipeline'],
|
|
|
|
|
['dashboard', 'forecast'],
|
|
|
|
|
],
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
'client:created': [['dashboard', 'kpis']],
|
2026-04-28 12:09:59 +02:00
|
|
|
'berth:statusChanged': [
|
|
|
|
|
['dashboard', 'kpis'],
|
|
|
|
|
['dashboard', 'forecast'],
|
|
|
|
|
],
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="space-y-6">
|
2026-04-28 12:09:59 +02:00
|
|
|
<PageHeader
|
|
|
|
|
title="Dashboard"
|
|
|
|
|
eyebrow="Overview"
|
|
|
|
|
description="Live snapshot of your marina activity"
|
|
|
|
|
kpiLine={<span>Last 30 days</span>}
|
|
|
|
|
variant="gradient"
|
|
|
|
|
/>
|
|
|
|
|
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
{/* Row 1: KPI cards */}
|
|
|
|
|
<div className="grid gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-4">
|
|
|
|
|
<KpiCardsWithBoundary />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Row 2: Pipeline chart + Revenue forecast */}
|
|
|
|
|
<div className="grid gap-4 grid-cols-1 lg:grid-cols-3">
|
|
|
|
|
<div className="lg:col-span-2">
|
|
|
|
|
<PipelineChart />
|
|
|
|
|
</div>
|
|
|
|
|
<div className="lg:col-span-1">
|
|
|
|
|
<RevenueForecast />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Row 3: Activity feed */}
|
|
|
|
|
<ActivityFeed />
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|