Commit Graph

2 Commits

Author SHA1 Message Date
鄭沛軒 3b6b52c0d4 feat: 統一詞性簡寫顯示並修復複習日期問題
- 統一全站詞性顯示為標準簡寫格式 (n., v., adj., adv.)
- 修復詞卡詳細頁面 1970/1/1 日期顯示問題:
  * 後端 GetFlashcard API 添加複習記錄查詢
  * 前端添加安全的日期格式化處理
- 重新設計手機版詞卡管理頁面:
  * 優化 FlashcardCard 手機版布局,解決擠壓問題
  * 重新設計 SearchControls 導航為垂直分層布局
- 移除過時的掌握度顯示,簡化界面
- 改進詞卡詳細頁面間距,增加視覺舒適度

現在詞卡管理和詳細頁面在手機版和桌面版都有更好的用戶體驗。

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-07 17:23:55 +08:00
鄭沛軒 738d836099 feat: 完成詞卡詳情頁重構 - 模組化架構大幅優化
重構成果:
- 主檔案代碼減少64% (543→193行)
- 新建5個UI組件 + 2個Custom Hooks
- 業務邏輯與UI完全分離
- TypeScript類型安全,編譯無錯誤
- 組件可重用性大幅提升

新建組件:
- LoadingState: 統一載入狀態
- ErrorState: 統一錯誤處理
- FlashcardInfoBlock: 詞卡資訊區塊
- FlashcardActions: 操作按鈕組
- EditingControls: 編輯模式控制

新建Hooks:
- useFlashcardActions: 詞卡操作邏輯
- useImageGeneration: 圖片生成邏輯

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-02 00:09:56 +08:00