feat: dual agency/client approval on calendar and assets

Private RRSS calendar with unified + per-network tabs, comments, and
double-check OK. Assets get review drawer with preview/comments. KPIs
gain date presets, North Star strip, channel matrix and per-channel dash.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
4Ventures
2026-09-23 02:38:44 +02:00
parent 5460d5bd04
commit a1a3c26c30
11 changed files with 1801 additions and 374 deletions

View File

@@ -6,6 +6,7 @@ import { resolveActiveTenant, restGet } from '@/lib/tenant-context';
import {
AdDailyRow,
KpiWeeklyRow,
buildChannelSeries,
buildComparisons,
sumDaily,
sumWeekly,
@@ -70,6 +71,7 @@ export default async function KpisPage() {
: sumWeekly(weekly); // fallback: all available weeks if current month empty
const dailyTotals = sumDaily(daily);
const sparse = weekly.length < 4;
const channelSeries = buildChannelSeries(weekly);
return (
<MetricsDashboard
@@ -80,6 +82,8 @@ export default async function KpisPage() {
deltas={comparisons.deltas}
daily={dailyTotals}
sparse={sparse}
weeklyRows={weekly}
channelPoints={channelSeries.points}
/>
);
}