feat: implement security, error resilience, and query optimization proposals
Security Validation (enhance-security-validation): - JWT secret validation with entropy checking and pattern detection - CSRF protection middleware with token generation/validation - Frontend CSRF token auto-injection for DELETE/PUT/PATCH requests - MIME type validation with magic bytes detection for file uploads Error Resilience (add-error-resilience): - React ErrorBoundary component with fallback UI and retry functionality - ErrorBoundaryWithI18n wrapper for internationalization support - Page-level and section-level error boundaries in App.tsx Query Performance (optimize-query-performance): - Query monitoring utility with threshold warnings - N+1 query fixes using joinedload/selectinload - Optimized project members, tasks, and subtasks endpoints Bug Fixes: - WebSocket session management (P0): Return primitives instead of ORM objects - LIKE query injection (P1): Escape special characters in search queries Tests: 543 backend tests, 56 frontend tests passing Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -112,5 +112,22 @@
|
||||
"of": "共 {{total}} 頁",
|
||||
"showing": "顯示 {{from}}-{{to}} 筆,共 {{total}} 筆",
|
||||
"itemsPerPage": "每頁顯示"
|
||||
},
|
||||
"errorBoundary": {
|
||||
"retry": "重試",
|
||||
"page": {
|
||||
"title": "發生錯誤",
|
||||
"message": "非常抱歉造成不便。請嘗試重新整理頁面,如果問題持續發生,請聯繫技術支援。"
|
||||
},
|
||||
"section": {
|
||||
"title": "無法載入此區塊",
|
||||
"message": "此區塊發生錯誤,但頁面的其他部分可能仍然正常運作。",
|
||||
"messageWithName": "{{section}} 發生錯誤,但頁面的其他部分可能仍然正常運作。"
|
||||
},
|
||||
"widget": {
|
||||
"title": "元件錯誤",
|
||||
"message": "無法顯示此元件。",
|
||||
"errorSuffix": "發生錯誤"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user