mirror of
https://github.com/coollabsio/coolify.git
synced 2026-09-27 17:55:59 -04:00
fix(ui): keep settings subnav in-page and persist sidebar collapse
Scroll active application settings sections with buttons instead of Livewire navigation, persist sidebar collapse even with auto-collapse, drop the unused modal id, and right-align destination status.
This commit is contained in:
@@ -45,6 +45,18 @@ test('configuration sidebar subitems trigger section highlight on scroll', funct
|
||||
->toContain('stableFrames');
|
||||
});
|
||||
|
||||
test('application configuration subitems scroll without navigating the active page', function () {
|
||||
$sidebar = file_get_contents(resource_path('views/components/application/configuration-sidebar.blade.php'));
|
||||
|
||||
expect($sidebar)
|
||||
->toContain("@if (\$menuItem['active'])")
|
||||
->toContain('<button type="button" class="menu-subitem"')
|
||||
->toContain("window.scrollToSettingsSection?.('{{ \$section['id'] }}')")
|
||||
->toContain('@else')
|
||||
->toContain("href=\"{{ route(\$menuItem['route'], \$applicationRouteParameters) }}#{{ \$section['id'] }}\"")
|
||||
->not->toContain("if (document.getElementById('{{ \$section['id'] }}'))");
|
||||
});
|
||||
|
||||
test('postgresql general navigation lists each in-page settings section', function () {
|
||||
$sidebar = file_get_contents(resource_path('views/components/database/configuration-sidebar.blade.php'));
|
||||
$general = file_get_contents(resource_path('views/livewire/project/database/postgresql/general.blade.php'));
|
||||
|
||||
Reference in New Issue
Block a user