Sidebar sections can now be collapsed/expanded by clicking the header. State is persisted to localStorage so sections remain open/closed across page navigation and browser sessions. Changes: - init-alpine.js: Added openSections state, toggleSection(), expandSectionForCurrentPage(), and localStorage helpers - sidebar.html: Refactored with Jinja2 macros for DRY code, added collapsible sections with CSS transitions and rotating chevron icons Features: - Click section header to toggle expand/collapse - Chevron rotates 180 degrees when expanded - Smooth CSS transitions (no extra Alpine plugins needed) - State persists in localStorage (admin_sidebar_sections key) - Default: Platform Administration open, others closed - Dashboard and Settings always visible (not collapsible) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
7.1 KiB
7.1 KiB