9 Commits

Author SHA1 Message Date
patdelphi
9244c48458 fix: resolve TypeScript compilation errors in CompleteQimenAnalysis
- Remove duplicate property names in object literal
- Fix type errors by converting unknown types to numbers
- Build now passes successfully for deployment
2025-08-25 22:34:45 +08:00
patdelphi
b5b1736b88 fix: resolve TypeScript and React Hooks issues
- Fixed React Hooks rules violation in CompleteBaziAnalysis component
- Moved useEffect after input validation to prevent conditional Hook calls
- Added useCallback to fetchAnalysisData function for proper dependency management
- Resolved ESLint warnings about missing dependencies
- Ensured all Hooks are called in the same order on every render
- Improved component structure for better error handling
2025-08-24 13:57:07 +08:00
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
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
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
23fb2023be Fix Koyeb deployment build errors
- Fix TypeScript error in ChineseInput: use Omit to exclude 'size' from InputHTMLAttributes
- Fix CSS import order warning: move typography.css import before @tailwind directives
- Build now completes successfully without errors
- Ready for Koyeb deployment
2025-08-19 22:34:05 +08:00
patdelphi
34eee56fee Fix static file serving by including dist directory
- Remove dist/ from .gitignore to include build artifacts
- Add complete dist directory with built frontend assets
- This ensures static files are available for deployment
- Fixes 404 errors on Koyeb deployment
2025-08-19 19:04:31 +08:00