Restructure UX and seed a fully simulated organisation
Rework the dashboard, environment topology view, header navigation, and status rendering, and standardise selects on a shadcn-vue component. Replace the thin database seeder with a SimulatedEnvironmentSeeder that builds a fully wired, mostly-running organisation (ACTIVE server fleet, managed + GHCR registries, Gitea source provider, ClipBin app with production/staging environments, services, slices, endpoints, managed variables, build artifacts, and a completed/in-progress/failed operations history) so the new UI renders against realistic data.
This commit is contained in:
@@ -26,6 +26,7 @@ use App\Http\Controllers\ServiceReplicaController;
|
||||
use App\Http\Controllers\ServiceSliceController;
|
||||
use App\Http\Controllers\ServiceUpdateController;
|
||||
use App\Http\Controllers\SourceProviderController;
|
||||
use App\Models\Application;
|
||||
use App\Models\Operation;
|
||||
use App\Models\Service;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
@@ -41,13 +42,21 @@ Route::middleware(['auth', 'verified'])->group(function () {
|
||||
|
||||
return inertia('Dashboard', [
|
||||
'organisations' => $organisations,
|
||||
'recentOperations' => Operation::query()
|
||||
->with('target')
|
||||
'recentApplications' => Application::query()
|
||||
->whereIn('organisation_id', $organisationIds)
|
||||
->with(['sourceProvider', 'environments'])
|
||||
->latest('updated_at')
|
||||
->limit(6)
|
||||
->get(),
|
||||
'deployments' => Operation::query()
|
||||
->with(['target' => fn ($morphTo) => $morphTo->morphWith([
|
||||
Service::class => ['environment.application'],
|
||||
])])
|
||||
->whereHasMorph('target', [Service::class], fn ($query) => $query->whereIn('organisation_id', $organisationIds))
|
||||
->latest()
|
||||
->limit(5)
|
||||
->limit(15)
|
||||
->get(),
|
||||
'unhealthyServices' => \App\Models\Service::query()
|
||||
'unhealthyServices' => Service::query()
|
||||
->whereIn('organisation_id', $organisationIds)
|
||||
->whereNot('status', ServiceStatus::RUNNING)
|
||||
->latest()
|
||||
|
||||
Reference in New Issue
Block a user