feat(ui): unify resource nav sidebars and polish project layouts

Extract application/database/service configuration sidebars and
unified headings; improve clone-to-environment, embedded deployments,
storage actions, OAuth icons, terminal, and shared form components.
This commit is contained in:
Andras Bacsai
2026-08-05 17:56:59 +02:00
parent 2291c3fa1c
commit 5de6f97256
85 changed files with 2087 additions and 981 deletions
@@ -0,0 +1,29 @@
<?php
it('matches the storage backup overview layout', function () {
$index = file_get_contents(resource_path('views/livewire/project/database/backup/index.blade.php'));
$schedules = file_get_contents(resource_path('views/livewire/project/database/scheduled-backups.blade.php'));
$component = file_get_contents(app_path('Livewire/Project/Database/Backup/Index.php'));
expect($index)
->toContain('title="Database backups"')
->toContain('Schedules')
->toContain('Enabled')
->toContain('Total executions')
->toContain('application-settings-form flex min-w-0 flex-col gap-6')
->and($schedules)
->toContain('placeholder="Search backups"')
->toContain('data-table overflow-hidden rounded-xl border')
->toContain('<span class="block truncate text-[12px] font-semibold')
->toContain('<a class="button" {{ wireNavigate() }} href="{{ $backupRoute }}">Manage</a>')
->and($component)->toContain("withCount('executions')");
});
it('returns from database backup settings to the database', function () {
$sidebar = file_get_contents(resource_path('views/components/backup-sidebar.blade.php'));
expect($sidebar)
->toContain("'back' => 'project.database.configuration'")
->toContain("'Back to database'")
->toContain("except('backup_uuid')");
});