Skip to content

feat: Add StructureTree navigation as off-canvas sidebar#194

Closed
skerbis wants to merge 5 commits into
mainfrom
feature/structure-tree-navigation
Closed

feat: Add StructureTree navigation as off-canvas sidebar#194
skerbis wants to merge 5 commits into
mainfrom
feature/structure-tree-navigation

Conversation

@skerbis
Copy link
Copy Markdown
Member

@skerbis skerbis commented Aug 30, 2025

Experimental

  • Neuen StructureTreeButton mit modernem Off-Canvas-Design hinzufügen
  • Akkordeonartige Navigation mit Drei-Punkt-Umschaltflächen implementieren
  • Statusanzeigen für die Kategorien „Online/Offline/Gesperrt” hinzufügen
  • Live-Suchfunktion mit Löschschaltfläche einbinden
  • Funktion zum Ein- und Ausblenden aller Elemente mit intelligenter Umschaltfläche hinzufügen
  • Dunkles/helles Design mit Dashboard2-CSS-Muster unterstützen
  • Glassmorphic-Design mit Hintergrundeffekten hinzufügen
  • Umfassende deutsche und englische Übersetzungen hinzufügen
  • Aktuellen Kategoriepfad für bessere Benutzererfahrung automatisch erweitern
  • Responsives Design für verschiedene Bildschirmgrößen

skerbis and others added 2 commits August 31, 2025 00:34
- Add new StructureTreeButton with modern off-canvas design
- Implement accordion-style navigation with three-dot toggles
- Add status indicators for online/offline/gesperrt categories
- Include live search functionality with clear button
- Add expand/collapse all feature with intelligent toggle
- Support dark/light theme with Dashboard2 CSS pattern
- Add glassmorphic design with backdrop effects
- Include comprehensive German and English translations
- Auto-expand current category path for better UX
- Responsive design for various screen sizes
@skerbis skerbis marked this pull request as draft August 30, 2025 22:35
@skerbis skerbis requested a review from Copilot August 30, 2025 22:36
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new Structure Tree navigation component as an off-canvas sidebar to provide a hierarchical view of the site structure. The implementation includes modern UI patterns, theme support, search functionality, and comprehensive internationalization.

  • Adds a new StructureTreeButton with off-canvas sidebar design and accordion-style navigation
  • Implements live search functionality with status indicators for online/offline/locked categories
  • Provides comprehensive theming support for both light and dark themes with glassmorphic design effects

Reviewed Changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
lib/QuickNavigation/Utility/BuildNavigationArray.php Adds status field to navigation array for category state tracking
lib/QuickNavigation/Button/YformButton.php Simplifies YForm availability check logic
lib/QuickNavigation/Button/StructureTreeButton.php New button implementation with tree rendering and off-canvas functionality
lang/en_gb.lang Adds English translations for structure tree UI elements
lang/de_de.lang Adds German translations for structure tree UI elements
fragments/QuickNavigation/StructureTreeList.php Fragment template for rendering tree list structure
fragments/QuickNavigation/StructureTreeButton.php Fragment template for off-canvas sidebar with search and controls
boot.php Registers new StructureTreeButton in the button registry
assets/quick-navigation.js Adds comprehensive JavaScript for off-canvas functionality and tree interactions
assets/quick-navigation.css Extensive CSS for theming, animations, and responsive design
.php-cs-fixer.cache Updated code style cache file

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread lib/QuickNavigation/Button/StructureTreeButton.php Outdated
Comment thread assets/quick-navigation.js Outdated

// Icon auf "expand" ändern
$icon.removeClass('fa-compress-arrows-alt').addClass('fa-expand-arrows-alt');
$toggleBtn.attr('title', 'Alle aufklappen');
Copy link

Copilot AI Aug 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoded German text 'Alle aufklappen' should use i18n translation or be localized properly. This breaks internationalization for non-German users.

Copilot uses AI. Check for mistakes.

// Icon auf "collapse" ändern
$icon.removeClass('fa-expand-arrows-alt').addClass('fa-compress-arrows-alt');
$toggleBtn.attr('title', 'Alle zuklappen');
Copy link

Copilot AI Aug 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoded German text 'Alle zuklappen' should use i18n translation or be localized properly. This breaks internationalization for non-German users.

Copilot uses AI. Check for mistakes.
skerbis and others added 3 commits August 31, 2025 00:46
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@skerbis skerbis closed this Aug 31, 2025
@skerbis skerbis deleted the feature/structure-tree-navigation branch August 31, 2025 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants