mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 16:14:42 +00:00
feat(ui): unify brand accents and polish shared controls
Standardize highlighted buttons, selected controls, and loading indicators on coollabs accent colors; improve light-mode log toolbar styling; enhance small popups with compact/icon modes; and align navbars, helpers, and related layouts with matching tests.
This commit is contained in:
1 parent
8e57a9ab6b
commit
bdb367555d
81 files changed
+423
-149
No files matched your search
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
test('view switchers use the shared coollabs selected state on every page', function () {
|
||||
$views = collect([
|
||||
resource_path('views/livewire/server/index.blade.php'),
|
||||
resource_path('views/livewire/project/index.blade.php'),
|
||||
resource_path('views/livewire/project/show.blade.php'),
|
||||
resource_path('views/livewire/project/resource/index.blade.php'),
|
||||
resource_path('views/livewire/project/service/configuration.blade.php'),
|
||||
resource_path('views/livewire/tags/show.blade.php'),
|
||||
])->map(fn (string $path): string => file_get_contents($path));
|
||||
$utilities = file_get_contents(resource_path('css/utilities.css'));
|
||||
|
||||
expect($views->every(fn (string $view): bool => str_contains($view, "viewMode === 'table'")
|
||||
&& str_contains($view, "viewMode === 'grid'")
|
||||
&& str_contains($view, 'control-selected')))
|
||||
->toBeTrue()
|
||||
->and($views->implode("\n"))->not->toContain('dark:bg-warning/15 dark:text-warning')
|
||||
->and($utilities)
|
||||
->toContain('@utility control-selected')
|
||||
->toContain('@apply bg-coollabs text-white dark:bg-coollabs dark:text-white;');
|
||||
});
|
||||
Reference in new issue
Block a user