fix and adjust main dashboard ai insight
This commit is contained in:
1 parent
18790ab8f6
commit
68e0d1a0bb
27 files changed
+360
-107
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user