fix and adjust main dashboard ai insight

This commit is contained in:
Alberto-Audrix committed 2026-09-17 14:27:08 +07:00
1 parent 18790ab8f6
commit 68e0d1a0bb
27 files changed
+360 -107

No files matched your search

-5
View File
@@ -218,16 +218,12 @@ export type AIInsight = {
topic: string;
report_type: string;
report_period: string;
source?: InsightSource;
summary?: string;
citations?: InsightCitation[];
created_at: string;
updated_at: string;
};
/** Source label shown in AI Insight UI — never hide local fallback as LLM. */
export type InsightSource = 'generated' | 'cache' | 'local_fallback';
export type InsightReportType = 'page' | 'daily' | 'weekly' | 'end_cycle';
export type InsightTopic =
@@ -306,7 +302,6 @@ export type InsightStructuredReport = {
/** Response from generate / cached insight endpoints. */
export type InsightApiResponse = {
success?: boolean;
source: InsightSource;
insight_text: string;
summary?: string;
insight?: string;