Kaj Kowalski
33981b87dd
fix: implement comprehensive UI/UX and code organization improvements
CSRF Form Enhancements:
- Add optional onError callback prop for better error handling
- Remove CSRF token from console logging for security
- Provide user-friendly error notifications instead of silent failures
Date Filter Optimization:
- Refactor sessions route to avoid object mutation issues
- Build date filters cleanly without relying on spreading existing objects
- Prevent potential undefined startTime mutations
Geographic Threat Map Optimization:
- Extract country names to reusable constants in lib/constants/countries.ts
- Calculate max values once to avoid repeated expensive operations
- Centralize threat level color mapping to eliminate duplicated logic
- Replace repeated color assignments with centralized THREAT_LEVELS configuration
Accessibility Improvements:
- Add keyboard support to audit log table rows (Enter/Space keys)
- Include proper ARIA labels and focus management
- Add tabIndex for screen reader compatibility
- Enhance focus indicators with ring styling
Performance & Code Organization:
- Move COUNTRY_NAMES to shared constants for reusability
- Optimize calculation patterns in threat mapping components
- Reduce redundant logic and improve maintainability
2025-07-13 16:32:57 +02:00
..
2025-07-13 14:44:05 +02:00
2025-07-13 11:52:53 +02:00
2025-07-13 16:32:57 +02:00
2025-07-13 11:52:49 +02:00
2025-07-13 11:52:53 +02:00
2025-07-13 14:44:05 +02:00
2025-07-13 14:44:05 +02:00
2025-07-13 14:44:05 +02:00
2025-07-13 14:44:05 +02:00
2025-07-13 14:44:05 +02:00
2025-07-13 11:52:53 +02:00
2025-07-13 11:52:53 +02:00
2025-07-13 11:52:53 +02:00
2025-07-13 11:52:53 +02:00
2025-07-13 11:52:53 +02:00
2025-07-13 11:52:53 +02:00
2025-07-13 11:52:49 +02:00
2025-07-12 00:28:09 +02:00
2025-07-13 11:52:53 +02:00
2025-07-13 11:52:49 +02:00
2025-07-13 11:52:53 +02:00
2025-07-12 00:28:12 +02:00
2025-07-13 11:52:53 +02:00
2025-07-13 11:52:53 +02:00
2025-07-13 11:52:49 +02:00
2025-07-13 11:52:49 +02:00
2025-07-12 00:28:12 +02:00
2025-07-13 11:52:49 +02:00
2025-06-29 21:56:29 +02:00
2025-07-13 11:52:53 +02:00
2025-07-13 11:52:49 +02:00
2025-07-13 11:52:49 +02:00
2025-06-30 19:15:25 +02:00
2025-06-28 06:53:14 +02:00
2025-07-13 11:52:53 +02:00
2025-06-29 07:35:45 +02:00
2025-07-12 00:26:30 +02:00
2025-07-12 00:28:09 +02:00
2025-07-12 00:28:09 +02:00
2025-07-13 11:52:53 +02:00
2025-07-12 00:28:09 +02:00
2025-07-13 11:52:53 +02:00
2025-07-12 00:27:57 +02:00
2025-07-12 00:26:30 +02:00
2025-07-12 00:28:09 +02:00
2025-07-13 11:52:53 +02:00
2025-06-29 07:35:45 +02:00
2025-06-29 07:35:45 +02:00
2025-07-12 00:28:09 +02:00
2025-07-13 11:52:53 +02:00
2025-07-13 14:44:05 +02:00
2025-07-12 00:28:09 +02:00
2025-07-12 00:28:12 +02:00
2025-07-12 00:26:30 +02:00
2025-07-13 11:52:49 +02:00
2025-07-13 14:44:05 +02:00
2025-07-13 11:52:53 +02:00
2025-06-29 07:35:45 +02:00
2025-07-13 11:52:53 +02:00