chore: 移除上传导图 + 优化复习引导提示

- 删除 ReviewMindMap 接口及 upload/get/upsert API
- 删除 ReviewDetail 上传 UI 和思维导图预览
- 回忆复习按钮移至内容元信息区
- 引导提示改为渐进式:折叠时引导展开,展开后引导点击节点
- 提示语用告知语气,无表情符号

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
cat-win
2026-07-08 23:56:03 +08:00
co-authored by Claude Fable 5
parent 1ea15db504
commit e65b800e01
4 changed files with 31 additions and 299 deletions
-42
View File
@@ -23,25 +23,6 @@ export interface ReviewTaskStats {
avgEffectivenessRatio: number;
}
export interface ReviewMindMap {
id: number;
taskNum: string;
title: string;
content: string;
contentFormat: "TEXT" | "MERMAID" | "JSON";
sourceType?: "MANUAL" | "FILE";
fileName?: string;
filePath?: string;
fileFormat?: "XMIND" | "MARKDOWN" | "OPML" | "FREEMIND" | "TEXT";
parsedContent?: string;
parseStatus?: "SUCCESS" | "FAILED";
parseError?: string;
summary?: string;
lastParsedTime?: string;
createdTime?: string;
lastModifiedTime?: string;
}
export const getReviewFeed = (limit: number = 30, mode: "recent" | "random" | "smart" = "recent") => {
return request.get("/review/feed", { limit, mode });
};
@@ -65,26 +46,3 @@ export const getFragmentDetail = (id: number) => {
export const getTaskReview = (taskNum: string) => {
return request.get(`/review/task/${taskNum}`);
};
export const getReviewMindMap = (taskNum: string) => {
return request.get(`/review/mind-map/${taskNum}`);
};
export const upsertReviewMindMap = (
taskNum: string,
payload: {
title: string;
content: string;
contentFormat?: ReviewMindMap["contentFormat"];
},
) => {
return request.put(`/review/mind-map/${taskNum}`, payload);
};
export const uploadReviewMindMap = (taskNum: string, file: File) => {
const formData = new FormData();
formData.append("file", file);
return request.post(`/review/mind-map/${taskNum}/upload`, formData, {
headers: { "Content-Type": "multipart/form-data" },
});
};