mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 06:23:23 +00:00
feat(ui): unify resource nav sidebars and polish project layouts
Extract application/database/service configuration sidebars and unified headings; improve clone-to-environment, embedded deployments, storage actions, OAuth icons, terminal, and shared form components.
This commit is contained in:
@@ -18,3 +18,18 @@ it('still shows the user name and email inside the dropdown panel', function ()
|
||||
->toContain('truncate text-[13px] font-semibold text-black dark:text-fg">{{ $userName }}</div>')
|
||||
->toContain('{{ $userEmail }}');
|
||||
});
|
||||
|
||||
it('changes appearance from a submenu instead of navigating to a separate page', function () {
|
||||
$menu = file_get_contents(resource_path('views/components/top-user-menu.blade.php'));
|
||||
|
||||
expect($menu)
|
||||
->toContain('appearanceOpen: false')
|
||||
->toContain('@click.outside="open = false; appearanceOpen = false"')
|
||||
->toContain("theme: localStorage.getItem('theme') || 'dark'")
|
||||
->toContain('setTheme(type)')
|
||||
->toContain("['value' => 'light', 'label' => 'Light'")
|
||||
->toContain("['value' => 'system', 'label' => 'System'")
|
||||
->toContain("['value' => 'dark', 'label' => 'Dark'")
|
||||
->toContain('hover:bg-neutral-200 hover:text-neutral-950')
|
||||
->not->toContain("route('profile.appearance')");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user