dramaling-vocab-learning/frontend/app/flashcards
鄭沛軒 b348780eaa feat: 完成詞卡儲存功能整合並移除假資料
🎯 主要功能:
- 統一前後端API欄位名稱(word/translation/definition)
- 移除所有假資料生成函數,改用真實API調用
- 修正FlashcardForm和相關組件的欄位映射

🔧 技術修正:
- 前端handleSaveWord函數使用正確的API欄位
- flashcardsService interface與後端API完全匹配
- handleAnalyzeSentence改為調用真實的analyze-sentence API

📝 代碼清理:
- 移除generateMockAnalysis函數(~150行代碼)
- 移除getRandomTranslation、getRandomPartOfSpeech等工具函數
- 清理所有mock相關的註釋和變數

 功能驗證:
- 後端API正常運行(localhost:5000)
- 前端Portal彈窗樣式完美
- 詞卡儲存功能完整可用

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-21 01:36:22 +08:00
..
[id] refactor: 移除卡組功能,簡化詞卡管理系統 2025-09-20 19:29:00 +08:00
page.tsx feat: 完成詞卡儲存功能整合並移除假資料 2025-09-21 01:36:22 +08:00