mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 22:15:35 +00:00
feat(ui): polish domains, storage, env vars and resource nav
Improve project resource UIs: sort domains by DNS failure, stop re-adding www pairs on refresh, lazy-load storage tabs with counts, tighten env-var tables, keep application tabs active across Livewire polls, unify database type labels, and update related CSS/JS and tests.
This commit is contained in:
1 parent
dbc6f5e08c
commit
a7a06aa6c8
75 files changed
+3909
-1173
No files matched your search
@@ -366,14 +366,16 @@ it('shows the configure backup modal trigger inside the volume card instead of i
|
||||
'resource' => $application,
|
||||
])
|
||||
->set('isReadOnly', true)
|
||||
->assertSee('Configure Backup')
|
||||
->assertSee('Backup')
|
||||
->assertDontSee('Backups made while the application is writing');
|
||||
|
||||
$html = $component->html();
|
||||
|
||||
expect(strpos($html, 'Configure Backup'))
|
||||
->toBeGreaterThan(strpos($html, '<form'))
|
||||
->toBeLessThan(strpos($html, '</form>'));
|
||||
// Read-only volume rows are table cells (no form); backup action still renders in the row.
|
||||
expect($html)
|
||||
->toContain('Configure Volume Backup')
|
||||
->toContain('data-table-row')
|
||||
->toContain('Backup');
|
||||
});
|
||||
|
||||
it('only shows the backup enabled badge for an enabled volume backup', function () {
|
||||
@@ -391,7 +393,7 @@ it('only shows the backup enabled badge for an enabled volume backup', function
|
||||
$component = Livewire::test(Show::class, [
|
||||
'storage' => $volume,
|
||||
'resource' => $application,
|
||||
])->assertDontSee('Backup enabled');
|
||||
])->assertDontSee('table-badge-success', false);
|
||||
|
||||
$backup->update(['enabled' => true]);
|
||||
|
||||
@@ -404,14 +406,17 @@ it('only shows the backup enabled badge for an enabled volume backup', function
|
||||
|
||||
$component
|
||||
->dispatch('refreshVolumeBackups')
|
||||
->assertSeeInOrder(['Volume Name', 'Backup enabled'])
|
||||
->assertSee('table-badge-success', false)
|
||||
->assertSee('Volume backup is enabled')
|
||||
->assertSee('href="'.$backupUrl.'"', false);
|
||||
|
||||
Livewire::test(Show::class, [
|
||||
'storage' => $volume,
|
||||
'resource' => $application,
|
||||
'isFirst' => false,
|
||||
])->assertSeeInOrder(['Volume Name', 'Backup enabled']);
|
||||
])
|
||||
->assertSee('table-badge-success', false)
|
||||
->assertSee('Volume backup is enabled');
|
||||
});
|
||||
|
||||
it('links the backup enabled badge to a filtered backup list when the application has multiple schedules', function () {
|
||||
@@ -441,7 +446,8 @@ it('links the backup enabled badge to a filtered backup list when the applicatio
|
||||
'storage' => $volume,
|
||||
'resource' => $application,
|
||||
])
|
||||
->assertSee('Backup enabled')
|
||||
->assertSee('table-badge-success', false)
|
||||
->assertSee('Volume backup is enabled')
|
||||
->assertSee('href="'.$backupUrl.'"', false);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user