mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 10:23:30 +00:00
feat(ui): Shadow UI redesign, domain management, and DNS autoconfigure (#11119)
Co-authored-by: ShadowArcanist <162910371+ShadowArcanist@users.noreply.github.com>
This commit is contained in:
co-authored by
ShadowArcanist
parent
0b843bb07c
commit
8ae56587d5
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Centered process dialog used for startup / activity log streams.
|
||||
*/
|
||||
test('process dialog shells use display contents so event-only hosts take no layout space', function () {
|
||||
$component = file_get_contents(resource_path('views/components/process-dialog.blade.php'));
|
||||
|
||||
expect($component)
|
||||
->toContain("'class' => 'contents'")
|
||||
->toContain('processDialogOpen')
|
||||
->toContain('role="dialog"')
|
||||
->toContain('items-center justify-center')
|
||||
->toContain('min-h-[min(70dvh,28rem)]')
|
||||
->toContain('sm:min-w-[32rem]')
|
||||
->not->toContain('translate-x-full');
|
||||
});
|
||||
|
||||
test('service database and proxy startup use the centered process dialog', function () {
|
||||
$paths = [
|
||||
resource_path('views/livewire/project/service/heading.blade.php'),
|
||||
resource_path('views/livewire/project/database/heading.blade.php'),
|
||||
resource_path('views/livewire/server/navbar.blade.php'),
|
||||
];
|
||||
|
||||
foreach ($paths as $path) {
|
||||
expect(file_get_contents($path))
|
||||
->toContain('<x-process-dialog')
|
||||
->toContain('processDialogOpen = true')
|
||||
->not->toContain('<x-slide-over @start');
|
||||
}
|
||||
});
|
||||
|
||||
test('process dialog body styles support a full-height log surface', function () {
|
||||
$css = file_get_contents(resource_path('css/app.css'));
|
||||
|
||||
expect($css)
|
||||
->toContain('.process-dialog')
|
||||
->toContain('.process-dialog-body')
|
||||
->toContain('min-height: min(70dvh, 28rem)');
|
||||
});
|
||||
Reference in New Issue
Block a user