Commit Graph

13 Commits

Author SHA1 Message Date
Stefan af2ea1c39e fix: Resolve build errors after merging feature branches
- Fix TypeScript errors in analysis page with non-null assertions
- Fix Chessboard component API usage to use options prop
- Fix Analyze Game button placement to be always visible
2025-11-27 09:52:36 +01:00
Stefan 95692ce8f8 Merge game history feature: Add multi-game save and analysis mode 2025-11-27 09:33:23 +01:00
stefan-kp 918bbd2508 Add multi-game resume list with board previews 2025-11-27 09:26:02 +01:00
stefan-kp f7ee818360 Add onboarding flow for missing LLM key 2025-11-27 09:25:39 +01:00
stefan-kp 05f14d30a1 Add analysis page tests for PGN walkthrough 2025-11-26 21:33:45 +01:00
Stefan cd6cab367a Add unified FEN/PGN import with auto-detection
- Create chessFormatDetector utility for automatic format detection
- Update StartScreen with textarea supporting both FEN and PGN input
- Add real-time format detection with visual feedback indicators
- Update translations for all 4 languages (EN, DE, FR, IT)
- Add markdown rendering for Tutor chat messages
- Add comprehensive tests for format detection (20 tests)
- Update game initialization to handle both FEN and PGN formats

This completes the fix/stale-analysis-data branch with:
- Fixed stale evaluation data in hint/best move requests
- Clarified AI's dual role (opponent + tutor) to prevent hint rejection
- Stored complete evaluation history (P0, P1, P2) for all moves
- Improved end-game analysis with better mistake detection
- Fixed duplicate analysis runs with useRef flag
- Added markdown rendering for formatted analysis output
- Added unified FEN/PGN import with auto-detection
2025-11-25 17:54:25 +01:00
google-labs-jules[bot] 4d5ec5ecc3 fix(analysis): Ensure fresh evaluation for hints and analysis
This commit fixes a bug where the AI tutor and end-game analysis would use stale data from previous evaluations.

The `Tutor` component now receives the live `game` instance and has a new function, `evaluateCurrentPosition`, which is called on-demand when a user requests a hint or the best move. This ensures the LLM receives up-to-date information.

The end-game analysis was also corrected to use the proper evaluation data when constructing the move history, preventing incorrect analysis of mistakes and blunders.

The test suite was improved by restoring deleted tests, adding a new test to verify the fix, and making existing tests more robust.
2025-11-25 13:15:49 +00:00
Stefan b923f68841 sounds + layout 2025-11-24 16:12:58 +01:00
Stefan 1f2300e476 footer 2025-11-23 20:56:30 +01:00
Stefan 0aa4370f64 bug fixes and first try of github docker 2025-11-23 16:43:47 +01:00
Stefan a4a42488bb i18n 2025-11-23 13:36:10 +01:00
Stefan 30f1e9e3a5 working app 2025-11-23 10:51:00 +01:00
Stefan f6480a43c6 Initial commit from Create Next App 2025-11-22 10:57:29 +01:00