mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 20:14:45 +00:00
feat(ui): show S3 backup status and move domain action
Eager-load S3 on volume backup lists and add an S3 status column with Configured/Unavailable/Not set badges. Surface Local vs S3 on the persistent storages backup column. Move service resource domain links to a globe action in the card footer, and update related tests and grid CSS.
This commit is contained in:
1 parent
d68b198d53
commit
4539d1442e
12 files changed
+82
-24
No files matched your search
@@ -56,6 +56,21 @@ it('keeps the volume backup script inside the Livewire root element', function (
|
||||
expect(strrpos($view, '@endscript'))->toBeLessThan(strrpos($view, '</div>'));
|
||||
});
|
||||
|
||||
it('shows the S3 configuration state in application and service backup tables', function () {
|
||||
$views = [
|
||||
resource_path('views/livewire/project/application/backup/index.blade.php'),
|
||||
resource_path('views/livewire/project/service/volume-backup/index.blade.php'),
|
||||
];
|
||||
|
||||
foreach ($views as $view) {
|
||||
expect(file_get_contents($view))
|
||||
->toContain('<span>S3</span>')
|
||||
->toContain("'Configured'")
|
||||
->toContain("'Unavailable'")
|
||||
->toContain("'Not set'");
|
||||
}
|
||||
});
|
||||
|
||||
it('targets named volumes and application directory mounts through one backup relation', function () {
|
||||
$team = Team::factory()->create();
|
||||
[$application, $volume] = createVolumeBackupApplication($team);
|
||||
|
||||
Reference in new issue
Block a user