mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 16:17:10 +00:00
feat(ui): expand server sidebar and extract status summary
Move proxy, sentinel, resources, and terminal into the server sidebar with nested routes and icons; extract navbar status into a shared status-summary component; add full-width service links and compact loading support.
This commit is contained in:
1 parent
d6db943453
commit
85613b01ba
25 files changed
+312
-121
No files matched your search
@@ -55,3 +55,23 @@ it('shows section titles and descriptions above settings navigation on smaller s
|
||||
['settings/layout.blade.php', 'Instance Settings', 'Configure global settings for this Coolify instance.'],
|
||||
['team/settings-layout.blade.php', 'Team', 'Manage your team, members, and access settings.'],
|
||||
]);
|
||||
|
||||
it('uses the structured sidebar and action HUD for server navigation', function () {
|
||||
$navbar = file_get_contents(resource_path('views/livewire/server/navbar.blade.php'));
|
||||
$sidebar = file_get_contents(resource_path('views/components/server/sidebar.blade.php'));
|
||||
$resources = file_get_contents(resource_path('views/livewire/server/resources.blade.php'));
|
||||
$terminal = file_get_contents(resource_path('views/livewire/project/shared/execute-container-command.blade.php'));
|
||||
|
||||
expect($navbar)
|
||||
->toContain('class="hidden xl:fixed xl:top-14 xl:right-4 xl:z-30 xl:flex')
|
||||
->toContain('<x-resource-heading-tabs class="hidden" aria-hidden="true">')
|
||||
->toContain('dark:bg-coolgray-100! dark:text-white!')
|
||||
->and($sidebar)
|
||||
->toContain("'label' => 'Proxy'")
|
||||
->toContain("'label' => 'Sentinel'")
|
||||
->toContain("'label' => 'Resources'")
|
||||
->toContain("'label' => 'Terminal'")
|
||||
->toContain("'label' => 'Security'")
|
||||
->and($resources)->toContain('<x-server.sidebar :server="$server" activeMenu="resources" />')
|
||||
->and($terminal)->toContain('<x-server.sidebar :server="$resource" activeMenu="terminal" />');
|
||||
});
|
||||
Reference in new issue
Block a user