Archive two completed proposals: - enable-audit-logging: Added audit logging for auth, task, and admin events - simplify-frontend-add-billing: Removed Export/Settings pages, added translation stats 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1.4 KiB
1.4 KiB
Tasks: 簡化前端頁面並新增翻譯計費功能
1. 移除 Export 頁面
- 1.1 從 App.tsx 移除
/export路由 - 1.2 從 Layout.tsx 導航選單移除 Export 連結
- 1.3 刪除
frontend/src/pages/ExportPage.tsx
2. 移除 Settings 頁面
- 2.1 從 App.tsx 移除
/settings路由 - 2.2 從 Layout.tsx 導航選單移除 Settings 連結
- 2.3 刪除
frontend/src/pages/SettingsPage.tsx
3. 後端翻譯統計 API
- 3.1 新增
TranslationLogmodel 和 migration - 3.2 在
admin_service.py新增get_translation_statistics()方法 - 3.3 在
admin.pyrouter 新增GET /admin/translation-stats端點 - 3.4 修改翻譯流程在完成時寫入統計到資料庫
4. 前端翻譯統計顯示
- 4.1 在
apiV2.ts新增getTranslationStats()API 呼叫 - 4.2 在
types/apiV2.ts新增翻譯統計類型定義 - 4.3 在
AdminDashboardPage.tsx新增翻譯統計卡片
5. i18n 翻譯
- 5.1 新增翻譯統計相關中文翻譯 (暫時使用硬編碼)
- 5.2 新增翻譯統計相關英文翻譯 (暫時使用硬編碼)
6. 測試與驗證
- 6.1 驗證 Export/Settings 頁面路由已移除
- 6.2 驗證導航選單已更新
- 6.3 驗證 TypeScript 編譯通過
- 6.4 測試翻譯統計 API 回傳正確資料 (需要實際翻譯測試)
- 6.5 測試管理員儀表板顯示翻譯統計 (需要實際測試)