Closed bezhanSalleh closed 1 month ago
Configuration Changes
.editorconfig
setting for insert_final_newline
was changed from true
to false
.pint.json
file, the single_blank_line_at_eof
was set to false
.Addition of Test Results File
.phpunit.cache/test-results
.README.md Updates
README.md
was updated with new sections for "Panels" and "Sort Order", and these sections include examples for better understanding.panels()
.Code Refactoring for Views
resources/views/panel-switch-menu.blade.php
was simplified to improve how panel URLs are created in dropdowns.Introduction of New Trait
HasPanelValidator
was introduced in the src/Concerns/
directory; this provides the ability to validate panel IDs.Expansion of PanelSwitch Class
PanelSwitch
class now includes panels()
and sort()
methods, which will replace the previously used excludes()
functionality.Logic Adjustment in Panel Method
getPanels()
method was adjusted to consider both user-defined panels and their validation.Minor Updates for Compatibility
This pull request includes several changes focused on updating the
PanelSwitch
functionality, improving the README documentation, and making adjustments to configuration files. The most important changes include the introduction of a newpanels
method, deprecation of theexcludes
method, and updates to theREADME.md
to reflect these changes.PanelSwitch Enhancements:
panels
method to limit listed panels and deprecated theexcludes
method. Added validation for user-provided panels to ensure they are valid Filament panels (src/Concerns/HasPanelValidator.php
,src/PanelSwitch.php
).sort
method to allow sorting of panels in ascending or descending order (src/PanelSwitch.php
).README Documentation Updates:
README.md
to introduce new sections forPanels
andSort Order
and markedPanel Exclusion
as deprecated.Blade Template Adjustments:
panel-switch-menu.blade.php
to use the newpanels
method and updated the logic for rendering panel links and icons (resources/views/panel-switch-menu.blade.php
).