Skip to content

Commit 3b10dbf

Browse files
committed
feat(ai-insights): manual batch generation and generate confirmation dialog
- list: add batch selector modal with + button to pick articles and enqueue insights tasks concurrently - detail panel: wrap "generate insights" action in confirmation dialog that warns about overwriting existing source - fix InsightsByRefResponse article shape to match backend { type, document: { title } } so title renders
1 parent 7a324a1 commit 3b10dbf

5 files changed

Lines changed: 520 additions & 13 deletions

File tree

src/api/ai.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ export interface GroupedInsightsResponse {
9898

9999
export interface InsightsByRefResponse {
100100
insights: AIInsights[]
101-
article: ArticleInfo | null
101+
article: {
102+
type: 'Post' | 'Note' | 'Page' | 'Recently'
103+
document: { title: string }
104+
} | null
102105
}
103106

104107
// AI Translation 类型

0 commit comments

Comments
 (0)