Two new proposals from comprehensive QA review: 1. cleanup-debug-logging - Remove 60+ console.log/error statements from frontend - Create environment-aware logging utility - Prevent sensitive data exposure in browser console 2. complete-i18n-coverage - Add missing translations to WeeklyReportPreview - Add missing translations to ReportHistory - Add missing translations to AuditPage modal - Use dynamic locale for date formatting Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1.1 KiB
1.1 KiB
Cleanup Debug Logging
Problem Statement
The frontend codebase contains 60+ console.log and console.error statements scattered across components. These debug statements:
- May expose sensitive information (tokens, user data, API responses) in browser console
- Clutter the browser console in production
- Impact performance from excessive logging
- Present an unprofessional appearance to users who open developer tools
Proposed Solution
- Remove all unnecessary console.log/console.error statements
- For essential logging, implement environment-aware logging that only outputs in development
- Create a centralized logging utility that respects environment settings
Affected Components
Key files with debug logging:
contexts/NotificationContext.tsx- WebSocket event loggingcontexts/ProjectSyncContext.tsx- Debug logging functionscomponents/GanttChart.tsx- Progress change logging- Multiple other components with error logging
Success Criteria
- No console.log statements in production build output
- Essential error logging preserved with environment checks
- All frontend tests continue to pass