Commit Graph

64 Commits

Author SHA1 Message Date
MarkLo 40b9a02c42 2025-12-20 09:38:17 +08:00
MarkLo a724f2f447 2025-12-20 09:27:15 +08:00
MarkLo 67830031cc 2025-12-20 09:12:54 +08:00
MarkLo d0d0f7a803 2025-12-18 19:14:09 +08:00
MarkLo 7fabb34e01 2025-12-18 19:00:42 +08:00
MarkLo de28c3e129 2025-12-17 18:54:15 +08:00
MarkLo 908dafc733 2025-12-17 18:15:51 +08:00
MarkLo 53f9202ce8 2025-12-17 18:01:45 +08:00
MarkLo 81d77bea80 2025-12-17 17:48:08 +08:00
MarkLo 99fc89eafe 2025-12-17 06:03:17 +08:00
MarkLo 4bbeaa8e18 2025-12-17 05:41:30 +08:00
MarkLo 79ab46dae8 2025-12-17 05:31:06 +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 b47e79f44a 2025-12-15 03:48:13 +08:00
MarkLo 3568ff5b33 2025-12-15 03:38:56 +08:00
MarkLo facd78aac3 2025-12-15 03:17:48 +08:00
MarkLo 1e6237977b 2025-12-15 00:24:40 +08:00
MarkLo 1cacc8d0be 2025-12-14 23:30:41 +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 cf4aaa09b1 feat: auto-save reports + fix PDF download from history
1. Auto-save reports when page closes:
   - Added beforeunload handler to auto-save analysis to history
   - Saves to local IndexedDB and cloud (if authenticated)
   - Prevents data loss if user accidentally closes the page

2. Fix PDF download from history page:
   - Made taskId optional in DownloadReports component
   - Added direct mode: can pass reports data directly
   - Updated backend to support both task-based and direct-data modes
   - History reports now have download PDF option available
2025-12-14 03:21:59 +08:00
MarkLo 11cda2acaf 2025-12-14 02:31:31 +08:00
MarkLo 8ca4072233 fix: add apple-touch-icon.png for iOS Safari compatibility 2025-12-14 02:30:55 +08:00
MarkLo 155454f164 2025-12-14 00:09:06 +08:00
MarkLo a8d9dee437 feat: add manifest.json for PWA and Safari support 2025-12-13 23:34:20 +08:00
MarkLo beb6ea6bdc 2025-12-13 23:26:03 +08:00
MarkLo 9280c71bfc 2025-12-13 22:50:40 +08:00
MarkLo c9f6e6a8d1 2025-12-13 07:14:45 +08:00
MarkLo 8b2dbe9437 2025-12-13 06:50:03 +08:00
MarkLo 7926eb74b4 2025-12-13 06:42:20 +08:00
MarkLo 4eed994fcb 2025-12-13 06:22:59 +08:00
MarkLo bcfa6dab06 2025-12-13 06:13:15 +08:00
MarkLo 5d3751602e 2025-12-13 06:00:19 +08:00
MarkLo 4269fdec26 2025-12-12 19:01:49 +08:00
MarkLo c2b8706bf2 2025-12-07 17:13:57 +08:00
MarkLo 0792830c3d 2025-12-07 16:51:11 +08:00
MarkLo 9ce8fcdcb3 2025-12-07 04:12:25 +08:00
MarkLo 915ee9915c 2025-12-07 03:54:52 +08:00
MarkLo 40f7d0bb92 2025-12-02 23:32:25 +08:00
MarkLo 34dc5b0f87 2025-12-02 23:03:41 +08:00
MarkLo 65c0033cca 2025-12-02 21:59:51 +08:00
MarkLo be75949f65 fix(frontend): unify color scheme and fix K-line chart rendering
- Add gradient styles to workflow Card, Footer, and DownloadReports
- Simplify K-line chart implementation using BarChart with Cell coloring
- Fix TypeScript errors in chart components
- Ensure consistent visual design across all pages
2025-12-01 19:19:13 +08:00