feat: add independent AI insights to analytics pages

This commit is contained in:
2026-08-21 18:51:12 +08:00
parent ad37d0cc31
commit 2bea50a291
6 changed files with 2315 additions and 1800 deletions

View File

@@ -14,6 +14,7 @@
import { parseDashboardFilters } from '$lib/dashboard-filters';
import { formatDate, formatMoney, formatValue } from '$lib/format';
import PageHeader from './PageHeader.svelte';
import AIInsightPanel from './AIInsightPanel.svelte';
const dashboard = useDashboardContext();
const terminalIds = $derived(dashboard.terminals.map((terminal) => terminal.terminalId));
@@ -98,6 +99,11 @@
icon={ArrowUpDownIcon}
/>
<AIInsightPanel
module="transactions"
terminalId={filters.terminal === 'all' ? undefined : filters.terminal}
/>
<Card class="rounded-lg shadow-xs">
<CardContent class="p-0">
{#if loading}