mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-15 00:17:16 +00:00
fix(ui): improve tooltip a11y and settings select layout
Make button and helper tooltips keyboard-focusable with ARIA roles, close helper popups on outside pointer/focus leave, reserve select chevron padding, rotate DNS chevron when open, and re-key the service domain list after row changes.
This commit is contained in:
1 parent
4f966e3759
commit
232b999cc9
8 files changed
+138
-26
No files matched your search
@@ -105,6 +105,14 @@ it('shows dns entries control next to Add', function () {
|
||||
->assertSee('Manual records');
|
||||
});
|
||||
|
||||
it('rotates the dns entries chevron while its dropdown is open', function () {
|
||||
$view = file_get_contents(resource_path('views/livewire/project/shared/cloudflare-autoconfigure.blade.php'));
|
||||
|
||||
expect($view)
|
||||
->toContain('class="inline-flex transition-transform"')
|
||||
->toContain(':class="dnsEntriesOpen && \'rotate-180\'"');
|
||||
});
|
||||
|
||||
it('lists dns entries for service hosts that still need dns', function () {
|
||||
$this->webApp->update([
|
||||
'fqdn' => 'https://web.example.com',
|
||||
@@ -199,7 +207,9 @@ it('adds a domain to a selected service application', function () {
|
||||
->set('newDomain', 'https://web.example.com')
|
||||
->call('addDomain')
|
||||
->assertHasNoErrors()
|
||||
->assertDispatched('success');
|
||||
->assertDispatched('success')
|
||||
->assertSet('domainRows', fn (array $rows): bool => collect($rows)->pluck('url')->contains('https://web.example.com'))
|
||||
->assertSee('https://web.example.com');
|
||||
|
||||
$this->webApp->refresh();
|
||||
expect(explode(',', (string) $this->webApp->fqdn))
|
||||
@@ -216,6 +226,12 @@ it('adds a domain to a selected service application', function () {
|
||||
->not->toBeNull();
|
||||
});
|
||||
|
||||
it('replaces the rendered domain list when its rows change', function () {
|
||||
$view = file_get_contents(resource_path('views/livewire/project/service/domains.blade.php'));
|
||||
|
||||
expect($view)->toContain('wire:key="service-domains-list-{{ md5(serialize($domainRows)) }}"');
|
||||
});
|
||||
|
||||
it('does not duplicate the service name as a badge in the domain cell', function () {
|
||||
$view = file_get_contents(resource_path('views/livewire/project/service/partials/domain-table.blade.php'));
|
||||
|
||||
|
||||
Reference in new issue
Block a user