diff --git a/frontend/app/history/page.tsx b/frontend/app/history/page.tsx index 5623243b..2568bbd7 100644 --- a/frontend/app/history/page.tsx +++ b/frontend/app/history/page.tsx @@ -36,6 +36,7 @@ import { } from "@/lib/reports-db"; import { getCloudReports, deleteCloudReport, isCloudSyncEnabled } from "@/lib/user-api"; import { LoginPrompt } from "@/components/auth/login-button"; +import { PendingTaskRecovery } from "@/components/PendingTaskRecovery"; // Market type labels const MARKET_LABELS = { @@ -249,6 +250,9 @@ export default function HistoryPage() {
+ {/* Pending Task Recovery Notice */} ++ {status === 'found' && "發現未完成的分析任務"} + {status === 'recovering' && "正在恢復分析結果..."} + {status === 'success' && "報告恢復成功!"} + {status === 'failed' && "恢復失敗"} +
+ + {status === 'found' && pendingTask && ( ++ 發現 {pendingTask.ticker} 的分析任務 + (開始於 {new Date(pendingTask.startedAt).toLocaleString('zh-TW')}) +
+{message}
+ )} + + {(status === 'success' || status === 'failed') && ( +{message}
+ +