feat: add independent AI insights to analytics pages
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user