Files
coolify/resources/views/components/security/settings-layout.blade.php
T
Andras Bacsai fa1895c99a feat(dashboard): add canvas view with active deployment overlay
Add a /dashboard/canvas page that renders every team server with its
resources and their running or queued deployments, backed by a new
ServerCanvasController::dashboard endpoint and a per-server usage
endpoint for zone headers. The dashboard remembers the list/canvas
choice and each section (projects, servers) its own table/grid view.

- Show Deploying/Queued pills on canvas cards and a foldable recent
  deployments panel; add shared CanvasControls component
- Allow backup downloads from the server host via the S3 download
  storage (PrepareFileDownloadJob accepts a null container)
- Extract backup toggle/run actions into ManagesDatabaseBackup and
  surface them in backup execution headers; merge S3 and retention
  sections into the general backup settings
- Move deployments indicator to the top bar and add a main nav
  resource menu with submenus; simplify breadcrumbs and settings
  layouts
- Add shared variables overview canvas and scheduled task modals
- Add feature tests for dashboard canvas, view modes, navbar
  submenus, backup S3 downloads and scheduled task modals
2026-10-14 23:55:28 +02:00

53 lines
2.2 KiB
PHP

@php
$securityMenuItems = collect([
[
'label' => 'Private Keys',
'route' => 'security.private-key.index',
'active' => request()->routeIs('security.private-key.*'),
'icon' => 'keys',
],
auth()->user()?->can('viewAny', App\Models\CloudProviderToken::class) ? [
'label' => 'Cloud Tokens',
'route' => 'security.cloud-tokens',
'active' => request()->routeIs('security.cloud-tokens*'),
'icon' => 'cloud',
] : null,
auth()->user()?->can('viewAny', App\Models\IntegrationToken::class) ? [
'label' => 'Integration Tokens',
'route' => 'security.integration-tokens',
'active' => request()->routeIs('security.integration-tokens'),
'icon' => 'network',
] : null,
auth()->user()?->can('viewAny', App\Models\CloudInitScript::class) ? [
'label' => 'Cloud-Init Scripts',
'route' => 'security.cloud-init-scripts',
'active' => request()->routeIs('security.cloud-init-scripts*'),
'icon' => 'file-content',
] : null,
[
'label' => 'API Tokens',
'route' => 'security.api-tokens',
'active' => request()->routeIs('security.api-tokens'),
'icon' => 'code',
],
])->filter();
@endphp
{{-- These pages are in the Keys & Tokens submenu of the main sidebar (components/navbar.blade.php). --}}
<section class="w-full max-w-none">
<header class="settings-mobile-header xl:hidden">
<h1 class="settings-mobile-title">Keys & Tokens</h1>
<p class="settings-mobile-description">Manage SSH keys, cloud credentials, and API access tokens.</p>
</header>
{{-- Feeds the page search with the Keys & Tokens pages. --}}
<div hidden data-settings-search-items="{{ json_encode(settingsSearchItems(['Keys & Tokens' => $securityMenuItems], [])) }}"></div>
<div class="min-w-0">
@isset($actions)
<div class="mb-3 flex min-h-8 flex-wrap items-center justify-end gap-2">
{{ $actions }}
</div>
@endisset
{{ $slot }}
</div>
</section>