Commit Graph

13 Commits

Author SHA1 Message Date
patdelphi
d1713be5f5 feat: refactor AI interpretation system and fix recordId issues
- Refactored AI interpretation table to use proper 1-to-1 relationship with reading records
- Fixed recordId parameter passing in AnalysisResultDisplay component
- Updated database schema to use reading_id instead of analysis_id
- Removed complex string ID generation logic
- Fixed TypeScript type definitions for all ID fields
- Added database migration scripts for AI interpretation refactoring
- Improved error handling and debugging capabilities
2025-08-23 23:05:13 +08:00
patdelphi
529ae3b8aa Fix TypeScript build errors for Koyeb deployment
- Replace private localApi.request() calls with public methods
- Add aiInterpretation public methods to LocalApiClient
- Fix type mismatches in AnalysisPage and HistoryPage
- Convert string IDs to numbers where required
- Ensure all API calls use proper public interfaces
2025-08-23 18:47:35 +08:00
patdelphi
a3bd20c31e Fix AI interpretation button issues and animation conflicts
- Fix AI interpretation recordId parameter passing for all analysis types
- Resolve double border issue in AI interpretation results display
- Fix animation conflicts causing visual duplication
- Update component interfaces to support recordId parameter
- Add AI interpretation status indicators in history page
- Disable conflicting animations in AI result containers
2025-08-23 12:40:31 +08:00
patdelphi
851a9fd7e6 fix: Fix TypeScript build error in HistoryPage
- Changed ChineseButton variant from 'default' to 'primary' to match component interface
- Build now passes successfully
- Updated dist assets
2025-08-22 16:05:44 +08:00
patdelphi
b0594d5131 feat: Complete AI interpretation system and fix database issues
- Fixed all database connection errors in aiInterpretation.cjs
- Updated better-sqlite3 API calls from callback to sync methods
- Removed AI interpretation buttons from history page
- Added pagination to history page (10 records per page)
- Fixed mobile responsive design for AI interpretation results
- Updated Koyeb deployment configuration to use npm instead of pnpm
- Resolved API limit issues for history records
2025-08-22 15:57:53 +08:00
patdelphi
7910dd4bbf ai enpowered 2025-08-21 22:59:35 +08:00
patdelphi
d2e48bf80d Remove PNG server generation functionality
- Remove PNG server generation option from DownloadButton component
- Remove PNG generation logic from download route
- Delete pngGenerator.cjs and related test files
- Simplify download options to focus on frontend PNG export
- Reduce server complexity and resource usage
2025-08-21 21:20:14 +08:00
patdelphi
1a58ab62b3 feat: 重新开发PDF下载功能
- 使用puppeteer替代html-pdf库实现真正的PDF生成
- 改进Markdown到HTML的转换逻辑,支持表格和列表
- 添加PDF专用CSS样式,优化打印效果
- 修复Buffer到字符串的转换问题
- 优化puppeteer启动参数,提高稳定性
- 支持A4格式,适当边距和分页控制
- 测试验证PDF生成功能正常工作
2025-08-21 18:25:11 +08:00
patdelphi
98faa2031b fix: 修复多个问题并优化用户体验
- 修复ESLint警告:使用useCallback优化React Hooks依赖
- 修复JavaScript初始化错误:调整函数声明顺序
- 优化历史记录查看:添加自动滚动到顶部功能
- 统一网站logo:全部更换为traditional_chinese_gold_red_dragon_symbol.jpg
- 提升代码质量和用户体验
2025-08-20 18:27:08 +08:00
patdelphi
a22b38babb Merge dev branch: Complete UI optimization with Chinese design system
- Implement comprehensive Chinese-style component library
- Add unified typography system with semantic font classes
- Optimize all pages with responsive design and Chinese aesthetics
- Fix button styling and enhance user experience
- Add loading states, empty states, and toast notifications
- Complete 12 Palaces Details optimization
- Establish consistent color scheme and visual hierarchy
2025-08-19 22:27:40 +08:00
patdelphi
3730d66185 重构分析架构,彻底解决重复历史记录问题 2025-08-19 13:58:26 +08:00
patdelphi
d9c57dedb7 feat: 完成易经64卦数据补全和本地化改造
- 完全按照logic/yijing.txt补全所有64卦的完整数据结构
- 包含每卦的卦辞、象传、六爻详解和人生指导
- 重建八字、易经、紫微斗数三个核心分析器
- 实现完整的本地SQLite数据库替代Supabase
- 添加本地Express.js后端服务器
- 更新前端API调用为本地接口
- 实现JWT本地认证系统
- 完善历史记录和用户管理功能
2025-08-18 22:34:39 +08:00
patdelphi
db343a096e Initial commit: AI-powered numerology analysis application 2025-08-18 09:13:18 +08:00