- Added NavbarItem class to encapsulate navigation item configuration
(key, parent, URL, label, permissions, order, visibility flags, etc.)
- Implemented NavbarRegistry for centralized registration and retrieval
of navigation items, including hierarchical structure support
- Introduced registerNavbar() method across modules to allow modular
injection of navigation entries
- Refactored admin header rendering to build navigation dynamically
from the registry instead of static definitions
Updated modules:
- FingerprintModule
- MagscanModule
- MinistraModule
- PlexModule
- TheftDetectionModule
- TmdbModule
- WatchModule
Benefits:
- Improves maintainability by removing hardcoded navigation
- Enables modular and scalable extension of the admin menu
- Provides consistent API for core and external modules
Co-authored-by: Copilot <copilot@github.com>