TradingAgents/frontend/app
MarkLo 22f57a8674 feat: recover pending analysis tasks after page close
Added task recovery system that allows users to recover and save
analysis results even if they accidentally close the page:

1. New pending-task.ts utility:
   - Saves task info to localStorage when analysis starts
   - Clears after task completes/fails
   - 24-hour expiry for old tasks

2. PendingTaskRecovery component:
   - Shows on history page if pending task found
   - Polls API for task status
   - Saves result to IndexedDB + cloud upon completion

3. Updated useAnalysis hook:
   - Tracks pending tasks in localStorage
   - Clears on completion/failure

Now users visiting /history after closing the page during analysis
will see a prompt to recover and save their completed report.
2025-12-14 03:55:12 +08:00
..
analysis feat: auto-save reports + fix PDF download from history 2025-12-14 03:21:59 +08:00
api 2025-12-13 06:42:20 +08:00
auth/callback 2025-12-13 06:50:03 +08:00
history feat: recover pending analysis tasks after page close 2025-12-14 03:55:12 +08:00
apple-icon.png 2025-12-13 23:26:03 +08:00
apple-touch-icon.png fix: add apple-touch-icon.png for iOS Safari compatibility 2025-12-14 02:30:55 +08:00
favicon.ico 2025-12-13 23:26:03 +08:00
globals.css 2025-12-13 07:14:45 +08:00
icon-192.png 2025-12-13 23:26:03 +08:00
icon-512.png 2025-12-13 23:26:03 +08:00
icon.png 2025-12-13 23:26:03 +08:00
layout.tsx fix: add apple-touch-icon.png for iOS Safari compatibility 2025-12-14 02:30:55 +08:00
manifest.json feat: add manifest.json for PWA and Safari support 2025-12-13 23:34:20 +08:00
page.tsx 2025-12-07 16:51:11 +08:00