mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-21 08:25:45 +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:
@@ -32,3 +32,45 @@ it('requires the provider-specific fields used by oauth enablement', function ()
|
||||
'oauth_settings_map.authentik.base_url',
|
||||
]);
|
||||
});
|
||||
|
||||
it('uses monochrome brand logos for each oauth provider in the sidebar', function () {
|
||||
$view = file_get_contents(resource_path('views/livewire/settings-oauth.blade.php'));
|
||||
|
||||
$providers = [
|
||||
'authentik',
|
||||
'azure',
|
||||
'bitbucket',
|
||||
'clerk',
|
||||
'discord',
|
||||
'github',
|
||||
'gitlab',
|
||||
'google',
|
||||
'infomaniak',
|
||||
'zitadel',
|
||||
];
|
||||
|
||||
expect($view)
|
||||
->toContain("asset('svgs/' . \$provider . '.svg')")
|
||||
->toContain('mask:')
|
||||
->toContain('bg-current')
|
||||
->not->toContain('<x-reicon name="keys" class="menu-item-icon" />');
|
||||
|
||||
foreach ($providers as $provider) {
|
||||
$svg = public_path("svgs/{$provider}.svg");
|
||||
|
||||
expect($svg)->toBeFile();
|
||||
|
||||
$contents = file_get_contents($svg);
|
||||
|
||||
expect($contents)
|
||||
->toContain('<svg')
|
||||
->toContain('<path')
|
||||
->not->toMatch('/fill="#[0-9a-fA-F]{3,8}"/')
|
||||
->not->toContain('fill="#e24329"')
|
||||
->not->toContain('fill="#4285F4"');
|
||||
}
|
||||
|
||||
// Keep GitLab at the natural simple-icons 24x24 mark (no optical scale).
|
||||
expect(file_get_contents(public_path('svgs/gitlab.svg')))
|
||||
->not->toContain('scale(');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user