鄭沛軒
|
b913d13543
|
fix: 修復review-design頁面例句圖片顯示和TypeScript類型錯誤
- 修正mockCardData中exampleImage的類型從null改為undefined
- 為SentenceReorderTest組件添加exampleImage和onImageClick屬性傳遞
- 確保所有支援圖片的測試組件都能正確顯示例句圖片
- 修復TypeScript類型不匹配錯誤 (string|null vs string|undefined)
- 完善SentenceFillTest、SentenceReorderTest、SentenceSpeakingTest的圖片功能
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-09-27 23:47:22 +08:00 |
鄭沛軒
|
589a22b89d
|
feat: 完成CardSet功能清理和測試資料優化
## 主要改動
### 後端 CardSet 功能完全移除
- 刪除 CardSet.cs 實體模型
- 移除 Flashcard 中的 CardSetId 欄位和導航屬性
- 清理 User 實體中的 CardSets 導航屬性
- 更新 DbContext 移除 CardSet 相關配置
- 修復 FlashcardsController、StatsController、StudyController 中的 CardSet 引用
- 創建和執行資料庫 migration 移除 CardSet 表和相關約束
### API 功能修復和優化
- 修復 FlashcardsController GetFlashcards 方法的 500 錯誤
- 恢復例句圖片處理功能 (FlashcardExampleImages)
- 增強錯誤日誌和調試資訊
- 簡化後重新添加完整圖片處理邏輯
### 前端測試資料完善
- 轉換 CSV 為完整的 API 響應格式
- 為所有詞彙添加圖片資料結構和URL
- 修正 exampleTranslation 為 example 的正確中文翻譯
- 更新 review-design 頁面支援動態卡片切換
- 移除 cardSetId 相關欄位
### 系統架構簡化
- 移除不使用的 CardSet 功能,專注核心 Flashcard 學習
- 統一資料格式,提升前後端一致性
- 完善測試環境的假資料支援
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-09-27 23:36:25 +08:00 |
鄭沛軒
|
0292c1bbfe
|
refactor: 重新命名review-tests為review-design
- 資料夾從review-tests重命名為review-design
- 導航標籤改為🎨設計,更明確UI設計用途
- 頁面標題更新為"Review 組件設計"
- 統一外層排版與review頁面一致
- 移除測驗組件外層卡片包裝,直接展示在背景上
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-09-27 21:00:14 +08:00 |