Commit Graph

29 Commits

Author SHA1 Message Date
MarkLo127 de09723454 2026-03-11 16:56:32 +08:00
MarkLo127 7103a0ec90 2026-03-11 16:21:51 +08:00
MarkLo127 d405f39d87 2026-03-11 16:09:38 +08:00
MarkLo127 1f5d59ac7a 2026-03-11 15:32:10 +08:00
MarkLo127 071c4bf5cf 2026-03-10 17:58:38 +08:00
MarkLo127 d0c04d4048 2026-03-10 17:36:15 +08:00
MarkLo127 72d287baae 2026-03-10 17:11:02 +08:00
MarkLo127 92c2a84b83 2026-03-10 17:00:32 +08:00
MarkLo127 6e9524c777 2026-03-10 09:13:00 +08:00
MarkLo127 f3cfe21230 2026-03-10 09:05:46 +08:00
MarkLo127 70d763beca 2026-01-27 15:34:37 +08:00
MarkLo127 d58e80a962 2026-01-27 13:22:52 +08:00
MarkLo 6e48ac3f7a 2025-12-24 04:49:04 +08:00
MarkLo 16e513a921 新增英文語系支援 2025-12-24 01:20:33 +08:00
MarkLo 50ef9df44c 2025-12-23 11:12:03 +08:00
MarkLo 88cafdd140 2025-12-16 20:34:19 +08:00
MarkLo dfb3979517 2025-12-16 20:24:07 +08:00
MarkLo a028da1903 2025-12-16 20:11:33 +08:00
MarkLo b757e0d2c6 2025-12-16 20:02:27 +08:00
MarkLo e7c3d8acfb 2025-12-16 19:44:35 +08:00
MarkLo 8244ba0eee 2025-12-16 19:30:37 +08:00
MarkLo 803885305a 2025-12-16 19:03:58 +08:00
MarkLo 488eeac64c 2025-12-16 18:45:43 +08:00
MarkLo 5569f1097c 2025-12-16 18:31:24 +08:00
MarkLo 47f04a6ff7 2025-12-16 00:45:07 +08:00
MarkLo facd78aac3 2025-12-15 03:17:48 +08:00
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
MarkLo 5d3751602e 2025-12-13 06:00:19 +08:00
MarkLo 4269fdec26 2025-12-12 19:01:49 +08:00