mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-19 21:00:15 -05:00
d01d6633c1
Significantly improve the admin module visibility settings page with comprehensive dependency validation, enhanced UI, and better user experience. Key improvements: Phase 1 - Critical Features: - Add dependency validation to prevent disabling modules with active dependents - Add get_dependents() and validate_module_disable() methods to ModuleRegistry - Server-side validation with clear error messages when dependencies conflict - Display module descriptions and dependency information in UI Phase 2 - UX Enhancements: - Add module icons and visual status indicators (Enabled/Disabled badges) - Implement search and filter functionality (by name, category, status, dependencies) - Make categories collapsible/expandable for better organization - Add summary statistics showing total, enabled, and disabled module counts Phase 3 - Advanced Features: - Add bulk operations (Enable All/Disable All globally and per category) - Implement impact preview showing affected modules when disabling - Add client-side validation with real-time feedback - Highlight modules with dependency conflicts Additional enhancements: - Enhanced module cards with icons, descriptions, and dependency lists - Real-time count updates and validation feedback - Improved visual hierarchy and spacing - CSS transitions for smooth interactions Files modified: - app/utils/module_registry.py: Add dependency validation methods - app/routes/admin.py: Add server-side validation before saving - app/templates/admin/settings.html: Complete UI overhaul with all new features