Commit Graph

22 Commits

Author SHA1 Message Date
MarkLo 803885305a 2025-12-16 19:03:58 +08:00
MarkLo 7d5155052b 2025-12-16 00:18:15 +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 9ceff4cf9b feat: add price information cover page to analyst PDF reports
- Page 1 now shows price statistics (growth rate, duration, start/end prices)
- Page 1 also includes last 5 trading days data
- Page 2+ contains the original analyst insights
- Updates pdf_generator.py, download_service.py, and routes.py
2025-12-14 02:45:14 +08:00
MarkLo 8b2dbe9437 2025-12-13 06:50:03 +08:00
MarkLo 7926eb74b4 2025-12-13 06:42:20 +08:00
MarkLo 2a65c7f44d 2025-12-13 06:34:48 +08:00
MarkLo 5d3751602e 2025-12-13 06:00:19 +08:00
MarkLo da7d05ecc9 2025-12-12 05:30:04 +08:00
MarkLo 8d679007bf 2025-11-25 17:03:17 +08:00
MarkLo 63ac0668ac 2025-11-25 02:13:52 +08:00
MarkLo 02b83a6ddd 2025-11-23 07:31:00 +08:00
MarkLo d42c22c5ce 2025-11-21 23:28:52 +08:00
MarkLo e216728b2c 2025-11-21 22:07:04 +08:00
MarkLo 66b2c33c5e 2025-11-21 22:02:22 +08:00
MarkLo f0a67dc66d 2025-11-21 21:56:35 +08:00
MarkLo 4c18ea3833 2025-11-21 21:45:56 +08:00
MarkLo d3ab03ccd9 2025-11-21 13:16:04 +08:00
MarkLo 16ef624551 2025-11-21 12:06:32 +08:00
MarkLo 15a7c53a08 2025-11-20 22:43:47 +08:00
MarkLo 0a203fa475 2025-11-20 22:36:58 +08:00
MarkLo 2872f18b47 2025-11-20 21:56:47 +08:00