Files
Virtnet.bond/memory-bank/activeContext.md
Joseph.Rawlings 9e33470134 feat(proxmox): add statistics redirect component and route
Introduced a new Livewire component for statistics redirection and added a corresponding route to enhance navigation within the Proxmox extension. This update lays the groundwork for future statistics-related features.
2026-03-28 15:48:17 -04:00

14 lines
2.1 KiB
Markdown

# Active Context
- Recent focus areas:
- **Proxmox Statistics UI removed**: The dedicated **Statistics** Livewire page, `statistics.blade.php`, all `partials/statistics/*`, route `proxmox.server.statistics`, layout tab, preload fetch, and Help “Statistics Tab” section were removed. **`ServerStatistics` model, migrations, and hourly `PollServerStatistics` remain** for Overview/Server and other consumers. Deploy target used: `10.0.254.100` (`/var/www/paymenter`) with `git reset --hard origin/main`, `composer dump-autoload -o`, `view:clear`, `cache:clear`, `optimize`, `php8.3-fpm` restart.
- **Proxmox Firewall Logs**: Added search padding, multi-select filters, raw CSS styling, modal-based state views, and cross-links where Network Analysis existed (Statistics tab removed; verify any firewall → network deep-links still point at valid UI). Alpine state handles pagination, filtering, and log detail modals. Fixed filter persistence using Alpine.$persist so policy/protocol selections survive Livewire refreshes.
- **Proxmox Overview Modals**: Fixed duplicate `@keydown.escape.window` handlers that were causing escape key events to fire twice. Removed escape handlers from modal container divs, keeping only on backdrop divs to eliminate redundancy. Also re-enabled the previously disabled Hostname Edit Modal.
- **Network Analysis (legacy)**: Was part of the removed Statistics surface; if similar behavior is reintroduced elsewhere, reuse `data-*` / query-param patterns from git history.
- **NavbarManager**: Fixed parse errors, Filament compatibility, remediated navigation injection w/ schema guards, normalized icon entry to accept any Remix icon, and ensured migrations auto-run when tables missing.
- **Announcements & Documentation**: Removed automatic navigation tabs when no active data (or at user request) to declutter primary nav.
- Pending considerations:
- Ensure other extensions that inject navigation guard against missing tables/data to prevent 500s.
- Keep knowledge base/announcement widgets in sync with navigation removals (verify there are alternate access points if needed).