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:
Andras Bacsai
2026-08-05 17:56:59 +02:00
parent 2291c3fa1c
commit 5de6f97256
85 changed files with 2087 additions and 981 deletions
@@ -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(');
});