An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(auth): stop storing the current team as a user attribute
Andras Bacsaid666a0a95697
diff --git a/app/Actions/Fortify/CreateNewUser.php b/app/Actions/Fortify/CreateNewUser.phpindex c69863c572..f24b9699f2 100644--- a/app/Actions/Fortify/CreateNewUser.php+++ b/app/Actions/Fortify/CreateNewUser.php@@ -81,7 +81,7 @@ class CreateNewUser implements CreatesNewUsers}}// Set session variable- session(['currentTeam' => $user->currentTeam = $team]);+ session(['currentTeam' => $team]);return $user;}diff --git a/app/Livewire/Project/Database/BackupNow.php b/app/Livewire/Project/Database/BackupNow.phpdeleted file mode 100644index 39a1960119..0000000000--- a/app/Livewire/Project/Database/BackupNow.php+++ /dev/null@@ -1,40 +0,0 @@-<?php--namespace App\Livewire\Project\Database;--use App\Jobs\DatabaseBackupJob;-use Illuminate\Foundation\Auth\Access\AuthorizesRequests;-use Livewire\Component;--class BackupNow extends Component-{- use AuthorizesRequests;-- public $backup;-- public function backupNow()- {- try {- $this->authorize('manageBackups', $this->backup->database);-- $database = $this->backup->database->refresh();- if ($database->id !== 0 && ! str($database->status)->startsWith('running')) {- $this->dispatch('error', 'The database must be running to start a backup.');-- return;- }-- DatabaseBackupJob::dispatch($this->backup);- $database = $this->backup->database;- auditLog('ui.database.backup_started', [- 'team_id' => $database->team()?->id,- 'database_uuid' => $database->uuid,- 'database_name' => $database->name,- 'backup_uuid' => $this->backup->uuid,- ]);- $this->dispatch('success', 'Backup queued. It will be available in a few minutes.');- } catch (\Throwable $e) {- return handleError($e, $this);- }- }-}diff --git a/app/Livewire/Project/New/EmptyProject.php b/app/Livewire/Project/New/EmptyProject.phpdeleted file mode 100644index b2187c6155..0000000000--- a/app/Livewire/Project/New/EmptyProject.php+++ /dev/null@@ -1,25 +0,0 @@-<?php--namespace App\Livewire\Project\New;--use App\Models\Project;-use Illuminate\Foundation\Auth\Access\AuthorizesRequests;-use Livewire\Component;--class EmptyProject extends Component-{- use AuthorizesRequests;-- public function createEmptyProject()- {- $this->authorize('create', Project::class);-- $project = Project::create([- 'name' => generate_random_name(),- 'team_id' => currentTeam()->id,- 'uuid' => new_public_id(),- ]);-- return redirectRoute($this, 'project.show', ['project_uuid' => $project->uuid, 'environment_uuid' => $project->environments->first()->uuid]);- }-}diff --git a/app/Livewire/Project/Service/EditDomain.php b/app/Livewire/Project/Service/EditDomain.phpdeleted file mode 100644index f099891534..0000000000--- a/app/Livewire/Project/Service/EditDomain.php+++ /dev/null@@ -1,168 +0,0 @@-<?php--namespace App\Livewire\Project\Service;--use App\Models\ServiceApplication;-use App\Support\ValidationPatterns;-use Illuminate\Foundation\Auth\Access\AuthorizesRequests;-use Livewire\Attributes\Validate;-use Livewire\Component;--class EditDomain extends Component-{- use AuthorizesRequests;-- public $applicationId;-- public ServiceApplication $application;-- public $domainConflicts = [];-- public $showDomainConflictModal = false;-- public $forceSaveDomains = false;-- public $showPortWarningModal = false;-- public $forceRemovePort = false;-- public $requiredPort = null;-- #[Validate]- public ?string $fqdn = null;-- protected function rules(): array- {- return [- 'fqdn' => ValidationPatterns::applicationDomainRules(),- ];- }-- public function mount()- {- $this->application = ServiceApplication::ownedByCurrentTeam()->findOrFail($this->applicationId);- $this->authorize('view', $this->application);- $this->requiredPort = $this->application->getRequiredPort();- $this->syncData();- }-- private function syncData(bool $toModel = false): void- {- if ($toModel) {- $this->validate();-- // Sync to model- $this->application->setEditableUrls($this->fqdn);-- $this->application->save();- } else {- // Sync from model- $this->fqdn = $this->application->url;- }- }-- public function confirmDomainUsage()- {- $this->forceSaveDomains = true;- $this->showDomainConflictModal = false;- $this->submit();- }-- public function confirmRemovePort()- {- $this->forceRemovePort = true;- $this->showPortWarningModal = false;- $this->submit();- }-- public function cancelRemovePort()- {- $this->showPortWarningModal = false;- $this->syncData(); // Reset to original FQDN- }-- public function submit()- {- try {- $persistedApplication = $this->application->fresh();- $previousEditableUrls = $persistedApplication->url;- $previousFqdn = $persistedApplication->fqdn;- $previousPortOverrides = $persistedApplication->domain_port_overrides;- $this->authorize('update', $this->application);- $this->validate();-- $this->fqdn = ValidationPatterns::normalizeApplicationDomains($this->fqdn);- $warning = sslipDomainWarning($this->fqdn);- if ($warning) {- $this->dispatch('warning', __('warning.sslipdomain'));- }- // Sync to model for domain conflict check (without validation)- $this->application->setEditableUrls($this->fqdn);- // Check for domain conflicts if not forcing save- if (! $this->forceSaveDomains) {- $result = checkDomainUsage(resource: $this->application);- if ($result['hasConflicts']) {- $this->domainConflicts = $result['conflicts'];- $this->showDomainConflictModal = true;-- return;- }- } else {- // Reset the force flag after using it- $this->forceSaveDomains = false;- }-- // Check for required port- if (! $this->forceRemovePort) {- $requiredPort = $this->application->getRequiredPort();-- if ($requiredPort !== null) {- foreach (str($this->fqdn)->trim()->explode(',') as $fqdn) {- $fqdn = trim((string) $fqdn);- if ($fqdn === '') {- continue;- }-- if ($this->application->portRequiresConfirmation($fqdn, $requiredPort, $previousEditableUrls)) {- $this->requiredPort = $requiredPort;- $this->showPortWarningModal = true;- $this->application->fqdn = $previousFqdn;- $this->application->domain_port_overrides = $previousPortOverrides;-- return;- }- }- }- } else {- // Reset the force flag after using it- $this->forceRemovePort = false;- }-- $this->validate();- $this->application->save();- $this->application->refresh();- $this->syncData();- updateCompose($this->application);- if (str($this->application->fqdn)->contains(',')) {- $this->dispatch('warning', 'Some services do not support multiple domains, which can lead to problems and is NOT RECOMMENDED.<br><br>Only use multiple domains if you know what you are doing.');- }- $this->application->service->parse();- $this->dispatch('refresh');- $this->dispatch('refreshServices');- $this->dispatch('configurationChanged');- } catch (\Throwable $e) {- $originalFqdn = $this->application->getOriginal('fqdn');- if ($originalFqdn !== $this->application->fqdn) {- $this->application->fqdn = $originalFqdn;- $this->syncData();- }-- return handleError($e, $this);- }- }-- public function render()- {- return view('livewire.project.service.edit-domain');- }-}diff --git a/app/Livewire/Project/Shared/UploadConfig.php b/app/Livewire/Project/Shared/UploadConfig.phpdeleted file mode 100644index 0f08946879..0000000000--- a/app/Livewire/Project/Shared/UploadConfig.php+++ /dev/null@@ -1,48 +0,0 @@-<?php--namespace App\Livewire\Project\Shared;--use App\Models\Application;-use Illuminate\Foundation\Auth\Access\AuthorizesRequests;-use Livewire\Component;--class UploadConfig extends Component-{- use AuthorizesRequests;-- public $config;-- public $applicationId;-- public function mount()- {- if (isDev()) {- $this->config = '{- "build_pack": "nixpacks",- "base_directory": "/nodejs",- "publish_directory": "/",- "ports_exposes": "3000",- "settings": {- "is_static": false- }-}';- }- }-- public function uploadConfig()- {- try {- $application = Application::ownedByCurrentTeam()->findOrFail($this->applicationId);- $this->authorize('update', $application);- $application->setConfig($this->config);- $this->dispatch('success', 'Application settings updated');- } catch (\Throwable $e) {- return handleError($e, $this);- }- }-- public function render()- {- return view('livewire.project.shared.upload-config');- }-}diff --git a/app/Livewire/Tags/Deployments.php b/app/Livewire/Tags/Deployments.phpdeleted file mode 100644index d5c26e32c9..0000000000--- a/app/Livewire/Tags/Deployments.php+++ /dev/null@@ -1,39 +0,0 @@-<?php--namespace App\Livewire\Tags;--use App\Models\Application;-use App\Models\ApplicationDeploymentQueue;-use Livewire\Component;--class Deployments extends Component-{- public $deploymentsPerTagPerServer = [];-- public $resourceIds = [];-- public function render()- {- return view('livewire.tags.deployments');- }-- public function getDeployments()- {- try {- $applicationIds = Application::ownedByCurrentTeam()->whereIn('id', $this->resourceIds)->pluck('id');- $this->deploymentsPerTagPerServer = ApplicationDeploymentQueue::whereIn('status', ['in_progress', 'queued'])->whereIn('application_id', $applicationIds)->get([- 'id',- 'application_id',- 'application_name',- 'deployment_url',- 'pull_request_id',- 'server_name',- 'server_id',- 'status',- ])->sortBy('id')->groupBy('server_name')->toArray();- $this->dispatch('deployments', $this->deploymentsPerTagPerServer);- } catch (\Exception $e) {- return handleError($e, $this);- }- }-}diff --git a/app/Livewire/Team/Storage/Show.php b/app/Livewire/Team/Storage/Show.phpdeleted file mode 100644index d3051afd42..0000000000--- a/app/Livewire/Team/Storage/Show.php+++ /dev/null@@ -1,24 +0,0 @@-<?php--namespace App\Livewire\Team\Storage;--use App\Models\S3Storage;-use Livewire\Component;--class Show extends Component-{- public $storage = null;-- public function mount()- {- $this->storage = S3Storage::ownedByCurrentTeam()->whereUuid(request()->storage_uuid)->first();- if (! $this->storage) {- abort(404);- }- }-- public function render()- {- return view('livewire.storage.show');- }-}diff --git a/app/Providers/FortifyServiceProvider.php b/app/Providers/FortifyServiceProvider.phpindex 6426860187..50df845f7b 100644--- a/app/Providers/FortifyServiceProvider.php+++ b/app/Providers/FortifyServiceProvider.php@@ -27,7 +27,7 @@ class FortifyServiceProvider extends ServiceProviderpublic function toResponse($request){// First user (root) will be redirected to /settings instead of / on registration.- if ($request->user()->currentTeam->id === 0) {+ if ($request->user()->currentTeam()?->id === 0) {return redirect()->route('settings.index');}@@ -88,9 +88,9 @@ class FortifyServiceProvider extends ServiceProviderif (! $user->teams()->where('team_id', $invitation->team->id)->exists()) {$user->teams()->attach($invitation->team->id, ['role' => $invitation->role]);}- $user->currentTeam = $invitation->team;+ $team = $invitation->team;$invitation->delete();- session(['currentTeam' => $user->currentTeam]);+ session(['currentTeam' => $team]);} else {// Restore the last active team; only fall back when unambiguous.$team = $user->resolveStoredTeam();@@ -98,7 +98,7 @@ class FortifyServiceProvider extends ServiceProvider$team = $user->recreate_personal_team();}if ($team) {- session(['currentTeam' => $user->currentTeam = $team]);+ session(['currentTeam' => $team]);}// Otherwise (multiple teams, no stored choice) leave the session// team unset so the user is sent to the team-selection screen.diff --git a/app/Services/Auth/OauthLoginService.php b/app/Services/Auth/OauthLoginService.phpindex 761b6a8ccb..5915b0cd8a 100644--- a/app/Services/Auth/OauthLoginService.php+++ b/app/Services/Auth/OauthLoginService.php@@ -29,7 +29,7 @@ class OauthLoginService: $this->resolveOauthUser($oauthUser, $oauthSetting, $email);$team = $user->currentTeam() ?? $user->teams()->first() ?? $user->recreate_personal_team();- session(['currentTeam' => $user->currentTeam = $team]);+ session(['currentTeam' => $team]);if ($this->requiresTwoFactorChallenge($user)) {Auth::logout();diff --git a/app/View/Components/Forms/Select.php b/app/View/Components/Forms/Select.phpdeleted file mode 100644index 327c33da65..0000000000--- a/app/View/Components/Forms/Select.php+++ /dev/null@@ -1,71 +0,0 @@-<?php--namespace App\View\Components\Forms;--use Closure;-use Illuminate\Contracts\View\View;-use Illuminate\Support\Facades\Gate;-use Illuminate\View\Component;--class Select extends Component-{- public ?string $modelBinding = null;-- public ?string $htmlId = null;-- /**- * Create a new component instance.- */- public function __construct(- public ?string $id = null,- public ?string $name = null,- public ?string $label = null,- public ?string $helper = null,- public bool $required = false,- public bool $disabled = false,- public string $defaultClass = 'select w-full',- public ?string $canGate = null,- public mixed $canResource = null,- public bool $autoDisable = true,- ) {- // Handle authorization-based disabling- if ($this->canGate && $this->canResource && $this->autoDisable) {- $hasPermission = Gate::allows($this->canGate, $this->canResource);-- if (! $hasPermission) {- $this->disabled = true;- }- }- }-- /**- * Get the view / contents that represent the component.- */- public function render(): View|Closure|string- {- // Store original ID for wire:model binding (property name)- $this->modelBinding = $this->id;-- if (is_null($this->id)) {- $this->id = new_public_id();- // Don't create wire:model binding for auto-generated IDs- $this->modelBinding = 'null';- }-- // Generate unique HTML ID by adding random suffix- // This prevents duplicate IDs when multiple forms are on the same page- if ($this->modelBinding && $this->modelBinding !== 'null') {- // Use original ID with random suffix for uniqueness- $uniqueSuffix = new_public_id();- $this->htmlId = $this->modelBinding.'-'.$uniqueSuffix;- } else {- $this->htmlId = (string) $this->id;- }-- if (is_null($this->name)) {- $this->name = $this->modelBinding !== 'null' ? $this->modelBinding : (string) $this->id;- }-- return view('components.forms.select');- }-}diff --git a/app/View/Components/Modal.php b/app/View/Components/Modal.phpdeleted file mode 100644index 7e254ebdcd..0000000000--- a/app/View/Components/Modal.php+++ /dev/null@@ -1,34 +0,0 @@-<?php--namespace App\View\Components;--use Closure;-use Illuminate\Contracts\View\View;-use Illuminate\View\Component;--class Modal extends Component-{- /**- * Create a new component instance.- */- public function __construct(- public string $modalId,- public ?string $submitWireAction = null,- public ?string $modalTitle = null,- public ?string $modalBody = null,- public ?string $modalSubmit = null,- public bool $noSubmit = false,- public bool $yesOrNo = false,- public string $action = 'delete'- ) {- //- }-- /**- * Get the view / contents that represent the component.- */- public function render(): View|Closure|string- {- return view('components.modal');- }-}diff --git a/app/View/Components/ResourceView.php b/app/View/Components/ResourceView.phpdeleted file mode 100644index d1107465b9..0000000000--- a/app/View/Components/ResourceView.php+++ /dev/null@@ -1,28 +0,0 @@-<?php--namespace App\View\Components;--use Closure;-use Illuminate\Contracts\View\View;-use Illuminate\View\Component;--class ResourceView extends Component-{- /**- * Create a new component instance.- */- public function __construct(- public ?string $wire = null,- public ?string $logo = null,- public ?string $documentation = null,- public bool $upgrade = false,- ) {}-- /**- * Get the view / contents that represent the component.- */- public function render(): View|Closure|string- {- return view('components.resource-view');- }-}diff --git a/app/View/Components/Services/Advanced.php b/app/View/Components/Services/Advanced.phpdeleted file mode 100644index 99729a2629..0000000000--- a/app/View/Components/Services/Advanced.php+++ /dev/null@@ -1,26 +0,0 @@-<?php--namespace App\View\Components\Services;--use App\Models\Service;-use Closure;-use Illuminate\Contracts\View\View;-use Illuminate\View\Component;--class Advanced extends Component-{- /**- * Create a new component instance.- */- public function __construct(- public ?Service $service = null- ) {}-- /**- * Get the view / contents that represent the component.- */- public function render(): View|Closure|string- {- return view('components.services.advanced');- }-}diff --git a/app/View/Components/Services/Explanation.php b/app/View/Components/Services/Explanation.phpdeleted file mode 100644index a2242d0e10..0000000000--- a/app/View/Components/Services/Explanation.php+++ /dev/null@@ -1,26 +0,0 @@-<?php--namespace App\View\Components\Services;--use Closure;-use Illuminate\Contracts\View\View;-use Illuminate\View\Component;--class Explanation extends Component-{- /**- * Create a new component instance.- */- public function __construct()- {- //- }-- /**- * Get the view / contents that represent the component.- */- public function render(): View|Closure|string- {- return view('components.services.explanation');- }-}diff --git a/app/View/Components/Status/Index.php b/app/View/Components/Status/Index.phpdeleted file mode 100644index ada9eb6823..0000000000--- a/app/View/Components/Status/Index.php+++ /dev/null@@ -1,26 +0,0 @@-<?php--namespace App\View\Components\Status;--use Closure;-use Illuminate\Contracts\View\View;-use Illuminate\View\Component;--class Index extends Component-{- /**- * Create a new component instance.- */- public function __construct(- public $resource = null,- public bool $showRefreshButton = true,- ) {}-- /**- * Get the view / contents that represent the component.- */- public function render(): View|Closure|string- {- return view('components.status.index');- }-}diff --git a/app/View/Components/Status/Services.php b/app/View/Components/Status/Services.phpdeleted file mode 100644index 2918418547..0000000000--- a/app/View/Components/Status/Services.php+++ /dev/null@@ -1,30 +0,0 @@-<?php--namespace App\View\Components\Status;--use App\Models\Service;-use Closure;-use Illuminate\Contracts\View\View;-use Illuminate\View\Component;--class Services extends Component-{- /**- * Create a new component instance.- */- public function __construct(- public Service $service,- public string $complexStatus = 'exited',- public bool $showRefreshButton = true- ) {- $this->complexStatus = $service->status;- }-- /**- * Get the view / contents that represent the component.- */- public function render(): View|Closure|string- {- return view('components.status.services');- }-}diff --git a/resources/views/components/applications/advanced.blade.php b/resources/views/components/applications/advanced.blade.phpdeleted file mode 100644index 8bd169b015..0000000000--- a/resources/views/components/applications/advanced.blade.php+++ /dev/null@@ -1,4 +0,0 @@-{{-- Application Advanced is unused. Deploy (without cache) lives on the Deploy- dropdown. Keep this file so Advanced menus stay on the name="grid" icon. --}}-@props(['application'])-diff --git a/resources/views/components/applications/deploy.blade.php b/resources/views/components/applications/deploy.blade.phpdeleted file mode 100644index e5214353f2..0000000000--- a/resources/views/components/applications/deploy.blade.php+++ /dev/null@@ -1,79 +0,0 @@-@props(['application'])--@php- $canDeploy = auth()->user()->can('deploy', $application);- $isExited = str($application->status)->startsWith('exited');- $isSwarm = $application->destination->server->isSwarm();- $isCompose = $application->build_pack === 'dockercompose';- $withoutCacheAction = $application->status === 'running' ? 'force_deploy_without_cache' : 'deploy(true)';-@endphp--@if ($isExited)- @if ($isSwarm)- <button type="button" class="button" @disabled(! $canDeploy) wire:click="deploy">- <x-reicon name="play-circle" class="size-3.5 opacity-70" />- Deploy- </button>- @else- <div class="relative" x-data="{ open: false }"- x-effect="$dispatch('resource-actions-toggled', { open })"- @click.outside="open = false" @keydown.escape.window="open = false">- <button type="button" class="button" @click="open = !open" :aria-expanded="open"- aria-haspopup="menu" @disabled(! $canDeploy)>- <x-reicon name="play-circle" class="size-3.5 opacity-70" />- Deploy- <span class="inline-flex transition-transform" :class="open && 'rotate-180'">- <x-reicon name="chevron-down" class="size-3 opacity-55" />- </span>- </button>-- <div x-cloak x-show="open" x-transition.origin.top.right- class="listbox-panel top-full! right-0! left-auto! mt-1! w-60! min-w-0!" role="menu">- <button type="button" class="listbox-option justify-start! gap-2.5!"- @disabled(! $canDeploy) wire:click="deploy" @click="open = false" role="menuitem">- <x-reicon name="play-circle" class="size-3.5 opacity-70" />- Deploy- </button>- <button type="button" class="listbox-option justify-start! gap-2.5!"- @disabled(! $canDeploy) wire:click="{{ $withoutCacheAction }}"- @click="open = false" role="menuitem">- <x-reicon name="refresh" class="size-3.5 opacity-70" />- Deploy (without cache)- </button>- </div>- </div>- @endif-@elseif (! $isSwarm)- <div class="relative" x-data="{ open: false }"- x-effect="$dispatch('resource-actions-toggled', { open })"- @click.outside="open = false" @keydown.escape.window="open = false">- <button type="button" class="button" @click="open = !open" :aria-expanded="open"- aria-haspopup="menu" @disabled(! $canDeploy)>- <x-reicon name="refresh" class="size-3.5 opacity-70" />- Redeploy- <span class="inline-flex transition-transform" :class="open && 'rotate-180'">- <x-reicon name="chevron-down" class="size-3 opacity-55" />- </span>- </button>-- <div x-cloak x-show="open" x-transition.origin.top.right- class="listbox-panel top-full! right-0! left-auto! mt-1! w-60! min-w-0!" role="menu">- <button type="button" class="listbox-option justify-start! gap-2.5!"- @disabled(! $canDeploy) wire:click="deploy" @click="open = false" role="menuitem">- <x-reicon name="refresh" class="size-3.5 opacity-70" />- Deploy- </button>- <button type="button" class="listbox-option justify-start! gap-2.5!"- @disabled(! $canDeploy) wire:click="{{ $withoutCacheAction }}"- @click="open = false" role="menuitem">- <x-reicon name="refresh" class="size-3.5 opacity-70" />- Deploy (without cache)- </button>- </div>- </div>-@elseif (! $isCompose)- <button type="button" class="button" @disabled(! $canDeploy) wire:click="deploy">- <x-reicon name="refresh" class="size-3.5 opacity-70" />- Update Service- </button>-@endifdiff --git a/resources/views/components/confirm-modal.blade.php b/resources/views/components/confirm-modal.blade.phpdeleted file mode 100644index a0cd8d01ee..0000000000--- a/resources/views/components/confirm-modal.blade.php+++ /dev/null@@ -1,30 +0,0 @@-<script>- document.addEventListener('alpine:init', () => {- Alpine.data('confirmModal', () => ({- open: false,- confirmAction: null,- message: 'Are you sure?',- toggleConfirmModal(customMessage, confirmAction) {- this.confirmAction = confirmAction- this.message = customMessage- this.open = !this.open- },- confirmed() {- this.open = false- this.$dispatch(this.confirmAction)- }- }))- })-</script>-<div x-cloak x-show="open" x-transition.opacity class="fixed inset-0 bg-slate-900/75"></div>-<div x-cloak x-show="open" x-transition class="fixed inset-0 z-50 flex pt-10">- <div @click.away="open = false" class="w-screen h-20 max-w-xl mx-auto bg-black rounded-lg">- <div class="flex flex-col items-center justify-center h-full">- <div class="pb-5 dark:text-white" x-text="message"></div>- <div>- <x-forms.button x-on:click='confirmed()'>Confirm</x-forms.button>- <x-forms.button x-on:click="open = false">Cancel</x-forms.button>- </div>- </div>- </div>-</div>diff --git a/resources/views/components/dropdown.blade.php b/resources/views/components/dropdown.blade.phpdeleted file mode 100644index e6d4c0af5d..0000000000--- a/resources/views/components/dropdown.blade.php+++ /dev/null@@ -1,84 +0,0 @@-@props([- 'inline' => false,- 'triggerClass' => '',- 'panelClass' => '',-])--<div x-data="{- dropdownOpen: false,- panelStyles: '',- open() {- this.dropdownOpen = true;- this.updatePanelPosition();- },- close() {- this.dropdownOpen = false;- },- updatePanelPosition() {- if ({{ $inline ? 'true' : 'false' }} || window.innerWidth >= 768) {- this.panelStyles = '';-- return;- }-- this.$nextTick(() => {- const triggerRect = this.$refs.trigger.getBoundingClientRect();- const panelRect = this.$refs.panel.getBoundingClientRect();- const viewportPadding = 8;- let left = triggerRect.left;-- if ((left + panelRect.width + viewportPadding) > window.innerWidth) {- left = window.innerWidth - panelRect.width - viewportPadding;- }-- left = Math.max(viewportPadding, left);-- let top = triggerRect.bottom + 4;- const maxTop = window.innerHeight - panelRect.height - viewportPadding;-- if (top > maxTop) {- top = Math.max(viewportPadding, triggerRect.top - panelRect.height - viewportPadding);- }-- this.panelStyles = `position: fixed; left: ${left}px; top: ${top}px;`;- });- }-}" @class(['relative', 'w-full' => $inline]) @click.outside="if (! {{ $inline ? 'true' : 'false' }}) close()" x-on:resize.window="if (dropdownOpen) updatePanelPosition()">- <button type="button" x-ref="trigger" @click="dropdownOpen ? close() : open()"- @class([- 'inline-flex items-center justify-start pr-8 transition-colors focus:outline-hidden disabled:opacity-50 disabled:pointer-events-none',- 'w-full border border-neutral-300 bg-white px-3 py-2 text-left dark:border-coolgray-300 dark:bg-coolgray-100' => $inline,- $triggerClass,- ])>- <span class="flex flex-col items-start h-full leading-none">- {{ $title }}- </span>- <svg class="absolute right-0 w-4 h-4 mr-3" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"- stroke-width="1.5" stroke="currentColor">- <path stroke-linecap="round" stroke-linejoin="round"- d="M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" />- </svg>- </button>-- <div x-ref="panel" x-show="dropdownOpen" @click.away="if (! {{ $inline ? 'true' : 'false' }}) close()"- x-transition:enter="transition ease-out duration-150"- x-transition:enter-start="opacity-0 -translate-y-1 scale-[0.98]"- x-transition:enter-end="opacity-100 translate-y-0 scale-100"- x-transition:leave="transition ease-in duration-100"- x-transition:leave-start="opacity-100 translate-y-0 scale-100"- x-transition:leave-end="opacity-0 -translate-y-1 scale-[0.98]"- :style="panelStyles" @class([- 'origin-top' => true,- 'mt-1 w-full' => $inline,- 'absolute top-full z-50 mt-1 min-w-max max-w-[calc(100vw-1rem)] md:top-0 md:mt-6' => ! $inline,- ]) x-cloak>- <div @class([- 'border border-neutral-300 bg-white p-1 dark:border-coolgray-300',- 'shadow-[var(--shadow-dropdown)] dark:bg-coolgray-200' => ! $inline,- 'border-0 bg-transparent shadow-none dark:border-0 dark:bg-transparent' => $inline,- $panelClass,- ])>- {{ $slot }}- </div>- </div>-</div>diff --git a/resources/views/components/forms/domain-chips.blade.php b/resources/views/components/forms/domain-chips.blade.phpdeleted file mode 100644index 7148eb7d28..0000000000--- a/resources/views/components/forms/domain-chips.blade.php+++ /dev/null@@ -1,91 +0,0 @@-@props([- 'label' => 'Domains',- 'helper' => 'Add one domain per entry. Press Enter (or type a comma) to add it. You can specify a path and a port to bind the domain to.<br><br><span class=\'text-helper\'>Example</span><br>- https://app.coolify.io/api/v3<br>- https://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container.<br>- https://app.coolify.io:8080/api -> app.coolify.io/api will point to port 8080 inside the container.',- 'model' => 'fqdn',- 'disabled' => false,- 'required' => false,- 'placeholder' => 'https://coolify.io',- 'canUpdate' => null,-])--@php- $canEdit = $canUpdate ?? ! $disabled;-@endphp--<div {{ $attributes->class(['w-full']) }}>- @if ($label)- <label class="mb-1 flex w-fit items-center gap-1.5 text-sm font-medium">- {{ $label }}- @if ($required)- <x-highlighted text="*" />- @endif- @if ($helper)- <x-helper :helper="$helper" />- @endif- </label>- @endif- <div class="chip-input" x-data="{- raw: @entangle($model),- entry: '',- canUpdate: @js((bool) $canEdit),- get domains() {- return (this.raw ?? '').split(',').map((domain) => domain.trim()).filter(Boolean);- },- commit(list) {- this.raw = list.join(',');- },- addValue(value) {- value = value.trim().replace(/,+$/, '');- if (!value) return;- const list = this.domains;- if (!list.includes(value)) {- list.push(value);- this.commit(list);- }- },- add() {- const value = this.entry;- this.entry = '';- this.addValue(value);- },- onInput() {- if (this.entry.includes(',')) {- const parts = this.entry.split(',');- this.entry = parts.pop().trim();- parts.forEach((part) => this.addValue(part));- }- },- remove(index) {- if (!this.canUpdate) return;- const list = this.domains;- list.splice(index, 1);- this.commit(list);- },- onKeydown(event) {- if (event.key === ',') {- event.preventDefault();- this.add();- } else if (event.key === 'Backspace' && this.entry === '') {- this.remove(this.domains.length - 1);- }- }- }" @click="$refs.domainEntry.focus()">- <template x-for="(domain, index) in domains" :key="domain + '-' + index">- <span class="chip">- <span x-text="domain"></span>- <button type="button" class="chip-remove" x-show="canUpdate"- :aria-label="'Remove ' + domain" @click.stop="remove(index)">- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"- stroke-width="2" stroke="currentColor" class="size-3">- <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />- </svg>- </button>- </span>- </template>- <input x-ref="domainEntry" x-model="entry"- :placeholder="domains.length === 0 ? @js($placeholder) : ''"- autocomplete="off" spellcheck="false" @input="onInput()"- @keydown.enter.prevent.stop="add()" x-on:keydown="onKeydown($event)"- @blur="add()" @disabled($disabled) x-bind:disabled="!canUpdate" />- </div>-</div>diff --git a/resources/views/components/forms/select.blade.php b/resources/views/components/forms/select.blade.phpdeleted file mode 100644index a085d521ca..0000000000--- a/resources/views/components/forms/select.blade.php+++ /dev/null@@ -1,25 +0,0 @@-<div class="w-full">- @if ($label)- <div class="mb-1.5 flex h-4 w-full items-center gap-1.5">- <label- class="mb-0! flex items-center gap-1 text-sm font-medium leading-4 {{ $disabled ? 'text-neutral-600' : '' }}">{{ $label }}- @if ($required)- <x-highlighted text="*" />- @endif- </label>- @if ($helper)- <x-helper :helper="$helper" />- @endif- </div>- @endif- <select {{ $attributes->merge(['class' => $defaultClass]) }} @disabled($disabled) @required($required)- wire:loading.attr="disabled" name={{ $modelBinding }} id="{{ $htmlId }}"- @if ($attributes->whereStartsWith('wire:model')->first()) {{ $attributes->whereStartsWith('wire:model')->first() }} wire:dirty.class="[box-shadow:inset_4px_0_0_#6b16ed,inset_0_0_0_2px_#e5e5e5] dark:[box-shadow:inset_4px_0_0_#fcd452,inset_0_0_0_2px_#242424]" @else wire:model={{ $modelBinding }} wire:dirty.class="[box-shadow:inset_4px_0_0_#6b16ed,inset_0_0_0_2px_#e5e5e5] dark:[box-shadow:inset_4px_0_0_#fcd452,inset_0_0_0_2px_#242424]" @endif>- {{ $slot }}- </select>- @error($modelBinding)- <label class="label">- <span class="text-red-500 label-text-alt">{{ $message }}</span>- </label>- @enderror-</div>diff --git a/resources/views/components/internal-link.blade.php b/resources/views/components/internal-link.blade.phpdeleted file mode 100644index cedea2a408..0000000000--- a/resources/views/components/internal-link.blade.php+++ /dev/null@@ -1,3 +0,0 @@-<svg class="inline-flex w-4 h-4 text-black dark:text-white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">- <path fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14m-6 6l6-6m-6-6l6 6"/>-</svg>diff --git a/resources/views/components/modal.blade.php b/resources/views/components/modal.blade.phpdeleted file mode 100644index 9dd8c9e9d6..0000000000--- a/resources/views/components/modal.blade.php+++ /dev/null@@ -1,56 +0,0 @@-<dialog id="{{ $modalId }}" class="modal">- @if ($yesOrNo)- <form method="dialog" class="rounded-sm modal-box max-h-[calc(100vh-5rem)] flex flex-col" @if (!$noSubmit) wire:submit='submit' @endif>- <div class="flex items-start overflow-y-auto" style="-webkit-overflow-scrolling: touch;">- <div class="flex items-center justify-center shrink-0 w-10 h-10 mr-4 rounded-full">- <svg class="w-8 h-8 text-error" fill="none" viewBox="0 0 24 24" stroke-width="1.5"- stroke="currentColor" aria-hidden="true">- <path stroke-linecap="round" stroke-linejoin="round"- d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z" />- </svg>- </div>- <div class="flex flex-col w-full gap-2">- @isset($modalTitle)- <h3 class="text-lg font-bold">{{ $modalTitle }}</h3>- @endisset- @isset($modalBody)- {{ $modalBody }}- @endisset- @if ($modalSubmit)- {{ $modalSubmit }}- @else- <div class="flex gap-4 mt-4">- <x-forms.button class="w-24 bg-coolgray-200 hover:bg-coolgray-100" type="button"- onclick="{{ $modalId }}.close()">Cancel- </x-forms.button>- <div class="flex-1"></div>- <x-forms.button class="w-24" isError type="button"- wire:click.prevent='{{ $action }}' onclick="{{ $modalId }}.close()">Continue- </x-forms.button>- </div>- @endif- </div>- </div>- </form>- @else- <form method="dialog" class="flex flex-col w-11/12 max-w-5xl max-h-[calc(100vh-5rem)] gap-2 rounded-sm modal-box overflow-y-auto"- style="-webkit-overflow-scrolling: touch;"- @if ($submitWireAction) wire:submit={{ $submitWireAction }} @endif- @if (!$noSubmit && !$submitWireAction) wire:submit='submit' @endif>- @isset($modalTitle)- <h3 class="text-lg font-bold">{{ $modalTitle }}</h3>- @endisset- @isset($modalBody)- {{ $modalBody }}- @endisset- @if ($modalSubmit)- {{ $modalSubmit }}- @endif-- </form>- @endif-- <form method="dialog" class="modal-backdrop">- <button>close</button>- </form>-</dialog>diff --git a/resources/views/components/notification/navbar.blade.php b/resources/views/components/notification/navbar.blade.phpdeleted file mode 100644index 25f75598b8..0000000000--- a/resources/views/components/notification/navbar.blade.php+++ /dev/null@@ -1,8 +0,0 @@-@props([- 'title' => 'Notifications',- 'subtitle' => 'Delivery channels for team events',- // Topbar + channel tabs identify the page at xl+; keep the H1 on tablet.- 'titleOnDesktop' => false,-])--<x-dashboard.navbar section="notifications" :title="$title" :subtitle="$subtitle" :titleOnDesktop="$titleOnDesktop" />diff --git a/resources/views/components/pricing-plans.blade.php b/resources/views/components/pricing-plans.blade.phpdeleted file mode 100644index 67b97e2d1d..0000000000--- a/resources/views/components/pricing-plans.blade.php+++ /dev/null@@ -1,444 +0,0 @@-@props([- 'showSubscribeButtons' => true,-])-<div x-data="{ selected: 'monthly' }" class="w-full pb-20">- <div class="px-6 mx-auto lg:px-8">- <div class="flex justify-center">- <fieldset- class="grid grid-cols-2 p-1 text-xs font-semibold leading-5 text-center rounded-sm dark:text-white gap-x-1 bg-white/5">- <legend class="sr-only">Payment frequency</legend>- <label class="cursor-pointer rounded-sm px-2.5 py-1"- :class="selected === 'monthly' ? 'bg-coollabs-100 text-white' : ''">- <input type="radio" x-on:click="selected = 'monthly'" name="frequency" value="monthly"- class="sr-only">- <span>Monthly</span>- </label>- <label class="cursor-pointer rounded-sm px-2.5 py-1"- :class="selected === 'yearly' ? 'bg-coollabs-100 text-white' : ''">- <input type="radio" x-on:click="selected = 'yearly'" name="frequency" value="annually"- class="sr-only">- <span>Annually</span>- </label>- </fieldset>- </div>- @if (config('constants.limits.trial_period') > 0)- <div class="py-2 text-center"><span- class="font-bold dark:text-warning">{{ config('constants.limits.trial_period') }}- days trial</span> included on all plans, without credit card details.</div>- @endif- <div x-show="selected === 'monthly'" class="flex justify-center h-10 mt-3 text-sm leading-6 ">- <div>Save <span class="font-bold text-black dark:text-warning">10%</span> annually with the yearly plans.- </div>- </div>- <div x-show="selected === 'yearly'" class="flex justify-center h-10 mt-3 text-sm leading-6 ">- <div>- </div>- </div>- <div class="p-4 rounded-sm bg-coolgray-400">- <h2 id="tier-hobby" class="flex items-start gap-4 text-4xl font-bold tracking-tight">Unlimited Trial- <x-forms.button><a class="font-bold dark:text-white hover:no-underline"- href="https://github.com/coollabsio/coolify">Get Started</a></x-forms.button>- </h2>- <p class="mt-4 text-sm leading-6">Start self-hosting <span class="dark:text-warning">without limits</span>- with- our- OSS version. Same features as the paid version, but you have to manage by yourself.</p>- </div>-- <div class="flow-root mt-12">- <div class="pb-10 text-xl text-center">For the detailed list of features, please visit our landing page: <a- class="font-bold underline dark:text-white" href="https://coolify.io">coolify.io</a></div>- <div- class="grid max-w-sm grid-cols-1 -mt-16 divide-y divide-neutral-200 dark:divide-coolgray-500 isolate gap-y-16 sm:mx-auto lg:-mx-8 lg:mt-0 lg:max-w-none lg:grid-cols-3 lg:divide-x lg:divide-y-0 xl:-mx-4">-- <div class="pt-16 lg:px-8 lg:pt-0 xl:px-14">- <h3 id="tier-basic" class="text-base font-semibold leading-7 dark:text-white">Basic</h3>- <p class="flex items-baseline mt-6 gap-x-1">- <span x-show="selected === 'monthly'" x-cloak>- <span class="text-4xl font-bold tracking-tight dark:text-white">$5</span>- <span class="text-sm font-semibold leading-6 ">/month + VAT</span>- </span>- <span x-show="selected === 'yearly'" x-cloak>- <span class="text-4xl font-bold tracking-tight dark:text-white">$4</span>- <span class="text-sm font-semibold leading-6 ">/month + VAT</span>- </span>- </p>- <span x-show="selected === 'monthly'" x-cloak>- <span>billed monthly</span>- </span>- <span x-show="selected === 'yearly'" x-cloak>- <span>billed annually</span>- </span>- @if ($showSubscribeButtons)- @isset($basic)- {{ $basic }}- @endisset- @endif- <p class="mt-10 text-sm leading-6 dark:text-white h-[6.5rem]">Begin hosting your own services in the- cloud.- </p>- <ul role="list" class="space-y-3 text-sm leading-6 ">- <li class="flex">- <svg class="flex-none w-5 h-6 mr-3 dark:text-warning" viewBox="0 0 20 20"- fill="currentColor" aria-hidden="true">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.775 0 001.137-.089l4-5.5z"- clip-rule="evenodd" />- </svg>- Connect <span class="px-1 font-bold dark:text-white">2</span> servers- </li>- <li class="flex gap-x-3">- <svg class="flex-none w-5 h-6 dark:text-warning" viewBox="0 0 20 20" fill="currentColor"- aria-hidden="true">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z"- clip-rule="evenodd" />- </svg>- Included Email System- </li>- <li class="flex gap-x-3">- <svg class="flex-none w-5 h-6 dark:text-warning" viewBox="0 0 20 20" fill="currentColor"- aria-hidden="true">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z"- clip-rule="evenodd" />- </svg>- Email Support- </li>- <li class="flex font-bold dark:text-white gap-x-3">- <svg width="512" height="512" class="flex-none w-5 h-6 text-green-600"- viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">- <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"- stroke-width="2">- <path- d="M4 13a8 8 0 0 1 7 7a6 6 0 0 0 3-5a9 9 0 0 0 6-8a3 3 0 0 0-3-3a9 9 0 0 0-8 6a6 6 0 0 0-5 3" />- <path d="M7 14a6 6 0 0 0-3 6a6 6 0 0 0 6-3m4-8a1 1 0 1 0 2 0a1 1 0 1 0-2 0" />- </g>- </svg>- + All upcoming features- </li>- </ul>- </div>- <div class="pt-16 lg:px-8 lg:pt-0 xl:px-14">- <h3 id="tier-pro" class="text-base font-semibold leading-7 dark:text-white">Pro</h3>- <p class="flex items-baseline mt-6 gap-x-1">- <span x-show="selected === 'monthly'" x-cloak>- <span class="text-4xl font-bold tracking-tight dark:text-white">$30</span>- <span class="text-sm font-semibold leading-6 ">/month + VAT</span>- </span>- <span x-show="selected === 'yearly'" x-cloak>- <span class="text-4xl font-bold tracking-tight dark:text-white">$27</span>- <span class="text-sm font-semibold leading-6 ">/month + VAT</span>- </span>- </p>- <span x-show="selected === 'monthly'" x-cloak>- <span>billed monthly</span>- </span>- <span x-show="selected === 'yearly'" x-cloak>- <span>billed annually</span>- </span>- @if ($showSubscribeButtons)- @isset($pro)- {{ $pro }}- @endisset- @endif- <p class="h-20 mt-10 text-sm leading-6 dark:text-white">Expand your business or set up your own- hosting- environment.- </p>- <ul role="list" class="mt-6 space-y-3 text-sm leading-6 ">- <li class="flex ">- <svg class="flex-none w-5 h-6 mr-3 dark:text-warning" viewBox="0 0 20 20"- fill="currentColor" aria-hidden="true">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z"- clip-rule="evenodd" />- </svg>- Connect <span class="px-1 font-bold dark:text-white">10</span> servers- </li>- <li class="flex gap-x-3">- <svg class="flex-none w-5 h-6 dark:text-warning" viewBox="0 0 20 20" fill="currentColor"- aria-hidden="true">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z"- clip-rule="evenodd" />- </svg>- Included Email System- </li>- <li class="flex gap-x-3">- <svg class="flex-none w-5 h-6 dark:text-warning" viewBox="0 0 20 20" fill="currentColor"- aria-hidden="true">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z"- clip-rule="evenodd" />- </svg>- Priority Email Support- </li>- <li class="flex font-bold dark:text-white gap-x-3">- <svg width="512" height="512" class="flex-none w-5 h-6 text-green-600"- viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">- <g fill="none" stroke="currentColor" stroke-linecap="round"- stroke-linejoin="round" stroke-width="2">- <path- d="M4 13a8 8 0 0 1 7 7a6 6 0 0 0 3-5a9 9 0 0 0 6-8a3 3 0 0 0-3-3a9 9 0 0 0-8 6a6 6 0 0 0-5 3" />- <path d="M7 14a6 6 0 0 0-3 6a6 6 0 0 0 6-3m4-8a1 1 0 1 0 2 0a1 1 0 1 0-2 0" />- </g>- </svg>- + All upcoming features- </li>- </ul>- </div>- <div class="pt-16 lg:px-8 lg:pt-0 xl:px-12">- <h3 id="tier-ultimate" class="text-base font-semibold leading-7 dark:text-white">Ultimate</h3>- <p class="flex items-baseline mt-6 gap-x-1">- <span x-show="selected === 'monthly'" x-cloak>- <span class="text-4xl font-bold tracking-tight dark:text-white">Custom</span>- {{-- <span class="text-sm font-semibold leading-6 ">pay-as-you-go</span> --}}- </span>- <span x-show="selected === 'yearly'" x-cloak>- <span class="text-4xl font-bold tracking-tight dark:text-white">Custom</span>- {{-- <span class="text-sm font-semibold leading-6 ">/month + VAT</span> --}}- </span>- </p>- <span x-show="selected === 'monthly'" x-cloak>- <span>pay-as-you-go</span>- </span>- <span x-show="selected === 'yearly'" x-cloak>- <span>pay-as-you-go</span>- </span>- @if ($showSubscribeButtons)- @isset($ultimate)- {{ $ultimate }}- @endisset- @endif- <p class="h-20 mt-10 text-sm leading-6 dark:text-white">Easily manage complex infrastructures in a- single location.</p>- <ul role="list" class="mt-6 space-y-3 text-sm leading-6 ">- <li class="flex ">- <svg class="flex-none w-5 h-6 mr-3 dark:text-warning" viewBox="0 0 20 20"- fill="currentColor" aria-hidden="true">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z"- clip-rule="evenodd" />- </svg>- Connect <span class="px-1 font-bold dark:text-white">10+</span> servers- </li>-- <li class="flex gap-x-3">- <svg class="flex-none w-5 h-6 dark:text-warning" viewBox="0 0 20 20" fill="currentColor"- aria-hidden="true">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z"- clip-rule="evenodd" />- </svg>- Included Email System- </li>- <li class="flex font-bold dark:text-white gap-x-3">- <svg class="flex-none w-5 h-6 dark:text-warning" viewBox="0 0 20 20" fill="currentColor"- aria-hidden="true">- <path fill-rule="evenodd"- d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z"- clip-rule="evenodd" />- </svg>- Priority (Email/Chat) Support- </li>- <li class="flex font-bold dark:text-white gap-x-3">- <svg width="512" height="512" class="flex-none w-5 h-6 text-green-600"- viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">- <g fill="none" stroke="currentColor" stroke-linecap="round"- stroke-linejoin="round" stroke-width="2">- <path- d="M4 13a8 8 0 0 1 7 7a6 6 0 0 0 3-5a9 9 0 0 0 6-8a3 3 0 0 0-3-3a9 9 0 0 0-8 6a6 6 0 0 0-5 3" />- <path d="M7 14a6 6 0 0 0-3 6a6 6 0 0 0 6-3m4-8a1 1 0 1 0 2 0a1 1 0 1 0-2 0" />- </g>- </svg>- + All upcoming features- </li>- </ul>- </div>- </div>- {{-- <div class="p-4 mt-10 rounded-sm">- <div class="flex items-start gap-4 text-xl tracking-tight">Need official support for- your self-hosted instance?- <x-forms.button>- <a class="font-bold dark:text-white hover:no-underline"- href="{{ config('constants.urls.contact') }}">Contact- Us</a>- </x-forms.button>- </div>- </div> --}}- </div>-- {{-- <div class="pt-8 pb-12 text-4xl font-bold text-center dark:text-white">Included in all plans</div>- <div class="grid grid-cols-1 gap-10 md:grid-cols-2 gap-y-28">- <div>- <div class="flex items-center gap-4 mb-4">- <div class="flex items-center justify-center w-10 h-10 rounded-lg dark:text-white bg-coolgray-500">- <svg width="512" height="512" class="icon" viewBox="0 0 24 24"- xmlns="http://www.w3.org/2000/svg">- <path fill="none" stroke="currentColor" stroke-linecap="round"- stroke-linejoin="round" stroke-width="2"- d="M3 7a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v2a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3zm12 13H6a3 3 0 0 1-3-3v-2a3 3 0 0 1 3-3h12M7 8v.01M7 16v.01M20 15l-2 3h3l-2 3" />- </svg>- </div>- <div class="text-2xl font-semibold dark:text-white">Bring Your Own Servers</div>- </div>- <div class="mt-1 text-base leading-7 text-gray-300">- Bring your own server from any cloud providers, or even your own server at home! All you need is SSH- access. You will have full control over your server, and you can even use it for other purposes.- </div>- </div>- <div>- <div class="flex items-center gap-4 mb-4">- <div class="flex items-center justify-center w-10 h-10 rounded-lg dark:text-white bg-coolgray-500">- <svg width="512" height="512" class="icon" viewBox="0 0 24 24"- xmlns="http://www.w3.org/2000/svg">- <g fill="none" stroke="white" stroke-linecap="round" stroke-linejoin="round"- stroke-width="2">- <path- d="M7 7h10a2 2 0 0 1 2 2v1l1 1v3l-1 1v3a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3l-1-1v-3l1-1V9a2 2 0 0 1 2-2zm3 9h4" />- <circle cx="8.5" cy="11.5" r=".5" fill="#000000" />- <circle cx="15.5" cy="11.5" r=".5" fill="#000000" />- <path d="M9 7L8 3m7 4l1-4" />- </g>- </svg>- </div>- <div class="text-2xl font-semibold dark:text-white">Server Automations</div>- </div>- <div class="mt-1 text-base leading-7 text-gray-300">- Once you connected your server, Coolify will start managing it and do a- lot of administrative tasks for you. You can also write your own scripts to- automate your server<span class="dark:text-warning">*</span>.- </div>- </div>- <div>- <div class="flex items-center gap-4 mb-4">- <div class="flex items-center justify-center w-10 h-10 rounded-lg dark:text-white bg-coolgray-500">- <svg width="512" height="512" viewBox="0 0 24 24" class="icon"- xmlns="http://www.w3.org/2000/svg">- <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"- stroke-width="2">- <path- d="M15 11h2a2 2 0 0 1 2 2v2m0 4a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2h4" />- <path- d="M11 16a1 1 0 1 0 2 0a1 1 0 1 0-2 0m-3-5V8m.347-3.631A4 4 0 0 1 16 6M3 3l18 18" />- </g>- </svg>- </div>- <div class="text-2xl font-semibold dark:text-white">No Vendor Lock-in</div>- </div>- <div class="mt-1 text-base leading-7 text-gray-300">- You own your own data. All configurations saved on your own servers, so if- you decide to stop using Coolify, you can still continue to manage your- deployed resources.- </div>- </div>-- <div>- <div class="flex items-center gap-4 mb-4">- <div class="flex items-center justify-center w-10 h-10 rounded-lg dark:text-white bg-coolgray-500">- <svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 24 24"- stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"- stroke-linejoin="round">- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <rect x="3" y="4" width="18" height="12" rx="1" />- <path d="M7 20h10" />- <path d="M9 16v4" />- <path d="M15 16v4" />- <path d="M7 10h2l2 3l2 -6l1 3h3" />- </svg>- </div>- <div class="text-2xl font-semibold dark:text-white">Monitoring</div>- </div>- <div class="mt-1 text-base leading-7 text-gray-300">- Coolify will automatically monitor your configured servers and deployed- resources. Notifies you if something goes wrong on your favourite- channels, like Discord, Telegram, via Email and more...- </div>- </div>- <div>- <div class="flex items-center gap-4 mb-4">- <div class="flex items-center justify-center w-10 h-10 rounded-lg dark:text-white bg-coolgray-500">- <svg width="512" height="512" class="icon" viewBox="0 0 24 24"- xmlns="http://www.w3.org/2000/svg">- <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"- stroke-width="2">- <path d="M6 4h10l4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2" />- <path d="M10 14a2 2 0 1 0 4 0a2 2 0 1 0-4 0m4-10v4H8V4" />- </g>- </svg>- </div>- <div class="text-2xl font-semibold dark:text-white">Automatic Backups</div>- </div>- <div class="mt-1 text-base leading-7 text-gray-300">- We automatically backup your databases to any S3 compatible solution. If- something goes wrong, you can easily restore your data with a few clicks.- </div>- </div>- <div>- <div class="flex items-center gap-4 mb-4">- <div class="flex items-center justify-center w-10 h-10 rounded-lg dark:text-white bg-coolgray-500">- <svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 24 24"- stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"- stroke-linejoin="round">- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <polyline points="5 7 10 12 5 17" />- <line x1="13" y1="17" x2="19" y2="17" />- </svg>- </div>- <div class="text-2xl font-semibold dark:text-white">Powerful API</div>- </div>- <div class="mt-1 text-base leading-7 text-gray-300">- Programmatically deploy, query, and manage your servers & resources.- Integrate to your CI/CD pipelines, or build your own custom integrations. <span- class="dark:text-warning">*</span>- </div>- </div>- <div>- <div class="flex items-center gap-4 mb-4">- <div class="flex items-center justify-center w-10 h-10 rounded-lg dark:text-white bg-coolgray-500">- <svg width="512" height="512" class="icon" viewBox="0 0 24 24"- xmlns="http://www.w3.org/2000/svg">- <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"- stroke-width="2">- <path- d="M4 18a2 2 0 1 0 4 0a2 2 0 1 0-4 0M4 6a2 2 0 1 0 4 0a2 2 0 1 0-4 0m12 12a2 2 0 1 0 4 0a2 2 0 1 0-4 0M6 8v8" />- <path d="M11 6h5a2 2 0 0 1 2 2v8" />- <path d="m14 9l-3-3l3-3" />- </g>- </svg>- </div>- <div class="text-2xl font-semibold dark:text-white">Push to Deploy</div>- </div>- <div class="mt-1 text-base leading-7 text-gray-300">- Git integration is default today. We support hosted (github.com,- gitlab.com<span class="inline-block dark:text-warning">*</span>) or self-hosted<span- class="dark:text-warning">*</span>- (Github Enterprise, Gitlab) Git repositories.- </div>- </div>- <div>- <div class="flex items-center gap-4 mb-4">- <div class="flex items-center justify-center w-10 h-10 rounded-lg dark:text-white bg-coolgray-500">- <svg width="512" height="512" class="icon" viewBox="0 0 24 24"- xmlns="http://www.w3.org/2000/svg">- <path fill="none" stroke="currentColor" stroke-linecap="round"- stroke-linejoin="round" stroke-width="2"- d="M10 13a2 2 0 1 0 4 0a2 2 0 0 0-4 0m-2 8v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1M15 5a2 2 0 1 0 4 0a2 2 0 0 0-4 0m2 5h2a2 2 0 0 1 2 2v1M5 5a2 2 0 1 0 4 0a2 2 0 0 0-4 0m-2 8v-1a2 2 0 0 1 2-2h2" />- </svg>- </div>- <div class="text-2xl font-semibold dark:text-white">Pull Request Deployments</div>- </div>- <div class="mt-1 text-base leading-7 text-gray-300">- Automagically deploy new commits and pull requests separately to quickly- review contributions and speed up your teamwork!- </div>- </div>- </div>- <div class="pt-20 text-xs">- <span class="dark:text-warning">*</span> Some features are work in progress and will be available soon.- </div> --}}- </div>- @isset($other)- {{ $other }}- @endissetdiff --git a/resources/views/components/profile/navbar.blade.php b/resources/views/components/profile/navbar.blade.phpdeleted file mode 100644index 18f4e9fe94..0000000000--- a/resources/views/components/profile/navbar.blade.php+++ /dev/null@@ -1,7 +0,0 @@-@props([- 'title' => 'Profile',- 'subtitle' => 'Your account preferences',- 'titleOnDesktop' => false,-])--<x-dashboard.navbar section="profile" :title="$title" :subtitle="$subtitle" :titleOnDesktop="$titleOnDesktop" />diff --git a/resources/views/components/resource-heading-overflow.blade.php b/resources/views/components/resource-heading-overflow.blade.phpdeleted file mode 100644index 44554e899f..0000000000--- a/resources/views/components/resource-heading-overflow.blade.php+++ /dev/null@@ -1,149 +0,0 @@-{{--- Resource header actions: render inline in the top bar, then collapse into- an Actions dropdown when the remaining header width cannot fit them.---}}-@props([- 'id' => null,- 'label' => 'Actions',-])--<div- @if (filled($id)) id="{{ $id }}" @endif- {{ $attributes->class('resource-heading-overflow relative shrink-0') }}- data-resource-heading-overflow- x-data="{- collapsed: false,- open: false,- ro: null,- onNavigated: null,- update() {- const needed = this.measureInlineWidth()- const available = this.availableWidth()- const next = needed > 0 && needed > available- if (next === this.collapsed) {- return- }- this.collapsed = next- if (!next) {- this.open = false- }- },- hudSlot() {- return this.$el.closest('#resource-action-hud-slot')- ?? document.getElementById('resource-action-hud-slot')- },- headerRow() {- return this.hudSlot()?.parentElement ?? null- },- measureInlineWidth() {- const items = this.$refs.items- if (!items) {- return 0- }- items.classList.add('is-measuring')- const width = items.scrollWidth- items.classList.remove('is-measuring')- return width- },- availableWidth() {- const row = this.headerRow()- const hud = this.hudSlot()- if (!row || !hud) {- return Infinity- }-- let reserved = 0- for (const child of row.children) {- if (child === hud) {- continue- }- if (child.classList.contains('flex-1') || child.querySelector(':scope .flex-1')) {- reserved += 200- continue- }- reserved += child.getBoundingClientRect().width- }-- let hudSiblings = 0- const cluster = this.$el.parentElement- if (cluster) {- for (const child of cluster.children) {- if (child === this.$el) {- continue- }- hudSiblings += child.getBoundingClientRect().width- }- }-- return Math.max(0, row.clientWidth - reserved - hudSiblings - 16)- },- observe() {- if (typeof ResizeObserver === 'undefined') {- return- }- if (!this.ro) {- this.ro = new ResizeObserver(() => this.update())- }- const row = this.headerRow()- if (row) {- this.ro.observe(row)- }- this.ro.observe(this.$el)- },- init() {- this.onNavigated = () => this.$nextTick(() => {- this.observe()- this.update()- })- document.addEventListener('livewire:navigated', this.onNavigated)-- this.$nextTick(() => {- this.observe()- this.update()- requestAnimationFrame(() => {- this.observe()- this.update()- })- })- },- destroy() {- this.ro?.disconnect()- if (this.onNavigated) {- document.removeEventListener('livewire:navigated', this.onNavigated)- }- },- }"- x-init="init()"- x-effect="$dispatch('resource-actions-toggled', { open })"- @click.outside="open = false"- @keydown.escape.window="open = false"- @resize.window.debounce.50ms="update()"- :class="{ 'is-collapsed': collapsed }"->- <button- type="button"- class="button resource-heading-overflow-trigger"- x-show="collapsed"- x-cloak- @click="open = !open"- :aria-expanded="open"- aria-haspopup="menu"- >- <x-reicon name="play-circle" class="size-3.5 opacity-70" />- {{ $label }}- <span class="inline-flex transition-transform" :class="open && 'rotate-180'">- <x-reicon name="chevron-down" class="size-3 opacity-55" />- </span>- </button>-- <div- x-ref="items"- class="resource-heading-overflow-items"- x-show="!collapsed || open"- :class="collapsed && 'listbox-panel top-full! right-0! left-auto! mt-1! min-w-52!'"- :role="collapsed ? 'menu' : null"- :aria-hidden="collapsed && !open"- >- {{ $slot }}- </div>-</div>diff --git a/resources/views/components/resource-view.blade.php b/resources/views/components/resource-view.blade.phpdeleted file mode 100644index 3a4a635aa9..0000000000--- a/resources/views/components/resource-view.blade.php+++ /dev/null@@ -1,22 +0,0 @@-<div @class([- 'group flex min-w-0 items-center gap-3 rounded-[10px] border border-neutral-200 bg-white p-3 transition-[border-color,background-color,box-shadow] dark:border-white/[0.07] dark:bg-surface',- 'cursor-not-allowed opacity-60' => $upgrade,- 'hover:border-neutral-300 hover:bg-neutral-50 hover:shadow-sm dark:hover:border-white/[0.12] dark:hover:bg-white/[0.035]' => ! $upgrade,-])>- <div- class="flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-neutral-100 text-black dark:bg-white/[0.06] dark:text-fg">- {{ $logo }}- </div>- <div class="min-w-0 flex-1">- <div class="truncate text-sm font-semibold text-black dark:text-fg">- {{ $title }}- </div>- @if ($upgrade)- <div class="mt-0.5 text-xs text-neutral-500 dark:text-fg-dim">{{ $upgrade }}</div>- @else- <div class="mt-0.5 line-clamp-2 text-xs leading-5 text-neutral-500 dark:text-fg-dim">- {{ $description }}- </div>- @endif- </div>-</div>diff --git a/resources/views/components/resources/breadcrumbs.blade.php b/resources/views/components/resources/breadcrumbs.blade.phpdeleted file mode 100644index 52724002f1..0000000000--- a/resources/views/components/resources/breadcrumbs.blade.php+++ /dev/null@@ -1,281 +0,0 @@-@props([- 'lastDeploymentInfo' => null,- 'lastDeploymentLink' => null,- 'resource' => null,- 'projects' => null,- 'environments' => null,-])-@php- use App\Models\Project;-- // Use passed props if available, otherwise query (backwards compatible)- $projects = $projects ?? Project::ownedByCurrentTeamCached();- $environments = $environments ?? $resource->environment->project- ->environments()- ->select('id', 'uuid', 'name', 'project_id')- ->with([- 'applications:id,uuid,name,environment_id',- 'services:id,uuid,name,environment_id',- 'postgresqls:id,uuid,name,environment_id',- 'redis:id,uuid,name,environment_id',- 'mongodbs:id,uuid,name,environment_id',- 'mysqls:id,uuid,name,environment_id',- 'mariadbs:id,uuid,name,environment_id',- 'keydbs:id,uuid,name,environment_id',- 'dragonflies:id,uuid,name,environment_id',- 'clickhouses:id,uuid,name,environment_id',- 'sqlites:id,uuid,name,environment_id',- ])- ->get();- $currentProjectUuid = data_get($resource, 'environment.project.uuid');- $currentEnvironmentUuid = data_get($resource, 'environment.uuid');- $currentResourceUuid = data_get($resource, 'uuid');- $resourceUuid = data_get($resource, 'uuid');- $resourceType = $resource->getMorphClass();- $isApplication = $resourceType === 'App\Models\Application';- $isService = $resourceType === 'App\Models\Service';- $isDatabase = str_contains($resourceType, 'Database') || str_contains($resourceType, 'Standalone');- $hasMultipleServers = $isApplication && method_exists($resource, 'additional_servers') &&- ($resource->relationLoaded('additional_servers') ? $resource->additional_servers->count() > 0 : ($resource->additional_servers_count ?? 0) > 0);- $serverName = $hasMultipleServers ? null : data_get($resource, 'destination.server.name');- $routeParams = [- 'project_uuid' => $currentProjectUuid,- 'environment_uuid' => $currentEnvironmentUuid,- ];- if ($isApplication) {- $routeParams['application_uuid'] = $resourceUuid;- } elseif ($isService) {- $routeParams['service_uuid'] = $resourceUuid;- } else {- $routeParams['database_uuid'] = $resourceUuid;- }-@endphp-<nav class="pt-2 pb-4 md:pb-10">- <div class="flex min-w-0 flex-col gap-1 md:hidden">- <div class="flex min-w-0 items-center text-xs text-neutral-400">- <a class="min-w-0 truncate" {{ wireNavigate() }}- href="{{ $isApplication- ? route('project.application.configuration', $routeParams)- : ($isService- ? route('project.service.configuration', $routeParams)- : route('project.database.configuration', $routeParams)) }}"- title="{{ data_get($resource, 'name') }}{{ $serverName ? ' ('.$serverName.')' : '' }}">- {{ data_get($resource, 'name') }}- </a>- </div>- @if ($resource->getMorphClass() == 'App\Models\Service')- <x-status.services :service="$resource" />- @elseif ($isApplication)- <x-status-summary :status="$resource->status" />- @else- <x-status.index :resource="$resource" :title="$lastDeploymentInfo" :lastDeploymentLink="$lastDeploymentLink" />- @endif- </div>-- <ol class="hidden flex-wrap items-center gap-y-1 md:flex">- <!-- Project Level -->- <li class="inline-flex items-center" x-data="{ projectOpen: false, closeTimeout: null, toggle() { this.projectOpen = !this.projectOpen }, open() { clearTimeout(this.closeTimeout); this.projectOpen = true }, close() { this.closeTimeout = setTimeout(() => { this.projectOpen = false }, 100) } }">- <div class="flex items-center relative" @mouseenter="open()" @mouseleave="close()">- <a class="text-xs truncate lg:text-sm hover:text-warning" {{ wireNavigate() }}- href="{{ route('project.show', ['project_uuid' => $currentProjectUuid]) }}">- {{ data_get($resource, 'environment.project.name', 'Undefined Name') }}- </a>- <button type="button" @click.stop="toggle()" class="px-1 text-warning">- <svg class="w-3 h-3 transition-transform" :class="{ 'rotate-down': projectOpen }" fill="none"- stroke="currentColor" viewBox="0 0 24 24">- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M9 5l7 7-7 7"></path>- </svg>- </button>-- <!-- Project Dropdown -->- <div x-show="projectOpen" @click.outside="close()" x-transition:enter="transition ease-out duration-200"- x-transition:enter-start="opacity-0 scale-95" x-transition:enter-end="opacity-100 scale-100"- x-transition:leave="transition ease-in duration-75" x-transition:leave-start="opacity-100 scale-100"- x-transition:leave-end="opacity-0 scale-95"- class="absolute z-20 top-full mt-1 w-56 -ml-2 bg-white dark:bg-coolgray-100 rounded-md shadow-[var(--shadow-dropdown)] py-1 border border-neutral-200 dark:border-coolgray-200 max-h-96 overflow-y-auto scrollbar">- @foreach ($projects as $project)- <a href="{{ route('project.show', ['project_uuid' => $project->uuid]) }}" {{ wireNavigate() }}- class="block px-4 py-2 text-sm truncate hover:bg-neutral-100 dark:hover:bg-coolgray-200 {{ $project->uuid === $currentProjectUuid ? 'dark:text-warning font-semibold' : '' }}"- title="{{ $project->name }}">- {{ $project->name }}- </a>- @endforeach- </div>- </div>- </li>-- <!-- Environment Level -->- <li class="inline-flex items-center" x-data="{ envOpen: false, activeEnv: null, envPositions: {}, closeTimeout: null, envTimeout: null, toggle() { this.envOpen = !this.envOpen; if (!this.envOpen) { this.activeEnv = null; } }, open() { clearTimeout(this.closeTimeout); this.envOpen = true }, close() { this.closeTimeout = setTimeout(() => { this.envOpen = false; this.activeEnv = null; }, 100) }, openEnv(id) { clearTimeout(this.closeTimeout); clearTimeout(this.envTimeout); this.activeEnv = id }, closeEnv() { this.envTimeout = setTimeout(() => { this.activeEnv = null; }, 100) } }">- <div class="flex items-center relative" @mouseenter="open()"- @mouseleave="close()">- <a class="text-xs truncate lg:text-sm hover:text-warning" {{ wireNavigate() }}- href="{{ route('project.resource.index', [- 'environment_uuid' => $currentEnvironmentUuid,- 'project_uuid' => $currentProjectUuid,- ]) }}">- {{ data_get($resource, 'environment.name') }}- </a>- <button type="button" @click.stop="toggle()" class="px-1 text-warning">- <svg class="w-3 h-3 transition-transform" :class="{ 'rotate-down': envOpen }" fill="none"- stroke="currentColor" viewBox="0 0 24 24">- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M9 5l7 7-7 7"></path>- </svg>- </button>-- <!-- Environment Dropdown -->- <div x-show="envOpen" @click.outside="close()" x-transition:enter="transition ease-out duration-200"- x-transition:enter-start="opacity-0 scale-95" x-transition:enter-end="opacity-100 scale-100"- x-transition:leave="transition ease-in duration-75" x-transition:leave-start="opacity-100 scale-100"- x-transition:leave-end="opacity-0 scale-95"- class="absolute z-20 top-full mt-1 left-0 sm:left-auto max-w-[calc(100vw-1rem)]"- x-init="$nextTick(() => { const rect = $el.getBoundingClientRect(); if (rect.right > window.innerWidth) { $el.style.left = 'auto'; $el.style.right = '0'; } })">- <!-- Environment List -->- <div- class="relative w-48 bg-white dark:bg-coolgray-100 rounded-md shadow-[var(--shadow-dropdown)] py-1 border border-neutral-200 dark:border-coolgray-200 max-h-96 overflow-y-auto scrollbar">- @foreach ($environments as $environment)- @php- $envDatabases = collect()- ->merge($environment->postgresqls ?? collect())- ->merge($environment->redis ?? collect())- ->merge($environment->mongodbs ?? collect())- ->merge($environment->mysqls ?? collect())- ->merge($environment->mariadbs ?? collect())- ->merge($environment->keydbs ?? collect())- ->merge($environment->dragonflies ?? collect())- ->merge($environment->clickhouses ?? collect())- ->merge($environment->sqlites ?? collect());- $envResources = collect()- ->merge($environment->applications->map(fn($app) => ['type' => 'application', 'resource' => $app]))- ->merge($envDatabases->map(fn($db) => ['type' => 'database', 'resource' => $db]))- ->merge($environment->services->map(fn($svc) => ['type' => 'service', 'resource' => $svc]))- ->sortBy(fn($item) => strtolower($item['resource']->name));- @endphp- <div @mouseenter="openEnv('{{ $environment->uuid }}'); envPositions['{{ $environment->uuid }}'] = $el.offsetTop - ($el.closest('.overflow-y-auto')?.scrollTop || 0)"- @mouseleave="closeEnv()">- <a href="{{ route('project.resource.index', [- 'environment_uuid' => $environment->uuid,- 'project_uuid' => $currentProjectUuid,- ]) }}" {{ wireNavigate() }}- class="flex items-center justify-between gap-2 px-4 py-2 text-sm hover:bg-neutral-100 dark:hover:bg-coolgray-200 {{ $environment->uuid === $currentEnvironmentUuid ? 'dark:text-warning font-semibold' : '' }}"- title="{{ $environment->name }}">- <span class="truncate">{{ $environment->name }}</span>- @if ($envResources->count() > 0)- <svg class="w-3 h-3 shrink-0" fill="none" stroke="currentColor"- viewBox="0 0 24 24">- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="4"- d="M9 5l7 7-7 7"></path>- </svg>- @endif- </a>- </div>- @endforeach- <div class="border-t border-neutral-200 dark:border-coolgray-200 mt-1 pt-1">- <a href="{{ route('project.show', ['project_uuid' => $currentProjectUuid]) }}" {{ wireNavigate() }}- class="flex items-center gap-2 px-4 py-2 text-sm hover:bg-neutral-100 dark:hover:bg-coolgray-200">- <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"- d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z">- </path>- </svg>- Create / Edit- </a>- </div>- </div>-- <!-- Resources Sub-dropdown (2nd level) -->- @foreach ($environments as $environment)- @php- $envDatabases = collect()- ->merge($environment->postgresqls ?? collect())- ->merge($environment->redis ?? collect())- ->merge($environment->mongodbs ?? collect())- ->merge($environment->mysqls ?? collect())- ->merge($environment->mariadbs ?? collect())- ->merge($environment->keydbs ?? collect())- ->merge($environment->dragonflies ?? collect())- ->merge($environment->clickhouses ?? collect())- ->merge($environment->sqlites ?? collect());- $envResources = collect()- ->merge($environment->applications->map(fn($app) => ['type' => 'application', 'resource' => $app]))- ->merge($envDatabases->map(fn($db) => ['type' => 'database', 'resource' => $db]))- ->merge($environment->services->map(fn($svc) => ['type' => 'service', 'resource' => $svc]));- @endphp- @if ($envResources->count() > 0)- <div x-show="activeEnv === '{{ $environment->uuid }}'" x-cloak- x-transition:enter="transition ease-out duration-150"- x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100"- @mouseenter="openEnv('{{ $environment->uuid }}')" @mouseleave="closeEnv()"- :style="'position: absolute; left: 100%; top: ' + (envPositions['{{ $environment->uuid }}'] || 0) + 'px; z-index: 30;'"- class="flex flex-col sm:flex-row items-start pl-1">- <div- class="relative w-56 bg-white dark:bg-coolgray-100 rounded-md shadow-[var(--shadow-dropdown)] py-1 border border-neutral-200 dark:border-coolgray-200 max-h-96 overflow-y-auto scrollbar">- @foreach ($envResources as $envResource)- @php- $resType = $envResource['type'];- $res = $envResource['resource'];- $resRoute = match ($resType) {- 'application' => route('project.application.configuration', [- 'project_uuid' => $currentProjectUuid,- 'environment_uuid' => $environment->uuid,- 'application_uuid' => $res->uuid,- ]),- 'service' => route('project.service.configuration', [- 'project_uuid' => $currentProjectUuid,- 'environment_uuid' => $environment->uuid,- 'service_uuid' => $res->uuid,- ]),- 'database' => route('project.database.configuration', [- 'project_uuid' => $currentProjectUuid,- 'environment_uuid' => $environment->uuid,- 'database_uuid' => $res->uuid,- ]),- };- $isCurrentResource = $res->uuid === $currentResourceUuid;- @endphp- <a href="{{ $resRoute }}" {{ wireNavigate() }}- class="block px-4 py-2 text-sm truncate hover:bg-neutral-100 dark:hover:bg-coolgray-200 {{ $isCurrentResource ? 'dark:text-warning font-semibold' : '' }}"- title="{{ $res->name }}">- {{ $res->name }}- </a>- @endforeach- </div>- </div>- @endif- @endforeach- </div>- </div>- </li>-- <!-- Resource Level -->- <li class="inline-flex items-center mr-2">- <a class="text-xs truncate lg:text-sm hover:text-warning" {{ wireNavigate() }}- href="{{ $isApplication- ? route('project.application.configuration', $routeParams)- : ($isService- ? route('project.service.configuration', $routeParams)- : route('project.database.configuration', $routeParams)) }}"- title="{{ data_get($resource, 'name') }}{{ $serverName ? ' ('.$serverName.')' : '' }}">- {{ data_get($resource, 'name') }}@if($serverName) <span class="text-xs text-neutral-400">({{ $serverName }})</span>@endif- </a>- </li>-- <!-- Current Section Status -->- @if ($resource->getMorphClass() == 'App\Models\Service')- <x-status.services :service="$resource" />- @elseif ($isApplication)- <x-status-summary :status="$resource->status" />- @else- <x-status.index :resource="$resource" :title="$lastDeploymentInfo" :lastDeploymentLink="$lastDeploymentLink" />- @endif- </ol>-</nav>--<style>- .rotate-down {- transform: rotate(90deg);- }-- .transition-transform {- transition: transform 0.2s ease;- }-</style>diff --git a/resources/views/components/security/navbar.blade.php b/resources/views/components/security/navbar.blade.phpdeleted file mode 100644index 77dd645ddf..0000000000--- a/resources/views/components/security/navbar.blade.php+++ /dev/null@@ -1,20 +0,0 @@-@props([- 'title' => 'Keys & Tokens',- 'subtitle' => 'SSH keys, cloud tokens, and API access',- // Family index/list views hide the H1 only at xl+ (topbar + tabs cover context).- // Detail views pass true so the resource name stays visible.- 'titleOnDesktop' => false,-])--<x-dashboard.navbar section="security" :title="$title" :subtitle="$subtitle" :titleOnDesktop="$titleOnDesktop">- @isset($titleActions)- <x-slot:titleActions>- {{ $titleActions }}- </x-slot:titleActions>- @endisset- @isset($actions)- <x-slot:actions>- {{ $actions }}- </x-slot:actions>- @endisset-</x-dashboard.navbar>diff --git a/resources/views/components/server/advanced.blade.php b/resources/views/components/server/advanced.blade.phpdeleted file mode 100644index 63cc23714f..0000000000--- a/resources/views/components/server/advanced.blade.php+++ /dev/null@@ -1,38 +0,0 @@-@props([- 'serverIp',- 'traefikDashboardAvailable' => false,-])--<div class="relative" x-data="{ open: false }"- x-effect="$dispatch('resource-actions-toggled', { open })"- @click.outside="open = false" @keydown.escape.window="open = false">- <button type="button" class="button" @click="open = !open" :aria-expanded="open"- aria-haspopup="menu">- <x-reicon name="grid" class="size-3.5 opacity-70" />- Advanced- <span class="inline-flex transition-transform" :class="open && 'rotate-180'">- <x-reicon name="chevron-down" class="size-3 opacity-55" />- </span>- </button>-- <div x-cloak x-show="open" x-transition.origin.top.right- class="listbox-panel top-full! right-0! left-auto! mt-1! w-60! min-w-0!" role="menu">- @if ($traefikDashboardAvailable)- <a class="listbox-option justify-start! gap-2.5!" target="_blank"- href="http://{{ $serverIp }}:8080" @click="open = false" role="menuitem">- <span class="flex size-4 shrink-0 items-center justify-center">- <x-reicon name="external-link" class="size-3! opacity-70" />- </span>- Traefik Dashboard- </a>- @endif- <button type="button" class="listbox-option justify-start! gap-2.5!"- wire:click="checkProxyStatus" wire:loading.attr="disabled"- @click="open = false" role="menuitem">- <span class="flex size-4 shrink-0 items-center justify-center">- <x-reicon name="refresh" class="size-3.5 opacity-70" />- </span>- Refresh Proxy Status- </button>- </div>-</div>diff --git a/resources/views/components/server/sidebar-proxy.blade.php b/resources/views/components/server/sidebar-proxy.blade.phpdeleted file mode 100644index ae799d1628..0000000000--- a/resources/views/components/server/sidebar-proxy.blade.php+++ /dev/null@@ -1,49 +0,0 @@-@php- $proxyMenuItems = [- [- 'label' => 'Configuration',- 'route' => 'server.proxy',- 'active' => request()->routeIs('server.proxy'),- 'icon' => 'settings',- ],- [- 'label' => 'Dynamic Configurations',- 'route' => 'server.proxy.dynamic-confs',- 'active' => request()->routeIs('server.proxy.dynamic-confs'),- 'icon' => 'sliders',- 'visible' => $server->proxySet(),- ],- [- 'label' => 'Logs',- 'route' => 'server.proxy.logs',- 'active' => request()->routeIs('server.proxy.logs'),- 'icon' => 'file-content',- 'visible' => $server->proxySet(),- 'navigate' => false,- ],- ];-- $proxyMenuItems = array_values(array_filter(- $proxyMenuItems,- fn (array $item): bool => $item['visible'] ?? true,- ));-@endphp--<aside class="application-settings-navigation min-w-0 xl:self-start">- <nav aria-label="Proxy sections"- class="grid grid-cols-2 gap-0.5 border-y border-neutral-200 py-3 sm:grid-cols-3 xl:grid-cols-1 xl:border-y-0 xl:py-0 dark:border-white/[0.06]">- <div class="nav-section hidden xl:block">Proxy</div>- @foreach ($proxyMenuItems as $menuItem)- <a wire:key="server-proxy-link-{{ str($menuItem['label'])->slug() }}"- @class([- 'menu-item',- 'menu-item-active' => $menuItem['active'],- ])- @if ($menuItem['navigate'] ?? true) {{ wireNavigate() }} @endif- href="{{ route($menuItem['route'], $parameters) }}">- <x-reicon :name="$menuItem['icon']" class="menu-item-icon" />- <span class="menu-item-label">{{ $menuItem['label'] }}</span>- </a>- @endforeach- </nav>-</aside>diff --git a/resources/views/components/server/sidebar-security.blade.php b/resources/views/components/server/sidebar-security.blade.phpdeleted file mode 100644index 7ecebfb3b3..0000000000--- a/resources/views/components/server/sidebar-security.blade.php+++ /dev/null@@ -1,36 +0,0 @@-@php- $securityMenuItems = [- [- 'label' => 'Server Patching',- 'route' => 'server.security.patches',- 'active' => request()->routeIs('server.security.patches'),- 'icon' => 'bandage',- ],- [- 'label' => 'Terminal Access',- 'route' => 'server.security.terminal-access',- 'active' => request()->routeIs('server.security.terminal-access'),- 'icon' => 'browser-terminal',- 'navigate' => false,- ],- ];-@endphp--<aside class="application-settings-navigation min-w-0 xl:self-start">- <nav aria-label="Server security sections"- class="grid grid-cols-2 gap-0.5 border-y border-neutral-200 py-3 xl:grid-cols-1 xl:border-y-0 xl:py-0 dark:border-white/[0.06]">- <div class="nav-section hidden xl:block">Security</div>- @foreach ($securityMenuItems as $menuItem)- <a wire:key="server-security-link-{{ str($menuItem['label'])->slug() }}"- @class([- 'menu-item',- 'menu-item-active' => $menuItem['active'],- ])- @if ($menuItem['navigate'] ?? true) {{ wireNavigate() }} @endif- href="{{ route($menuItem['route'], $parameters) }}">- <x-reicon :name="$menuItem['icon']" class="menu-item-icon" />- <span class="menu-item-label">{{ $menuItem['label'] }}</span>- </a>- @endforeach- </nav>-</aside>diff --git a/resources/views/components/server/sidebar-sentinel.blade.php b/resources/views/components/server/sidebar-sentinel.blade.phpdeleted file mode 100644index e8e6157f16..0000000000--- a/resources/views/components/server/sidebar-sentinel.blade.php+++ /dev/null@@ -1,37 +0,0 @@-@php- $sentinelMenuItems = [- [- 'label' => 'Configuration',- 'route' => 'server.sentinel',- 'active' => request()->routeIs('server.sentinel'),- 'icon' => 'settings',- ],- [- 'label' => 'Logs',- 'route' => 'server.sentinel.logs',- 'active' => request()->routeIs('server.sentinel.logs'),- 'icon' => 'file-content',- ],- ];-@endphp--<aside class="application-settings-navigation min-w-0 xl:self-start">- @can('viewSentinel', $server)- <nav aria-label="Sentinel sections"- class="grid grid-cols-2 gap-0.5 border-y border-neutral-200 py-3 xl:grid-cols-1 xl:border-y-0 xl:py-0 dark:border-white/[0.06]">- <div class="nav-section hidden xl:block">Sentinel</div>- @foreach ($sentinelMenuItems as $menuItem)- <a wire:key="server-sentinel-link-{{ str($menuItem['label'])->slug() }}"- @class([- 'menu-item',- 'menu-item-active' => $menuItem['active'],- ])- {{ wireNavigate() }}- href="{{ route($menuItem['route'], $parameters) }}">- <x-reicon :name="$menuItem['icon']" class="menu-item-icon" />- <span class="menu-item-label">{{ $menuItem['label'] }}</span>- </a>- @endforeach- </nav>- @endcan-</aside>diff --git a/resources/views/components/services/advanced.blade.php b/resources/views/components/services/advanced.blade.phpdeleted file mode 100644index 3a6377aec0..0000000000--- a/resources/views/components/services/advanced.blade.php+++ /dev/null@@ -1,49 +0,0 @@-@php- $status = str($service->status ?? '');- $canDeploy = auth()->user()->can('deploy', $service);- $canStop = auth()->user()->can('stop', $service);- $hasAdvancedItems = ! $status->contains('running');-@endphp--@if ($hasAdvancedItems)-<div class="relative" x-data="{ open: false }"- x-effect="$dispatch('resource-actions-toggled', { open })"- @click.outside="open = false" @keydown.escape.window="open = false">- <button type="button" class="button" @click="open = !open" :aria-expanded="open"- aria-haspopup="menu">- <x-reicon name="grid" class="size-3.5 opacity-70" />- Advanced- <span class="inline-flex transition-transform" :class="open && 'rotate-180'">- <x-reicon name="chevron-down" class="size-3 opacity-55" />- </span>- </button>-- <div x-cloak x-show="open" x-transition.origin.top.right- class="listbox-panel top-full! right-0! left-auto! mt-1! w-64! min-w-0!" role="menu">- @if ($status->contains('degraded'))- <button type="button" class="listbox-option justify-start! gap-2.5!"- @disabled(! $canDeploy)- @click="$wire.dispatch('forceDeployEvent'); open = false"- role="menuitem">- <x-reicon name="refresh" class="size-3.5 opacity-70" />- Force Restart- </button>- @else- <button type="button" class="listbox-option justify-start! gap-2.5!"- @disabled(! $canDeploy)- @click="$wire.dispatch('forceDeployEvent'); open = false"- role="menuitem">- <x-reicon name="refresh" class="size-3.5 opacity-70" />- Force Deploy- </button>- <button type="button" class="listbox-option justify-start! gap-2.5!"- @disabled(! $canStop)- @click="$wire.dispatch('cleanupEvent'); open = false"- role="menuitem">- <x-reicon name="trash" class="size-3.5 opacity-70" />- Force Cleanup Containers- </button>- @endif- </div>-</div>-@endifdiff --git a/resources/views/components/services/restart.blade.php b/resources/views/components/services/restart.blade.phpdeleted file mode 100644index 6acfd29633..0000000000--- a/resources/views/components/services/restart.blade.php+++ /dev/null@@ -1,50 +0,0 @@-@props(['service'])--@php- $status = str($service->status ?? '');- $canDeploy = auth()->user()->can('deploy', $service);- $isRunning = $status->contains('running');- $isDegraded = $status->contains('degraded');-@endphp--@if ($isRunning || $isDegraded)- @if ($isRunning)- <div class="relative" x-data="{ open: false }"- x-effect="$dispatch('resource-actions-toggled', { open })"- @click.outside="open = false" @keydown.escape.window="open = false">- <button type="button" class="button" @click="open = !open" :aria-expanded="open"- aria-haspopup="menu" @disabled(! $canDeploy)>- <x-reicon name="restart" class="size-3.5 opacity-70" />- Restart- <span class="inline-flex transition-transform" :class="open && 'rotate-180'">- <x-reicon name="chevron-down" class="size-3 opacity-55" />- </span>- </button>-- <div x-cloak x-show="open" x-transition.origin.top.right- class="listbox-panel top-full! right-0! left-auto! mt-1! w-60! min-w-0!" role="menu">- <button type="button" class="listbox-option justify-start! gap-2.5!"- @disabled(! $canDeploy)- @click="open = false; document.getElementById('service-restart-trigger')?.click()"- role="menuitem">- <x-reicon name="restart" class="size-3.5 opacity-70" />- Restart current version- </button>- <button type="button" class="listbox-option justify-start! gap-2.5!"- @disabled(! $canDeploy)- @click="$wire.dispatch('pullAndRestartEvent'); open = false"- role="menuitem">- <x-reicon name="refresh" class="size-3.5 opacity-70" />- Pull latest and restart- </button>- </div>- </div>- @else- <button type="button" class="button"- @disabled(! $canDeploy)- @click="document.getElementById('service-restart-trigger')?.click()">- <x-reicon name="restart" class="size-3.5 opacity-70" />- Restart- </button>- @endif-@endifdiff --git a/resources/views/components/settings/navbar.blade.php b/resources/views/components/settings/navbar.blade.phpdeleted file mode 100644index 79b333ca3e..0000000000--- a/resources/views/components/settings/navbar.blade.php+++ /dev/null@@ -1,20 +0,0 @@-@props([- 'title' => 'Settings',- 'subtitle' => 'Instance configuration and maintenance',-])--{{-- Same 1180px shell as the workspace. Title hidden only at xl+ (full desktop). --}}-<div class="mx-auto w-full max-w-none">- <x-dashboard.navbar section="settings" :title="$title" :subtitle="$subtitle" :titleOnDesktop="false">- @isset($titleActions)- <x-slot:titleActions>- {{ $titleActions }}- </x-slot:titleActions>- @endisset- @isset($actions)- <x-slot:actions>- {{ $actions }}- </x-slot:actions>- @endisset- </x-dashboard.navbar>-</div>diff --git a/resources/views/components/settings/sidebar.blade.php b/resources/views/components/settings/sidebar.blade.phpdeleted file mode 100644index dbe381e050..0000000000--- a/resources/views/components/settings/sidebar.blade.php+++ /dev/null@@ -1,57 +0,0 @@-@php- $settingsMenuItems = [- [- 'label' => 'General',- 'route' => 'settings.index',- 'active' => $activeMenu === 'general',- 'icon' => 'settings',- ],- [- 'label' => 'Advanced',- 'route' => 'settings.advanced',- 'active' => $activeMenu === 'advanced',- 'icon' => 'grid',- ],- [- 'label' => 'Authentication',- 'route' => 'settings.oauth',- 'active' => $activeMenu === 'oauth',- 'icon' => 'keys',- ],- [- 'label' => 'Transactional Email',- 'route' => 'settings.email',- 'active' => $activeMenu === 'email',- 'icon' => 'notifications',- ],- [- 'label' => 'Instance Backup',- 'route' => 'settings.backup',- 'active' => $activeMenu === 'backup',- 'icon' => 'database',- ],- [- 'label' => 'Updates',- 'route' => 'settings.updates',- 'active' => $activeMenu === 'updates',- 'icon' => 'refresh3',- ],- ];-@endphp--<aside class="application-settings-navigation min-w-0 xl:self-start">- <nav aria-label="Configuration sections"- class="grid grid-cols-2 gap-0.5 border-y border-neutral-200 py-3 sm:grid-cols-3 xl:grid-cols-1 xl:border-y-0 xl:py-0 dark:border-white/[0.06]">- <div class="nav-section hidden xl:block">Configuration</div>- @foreach ($settingsMenuItems as $menuItem)- <a @class([- 'menu-item',- 'menu-item-active' => $menuItem['active'],- ])- {{ wireNavigate() }} href="{{ route($menuItem['route']) }}">- <x-reicon :name="$menuItem['icon']" class="menu-item-icon" />- <span class="menu-item-label">{{ $menuItem['label'] }}</span>- </a>- @endforeach- </nav>-</aside>diff --git a/resources/views/components/slide-over.blade.php b/resources/views/components/slide-over.blade.phpdeleted file mode 100644index a8a9b96653..0000000000--- a/resources/views/components/slide-over.blade.php+++ /dev/null@@ -1,68 +0,0 @@-@props(['closeWithX' => false, 'fullScreen' => false])-{{-- `contents` so event-only shells (no trigger in the default slot) do not leave a- ghost layout box above layer-2 tabs. Trigger buttons in the slot still flow- into the parent as if unwrapped. --}}-<div x-data="{- slideOverOpen: false-}"-x-init="$watch('slideOverOpen', value => {- if (!value) {- $dispatch('slideOverClosed')- }-})"-{{ $attributes->merge(['class' => 'contents']) }}>- {{ $slot }}- <template x-teleport="body">- <div x-show="slideOverOpen" @if (!$closeWithX) @keydown.window.escape="slideOverOpen=false" @endif- class="relative z-99 ">- <div x-show="slideOverOpen" @if (!$closeWithX) @click="slideOverOpen = false" @endif- x-transition:enter="transition-opacity ease-out duration-300"- x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100"- x-transition:leave="transition-opacity ease-in duration-200"- x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0"- class="fixed inset-0 dark:bg-black/60 backdrop-blur-xs"></div>- <div class="fixed inset-0 overflow-hidden">- <div class="absolute inset-0 overflow-hidden ">- <div class="fixed inset-y-0 right-0 flex max-w-full pl-10">- <div x-show="slideOverOpen"- @if (!$closeWithX) @click.away="slideOverOpen = false" @endif- x-transition:enter="transform transition ease-[cubic-bezier(0.32,0.72,0,1)] duration-200 sm:duration-300"- x-transition:enter-start="translate-x-full" x-transition:enter-end="translate-x-0"- x-transition:leave="transform transition ease-in duration-200"- x-transition:leave-start="translate-x-0" x-transition:leave-end="translate-x-full"- @class([- 'max-w-xl w-screen' => !$fullScreen,- 'max-w-4xl w-screen' => $fullScreen,- ])>- <div- class="flex flex-col h-full py-6 overflow-hidden border-l shadow-modal bg-neutral-50 dark:bg-base dark:border-neutral-800 border-neutral-200">- <div class="px-4 pb-4 sm:px-5">- <div class="flex items-start justify-between pb-1">- <h2 class="text-2xl leading-6" id="slide-over-title">- {{ $title }}- </h2>- <div class="flex items-center h-auto ml-3">- <button @click="slideOverOpen=false"- class="absolute cursor-pointer top-0 right-0 z-30 flex items-center justify-center w-8 h-8 mt-5 mr-5 rounded-full dark:text-white hover:bg-neutral-100 dark:hover:bg-coolgray-300 outline-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-coollabs dark:focus-visible:ring-warning focus-visible:ring-offset-2 dark:focus-visible:ring-offset-base">- <svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5" fill="none"- viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">- <path stroke-linecap="round" stroke-linejoin="round"- d="M6 18L18 6M6 6l12 12"></path>- </svg>- </button>- </div>- </div>- </div>- <div class="relative flex-1 px-4 mt-5 overflow-auto sm:px-5 scrollbar">- <div class="absolute inset-0 px-4 sm:px-5">- {{ $content }}- </div>- </div>- </div>- </div>- </div>- </div>- </div>- </div>- </template>-</div>diff --git a/resources/views/components/status/degraded.blade.php b/resources/views/components/status/degraded.blade.phpdeleted file mode 100644index 99ae2d4cdc..0000000000--- a/resources/views/components/status/degraded.blade.php+++ /dev/null@@ -1,19 +0,0 @@-@props([- 'status' => 'Degraded',-])-@php- if (str($status)->contains('(')) {- $displayStatus = $status;- $healthStatus = null;- } elseif (str($status)->contains(':') && ! str($status)->startsWith('Proxy')) {- $parts = explode(':', $status);- $displayStatus = str($parts[0])->headline()->value();- $healthStatus = $parts[1] ?? null;- } else {- $displayStatus = str($status)->headline()->value();- $healthStatus = null;- }-- $badgeStatus = $healthStatus ? "{$displayStatus} ({$healthStatus})" : $displayStatus;-@endphp-<x-status-badge status="{{ $badgeStatus }}" type="warning" />diff --git a/resources/views/components/status/index.blade.php b/resources/views/components/status/index.blade.phpdeleted file mode 100644index aafa106a7c..0000000000--- a/resources/views/components/status/index.blade.php+++ /dev/null@@ -1,33 +0,0 @@-@props([- 'title' => null,- 'lastDeploymentLink' => null,- 'resource' => null,- 'showRefreshButton' => true,-])-@php- $stoppedAfterRestartLimit = $resource && method_exists($resource, 'stoppedAfterRestartLimit') && $resource->stoppedAfterRestartLimit();-@endphp-<div class="flex flex-wrap items-center gap-1">- @if (str($resource->status)->startsWith('running'))- <x-status.running :status="$resource->status" :title="$title" :lastDeploymentLink="$lastDeploymentLink" />- @elseif(str($resource->status)->startsWith('degraded'))- <x-status.degraded :status="$resource->status" :title="$title" :lastDeploymentLink="$lastDeploymentLink" />- @elseif(str($resource->status)->startsWith('restarting') || str($resource->status)->startsWith('starting'))- <x-status.restarting :status="$resource->status" :title="$title" :lastDeploymentLink="$lastDeploymentLink" />- @else- <x-status.stopped :status="$resource->status" />- @endif- @if (isset($resource->restart_count) && $resource->restart_count > 0 && (!str($resource->status)->startsWith('exited') || $stoppedAfterRestartLimit))- <x-status-badge status="{{ $resource->restart_count }}x restarts" type="warning"- title="Container has restarted {{ $resource->restart_count }} time{{ $resource->restart_count > 1 ? 's' : '' }}. Last restart: {{ $resource->last_restart_at?->diffForHumans() }}" />- @endif- @if ($stoppedAfterRestartLimit)- <x-application.restart-limit-warning :application="$resource" />- @endif- @if (!str($resource->status)->contains('exited') && $showRefreshButton)- <x-status-badge as="button" wire:target="manualCheckStatus" wire:loading.attr="disabled"- wire:click='manualCheckStatus' status="Refresh" type="neutral" title="Refresh Status"- aria-label="Refresh status"- class="min-w-[4.5rem] justify-center cursor-pointer border-transparent hover:bg-neutral-200 disabled:cursor-wait disabled:opacity-70 dark:hover:bg-coolgray-300" />- @endif-</div>diff --git a/resources/views/components/status/services.blade.php b/resources/views/components/status/services.blade.phpdeleted file mode 100644index 0f90751b51..0000000000--- a/resources/views/components/status/services.blade.php+++ /dev/null@@ -1,22 +0,0 @@-@php- $displayStatus = formatContainerStatus($complexStatus);-@endphp-<div class="flex flex-wrap items-center gap-1">- @if (str($displayStatus)->lower()->contains('running'))- <x-status.running :status="$displayStatus" />- @elseif(str($displayStatus)->lower()->contains('starting'))- <x-status.restarting :status="$displayStatus" />- @elseif(str($displayStatus)->lower()->contains('restarting'))- <x-status.restarting :status="$displayStatus" />- @elseif(str($displayStatus)->lower()->contains('degraded'))- <x-status.degraded :status="$displayStatus" />- @else- <x-status.stopped :status="$displayStatus" />- @endif- @if (!str($complexStatus)->contains('exited') && $showRefreshButton)- <x-status-badge as="button" wire:target="manualCheckStatus" wire:loading.attr="disabled"- wire:click='manualCheckStatus' status="Refresh" type="neutral" title="Refresh Status"- aria-label="Refresh status"- class="min-w-[4.5rem] justify-center cursor-pointer border-transparent hover:bg-neutral-200 disabled:cursor-wait disabled:opacity-70 dark:hover:bg-coolgray-300" />- @endif-</div>diff --git a/resources/views/components/team/navbar.blade.php b/resources/views/components/team/navbar.blade.phpdeleted file mode 100644index 332465dcbe..0000000000--- a/resources/views/components/team/navbar.blade.php+++ /dev/null@@ -1,30 +0,0 @@-@props([- 'title' => 'Team',- 'subtitle' => 'Members, roles, and team settings',- // Hide family H1 only at xl+; keep create in the layer-2 bar.- 'titleOnDesktop' => false,-])--<x-dashboard.navbar section="team" :title="$title" :subtitle="$subtitle" :titleOnDesktop="$titleOnDesktop">- @isset($titleActions)- <x-slot:titleActions>- {{ $titleActions }}- </x-slot:titleActions>- @endisset- <x-slot:actions>- @isset($actions)- {{ $actions }}- @else- <x-modal-input title="New Team">- <x-slot:content>- <button type="button"- class="button button-highlighted">- <x-reicon name="plus" class="size-3.5" />- New team- </button>- </x-slot:content>- <livewire:team.create />- </x-modal-input>- @endisset- </x-slot:actions>-</x-dashboard.navbar>diff --git a/resources/views/components/use-magic-bar.blade.php b/resources/views/components/use-magic-bar.blade.phpdeleted file mode 100644index 3991e59581..0000000000--- a/resources/views/components/use-magic-bar.blade.php+++ /dev/null@@ -1,11 +0,0 @@-<div class="pt-4">- @if (isset($link))- Create a new one- <a href="{{ $link }}" class="underline dark:text-warning">- here.- </a>- {{-- @else- Use the magic- bar (press <span class="kbd-custom">/</span>) to create a new one. --}}- @endif-</div>diff --git a/resources/views/livewire/destination/navbar.blade.php b/resources/views/livewire/destination/navbar.blade.phpdeleted file mode 100644index 6c7315aa42..0000000000--- a/resources/views/livewire/destination/navbar.blade.php+++ /dev/null@@ -1,17 +0,0 @@-@props([- 'destination',- 'title' => null,- 'subtitle' => null,-])--@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')- <x-dashboard.navbar section="destination" :parameters="['destination_uuid' => $destination->uuid]"- :title="$title" :subtitle="$subtitle" :titleOnDesktop="true" />-@elseif (filled($title))- <header class="mb-8 min-w-0">- <h1 class="truncate text-[24px]! leading-7! font-semibold! tracking-tight!">{{ $title }}</h1>- @if (filled($subtitle))- <p class="mt-1 text-[13px] text-neutral-500 dark:text-fg-dim">{{ $subtitle }}</p>- @endif- </header>-@endifdiff --git a/resources/views/livewire/project/application/destination.blade.php b/resources/views/livewire/project/application/destination.blade.phpdeleted file mode 100644index c5b2dd03a6..0000000000--- a/resources/views/livewire/project/application/destination.blade.php+++ /dev/null@@ -1,8 +0,0 @@-<div>- <h2>Destination</h2>- <div class="">The destination server / network where your application will be deployed to.</div>- <div class="py-4 ">- <p>Server: {{ data_get($destination, 'server.name') }}</p>- <p>Destination Network: {{ $destination->network }}</p>- </div>-</div>diff --git a/resources/views/livewire/project/database/backup-now.blade.php b/resources/views/livewire/project/database/backup-now.blade.phpdeleted file mode 100644index 6e91428573..0000000000--- a/resources/views/livewire/project/database/backup-now.blade.php+++ /dev/null@@ -1,3 +0,0 @@-<x-forms.button wire:click="backupNow"- :disabled="! str($backup->database->status)->startsWith('running')"- :tooltip="! str($backup->database->status)->startsWith('running') ? 'The database must be running to start a backup.' : null">Back up now</x-forms.button>diff --git a/resources/views/livewire/project/new/empty-project.blade.php b/resources/views/livewire/project/new/empty-project.blade.phpdeleted file mode 100644index 7cc1a90bd7..0000000000--- a/resources/views/livewire/project/new/empty-project.blade.php+++ /dev/null@@ -1 +0,0 @@-<x-forms.button wire:click='createEmptyProject'>Empty Project</x-forms.button>diff --git a/resources/views/livewire/project/service/edit-domain.blade.php b/resources/views/livewire/project/service/edit-domain.blade.phpdeleted file mode 100644index 91518194cd..0000000000--- a/resources/views/livewire/project/service/edit-domain.blade.php+++ /dev/null@@ -1,84 +0,0 @@-<div class="w-full">- <form wire:submit.prevent='submit' class="flex w-full flex-col gap-4">- @if($requiredPort)- <x-callout type="info" title="Required Port: {{ $requiredPort }}" class="mb-2">- This service requires port <strong>{{ $requiredPort }}</strong> to function correctly. All domains must include this port number (or any other port if you know what you're doing).- <br><br>- <strong>Example:</strong> https://app.coolify.io:{{ $requiredPort }},https://www.app.coolify.io:{{ $requiredPort }}- </x-callout>- @endif-- <x-forms.domain-chips model="fqdn" label="Domains"- :can-update="auth()->user()->can('update', $application)"- :disabled="! auth()->user()->can('update', $application)" />- <div class="flex justify-end border-t border-neutral-200 pt-4 dark:border-white/[0.08]">- <x-forms.button canGate="update" :canResource="$application" type="submit">Save domain</x-forms.button>- </div>- </form>-- <x-domain-conflict-modal :conflicts="$domainConflicts" :showModal="$showDomainConflictModal" confirmAction="confirmDomainUsage">- <x-slot:consequences>- <ul class="mt-2 ml-4 list-disc">- <li>Only one service will be accessible at this domain</li>- <li>The routing behavior will be unpredictable</li>- <li>You may experience service disruptions</li>- <li>SSL certificates might not work correctly</li>- </ul>- </x-slot:consequences>- </x-domain-conflict-modal>-- @if ($showPortWarningModal)- <div x-data="{ modalOpen: true }" x-init="$nextTick(() => { modalOpen = true })"- @keydown.escape.window="modalOpen = false; $wire.call('cancelRemovePort')"- :class="{ 'z-40': modalOpen }" class="relative w-auto h-auto">- <template x-teleport="body">- <div x-show="modalOpen"- class="fixed inset-0 z-99 flex min-h-full items-center justify-center overflow-y-auto p-4" x-cloak>- <div x-show="modalOpen" class="absolute inset-0 bg-black/50 backdrop-blur-[2px]"></div>- <div x-show="modalOpen" x-trap.inert.noscroll="modalOpen" x-transition:enter="ease-out duration-100"- x-transition:enter-start="opacity-0 -translate-y-2 sm:scale-95"- x-transition:enter-end="opacity-100 translate-y-0 sm:scale-100"- x-transition:leave="ease-in duration-100"- x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100"- x-transition:leave-end="opacity-0 -translate-y-2 sm:scale-95"- class="application-settings-form application-settings-section relative w-full lg:min-w-[36rem] lg:max-w-2xl"- style="box-shadow: 0 0 0 1px var(--coollabs-hairline), var(--shadow-modal)">- <header>- <h3>Use a different port?</h3>- <button @click="modalOpen = false; $wire.call('cancelRemovePort')"- class="flex size-7 items-center justify-center rounded-md text-neutral-500 transition-colors hover:bg-neutral-100 hover:text-black dark:text-fg-faint dark:hover:bg-white/[0.06] dark:hover:text-fg">- <x-reicon name="x" class="size-4" />- </button>- </header>- <div class="application-settings-section-body">- <x-callout type="warning" title="Port requirement" class="mb-4">- This service requires port <strong>{{ $requiredPort }}</strong> to function correctly.- One or more of your domains use a different port, or none.- </x-callout>-- <x-callout type="danger" title="What will happen if you continue?" class="mb-4">- <ul class="mt-2 ml-4 list-disc">- <li>The service may become unreachable</li>- <li>The proxy may not be able to route traffic correctly</li>- <li>Environment variables may not be generated properly</li>- <li>The service may fail to start or function</li>- </ul>- </x-callout>-- <div class="mt-4 flex flex-wrap justify-end gap-2 border-t border-neutral-200 pt-4 dark:border-white/[0.08]">- <x-forms.button @click="modalOpen = false; $wire.call('cancelRemovePort')"- class="w-auto">- Keep required port- </x-forms.button>- <x-forms.button wire:click="confirmRemovePort" @click="modalOpen = false" class="w-auto"- isError>- Use this port anyway- </x-forms.button>- </div>- </div>- </div>- </div>- </template>- </div>- @endif-</div>diff --git a/resources/views/livewire/project/shared/upload-config.blade.php b/resources/views/livewire/project/shared/upload-config.blade.phpdeleted file mode 100644index 6980d249e0..0000000000--- a/resources/views/livewire/project/shared/upload-config.blade.php+++ /dev/null@@ -1,6 +0,0 @@-<form wire:submit="uploadConfig" class="flex flex-col gap-2 w-full">- <x-forms.textarea id="config" monacoEditorLanguage="json" useMonacoEditor />- <x-forms.button type="submit">- Upload- </x-forms.button>-</form>diff --git a/resources/views/livewire/tags/deployments.blade.php b/resources/views/livewire/tags/deployments.blade.phpdeleted file mode 100644index 03eb633bc2..0000000000--- a/resources/views/livewire/tags/deployments.blade.php+++ /dev/null@@ -1,48 +0,0 @@-<div wire:poll.2000ms="getDeployments" wire:init="getDeployments">- <x-application.settings-section title="Active deployments"- description="Deployments currently running for resources with this tag." flush>- @if (collect($deploymentsPerTagPerServer)->flatten(1)->isEmpty())- <x-empty title="No active deployments"- description="Queued and running deployments will appear here automatically."- icon-name="refresh" size="sm" />- @else- <div class="data-table w-full">- <div- class="grid grid-cols-[minmax(0,1fr)_minmax(8rem,.55fr)_8rem] border-b border-neutral-200 bg-neutral-50 px-4 py-2.5 text-[11px] font-medium text-neutral-500 dark:border-white/[0.08] dark:bg-white/[0.05] dark:text-fg-faint">- <span>Resource</span>- <span>Server</span>- <span>Status</span>- </div>-- @foreach ($deploymentsPerTagPerServer as $serverName => $deployments)- @foreach ($deployments as $deployment)- @php- $status = data_get($deployment, 'status');- $statusType = $status === 'in_progress' ? 'warning' : 'neutral';- @endphp- <a {{ wireNavigate() }} href="{{ data_get($deployment, 'deployment_url') }}"- class="grid min-h-14 grid-cols-[minmax(0,1fr)_minmax(8rem,.55fr)_8rem] items-center border-b border-neutral-200 px-4 py-2.5 text-[12px] transition-colors last:border-b-0 hover:bg-neutral-50 hover:no-underline dark:border-white/[0.07] dark:hover:bg-white/[0.025]">- <span class="flex min-w-0 items-center gap-3">- <span- class="flex size-8 shrink-0 items-center justify-center rounded-lg border border-neutral-200 bg-neutral-50 text-neutral-500 dark:border-white/[0.08] dark:bg-white/[0.035] dark:text-fg-dim">- <x-reicon name="refresh" class="size-4" />- </span>- <span class="truncate text-[13px] font-semibold text-black dark:text-fg">- {{ data_get($deployment, 'application_name') }}- </span>- </span>- <span class="truncate text-neutral-500 dark:text-fg-dim">{{ $serverName }}</span>- <x-status-badge :status="str($status)->headline()" :type="$statusType" />- </a>- @endforeach- @endforeach-- <footer- class="flex min-h-11 items-center border-t border-neutral-200 px-4 text-[11px] text-neutral-500 dark:border-white/[0.08] dark:text-fg-faint">- {{ collect($deploymentsPerTagPerServer)->flatten(1)->count() }}- {{ Str::plural('deployment', collect($deploymentsPerTagPerServer)->flatten(1)->count()) }}- </footer>- </div>- @endif- </x-application.settings-section>-</div>diff --git a/tests/Feature/AdvancedMenuIconConsistencyTest.php b/tests/Feature/AdvancedMenuIconConsistencyTest.phpdeleted file mode 100644index f54e4b0601..0000000000--- a/tests/Feature/AdvancedMenuIconConsistencyTest.php+++ /dev/null@@ -1,52 +0,0 @@-<?php--/**- * Advanced navigation and action menus must share the same reicon ("grid").- */-test('advanced sidebar and configuration menus use the grid icon', function () {- $files = [- resource_path('views/components/settings/layout.blade.php'),- resource_path('views/components/server/sidebar.blade.php'),- resource_path('views/components/service-database/sidebar.blade.php'),- resource_path('views/livewire/project/service/index.blade.php'),- resource_path('views/livewire/project/application/configuration.blade.php'),- ];-- foreach ($files as $path) {- $contents = file_get_contents($path);-- expect($contents)->toContain('Advanced');-- // PHP menu arrays: label Advanced paired with icon grid- if (str_contains($contents, "'label' => 'Advanced'") || str_contains($contents, "'Advanced' =>")) {- expect($contents)- ->toMatch("/'label'\\s*=>\\s*'Advanced'[\\s\\S]{0,160}?'icon'\\s*=>\\s*'grid'|'Advanced'\\s*=>\\s*'grid'/")- ->not->toMatch("/'Advanced'\\s*=>\\s*'(?!grid)[^']+'/");- }-- // Inline blade markup: reicon grid near Advanced label- if (str_contains($contents, 'menu-item-label">Advanced')) {- expect($contents)- ->toMatch('/name="grid"[\\s\\S]{0,120}menu-item-label">Advanced/')- ->not->toMatch('/name="(?!grid)[^"]+"[\\s\\S]{0,120}menu-item-label">Advanced/');- }- }-});--test('advanced action dropdown menus use the grid icon', function () {- $files = [- resource_path('views/components/applications/advanced.blade.php'),- resource_path('views/components/services/advanced.blade.php'),- resource_path('views/components/server/advanced.blade.php'),- ];-- foreach ($files as $path) {- $contents = file_get_contents($path);-- expect($contents)- ->toContain('Advanced')- ->toContain('name="grid"')- ->not->toContain('name="sliders"')- ->not->toContain("name='sliders'");- }-});diff --git a/tests/Feature/ApiTokenPermissionsLayoutTest.php b/tests/Feature/ApiTokenPermissionsLayoutTest.phpdeleted file mode 100644index 227cab4267..0000000000--- a/tests/Feature/ApiTokenPermissionsLayoutTest.php+++ /dev/null@@ -1,18 +0,0 @@-<?php--it('shows API token permissions in a dropdown and keeps non-root options rendered', function () {- $view = file_get_contents(resource_path('views/livewire/security/api-tokens.blade.php'));- $permissionsSection = str($view)->between(- '<h4 class="text-[12px] font-semibold text-black dark:text-fg">Permissions</h4>',- '</x-application.settings-section>'- )->toString();-- expect($permissionsSection)- ->toContain('permissionsOpen')- ->toContain('Selected permissions')- ->toContain('<x-forms.checkbox')- ->toContain("in_array('root', \$permissions)")- ->toContain('Read sensitive data')- ->not->toContain('<input type="checkbox" value="root"')- ->not->toContain("@if (!in_array('root', \$permissions))");-});diff --git a/tests/Feature/ApiTokensRevokeButtonTest.php b/tests/Feature/ApiTokensRevokeButtonTest.phpdeleted file mode 100644index a728318a56..0000000000--- a/tests/Feature/ApiTokensRevokeButtonTest.php+++ /dev/null@@ -1,9 +0,0 @@-<?php--test('api tokens revoke action is text-only without a trash icon', function () {- $blade = file_get_contents(resource_path('views/livewire/security/api-tokens.blade.php'));-- expect($blade)- ->toContain('Revoke')- ->not->toMatch('/name="trash"[\s\S]{0,80}Revoke|Revoke[\s\S]{0,80}name="trash"/');-});diff --git a/tests/Feature/AppearanceThemeTest.php b/tests/Feature/AppearanceThemeTest.phpdeleted file mode 100644index c4022c87a2..0000000000--- a/tests/Feature/AppearanceThemeTest.php+++ /dev/null@@ -1,148 +0,0 @@-<?php--test('custom color theme is available and applied across theme controls', function () {- $appearance = file_get_contents(resource_path('views/livewire/profile/appearance.blade.php'));- $accountMenu = file_get_contents(resource_path('views/components/top-user-menu.blade.php'));- $component = file_get_contents(resource_path('views/components/theme-controls.blade.php'));- $picker = file_get_contents(resource_path('views/components/theme-controls/picker.blade.php'));- $layout = file_get_contents(resource_path('views/layouts/base.blade.php'));- $deploymentLogs = file_get_contents(resource_path('views/livewire/project/application/deployment/show.blade.php'));- $serverTiming = file_get_contents(resource_path('views/components/server-timing-hud.blade.php'));- $terminal = file_get_contents(resource_path('js/terminal.js'));- $styles = file_get_contents(resource_path('css/app.css'));- $utilities = file_get_contents(resource_path('css/utilities.css'));-- expect($appearance)- ->toContain('<x-theme-controls variant="full"')- ->and($accountMenu)- ->toContain('<x-theme-controls variant="menu"')- ->and($component)- ->toContain("['value' => 'custom', 'label' => 'Custom'")- ->toContain('<x-theme-controls.picker')- ->and($picker)- ->toContain('type="color"')- ->toContain('@input="previewThemeColor($event.target.value)"')- ->toContain('@change="saveThemeColor($event.target.value)"')- ->toContain('aria-label="Custom theme color"')- ->toContain('setCustomMode')- ->and($layout)- ->toContain('window.themeControls')- ->toContain('requestAnimationFrame(() =>')- ->toContain("localStorage.setItem('themeColor', color)")- ->toContain("this.theme === 'custom'")- ->and($layout)- ->toContain("t === 'custom'")- ->toContain("localStorage.themeColor || '#6b16ed'")- ->toContain('--theme-accent-foreground')- ->toContain('window.applyStoredTheme')- ->toContain("document.addEventListener('livewire:navigated', window.applyStoredTheme)")- ->and($styles)- ->toContain('html[data-theme="custom"]')- ->toContain('--theme-base-color: oklch(49.65% 0.2709 289.33);')- ->toContain('--theme-bright-color: color-mix(in srgb, var(--theme-base-color) 85%, oklch(100% 0 0));')- ->toContain('--color-accent: var(--theme-bright-color);')- ->toContain('--color-coollabs: var(--theme-bright-color);')- ->toContain('--color-warning: var(--theme-bright-color);')- ->toContain('--color-accent-foreground: var(--theme-accent-foreground);')- ->toContain('--color-fg-dim: oklch(91.08% 0.0157 306.4);')- ->toContain('--color-fg-faint: oklch(87.24% 0.0188 306.63);')- ->toContain('html[data-theme="custom"] .control-selected')- ->toContain('--theme-scrollbar-thumb: color-mix(in srgb, var(--theme-bright-color) 70%, var(--theme-accent-foreground));')- ->toContain('--theme-border-color: color-mix(in oklab, var(--theme-base-color) 42%, oklch(44.19% 0.0146 285.79));')- ->toContain('--theme-fg-on-surface: oklch(from var(--theme-base-color) clamp(0.72, l, 0.86) min(c, 0.13) h);')- ->toContain('--theme-placeholder-color: oklch(from var(--theme-base-color) 0.62 min(c, 0.03) h);')- ->toContain('html[data-theme="custom"] *')- ->toContain('scrollbar-color: var(--theme-scrollbar-thumb) var(--color-panel);')- ->toContain('html[data-theme="custom"] *::-webkit-scrollbar-thumb')- ->toContain('html[data-theme="custom"] .application-settings-navigation')- ->toContain('scrollbar-gutter: stable;')- ->toContain('--color-panel: color-mix(in oklab, var(--theme-base-color) 14%, oklch(15.48% 0.0021 286.15));')- ->toContain('--color-surface: color-mix(in oklab, var(--theme-base-color) 18%, oklch(17.35% 0.0020 286.18));')- ->toContain('--coollabs-elevated: var(--color-surface);')- ->toContain('--coollabs-recessed: var(--color-raised);')- ->toContain('--coollabs-base: color-mix(in oklab, var(--theme-base-color) 22%, oklch(17.81% 0.0020 286.19));')- ->toContain('--color-content-surface: var(--coollabs-base);')- ->toContain('--coollabs-fill: color-mix(in oklab, var(--theme-base-color) 32%, oklch(20.99% 0.0039 286.06));')- ->toContain('--color-nav-text: oklch(91.08% 0.0157 306.4);')- ->toContain('--color-nav-muted: oklch(87.24% 0.0188 306.63);')- ->toContain('--color-log: color-mix(in oklab, var(--theme-base-color) 20%, oklch(13.49% 0.0024 286.07));')- ->toContain('--color-log-toolbar: color-mix(in oklab, var(--theme-base-color) 26%, oklch(17.35% 0.0020 286.18));')- ->toContain('html[data-theme="custom"] .logs-viewer-toolbar')- ->toContain('html[data-theme="custom"] .logs-viewer-timestamp')- ->toContain('html[data-theme="custom"] #nprogress .bar')- ->toContain('background: var(--theme-bright-color) !important;')- ->toContain('html[data-theme="custom"] #nprogress .spinner-icon')- ->toContain('html[data-theme="custom"] .loading-indicator')- ->toContain('html[data-theme="custom"] .data-table')- ->toContain('html[data-theme="custom"] [class~="dark:bg-white/[0.025]"]')- ->toContain('html[data-theme="custom"] [class~="dark:bg-surface"]')- ->toContain('background-color: var(--color-content-surface) !important;')- ->toContain('.dark [class~="dark:border-white/[0.08]"]')- ->toContain('.dark [class~="dark:border-white/[0.06]"]')- ->toContain('border-color: var(--coollabs-hairline) !important;')- ->toContain('html[data-theme="custom"] input::placeholder')- ->toContain('color: var(--theme-placeholder-color) !important;')- ->toMatch('/html\[data-theme="custom"\] input::placeholder,[^{]+\{[^}]*opacity: 1;/s')- ->toContain('html[data-theme="custom"] input:read-only')- ->and($deploymentLogs)- ->toContain('dark:bg-log')- ->not->toContain('dark:bg-[#0d0d0d]')- ->and($serverTiming)- ->toContain('html[data-theme="custom"] #server-timing-hud')- ->toContain('--sth-background: var(--color-surface);')- ->toContain('--sth-livewire: var(--theme-bright-color);')- ->and($utilities)- ->toContain('text-nav-text')- ->toContain('text-nav-muted')- ->toContain('text-nav-active')- ->and($terminal)- ->toContain("dataset.theme === 'custom'")- ->toContain("localStorage.getItem('themeColor')")- ->toContain("attributeFilter: ['class', 'data-theme', 'style']")- ->and($styles)- ->toContain('html[data-theme="custom"] .application-console-shell[data-console-theme="system"]')- ->toContain('--console-theme-background: var(--color-log);')- ->toContain('--console-theme-border: var(--coollabs-line);');-});--test('navigation colors meet WCAG AA contrast requirements', function () {- $styles = file_get_contents(resource_path('css/app.css'));-- $contrastRatio = function (string $foreground, string $background): float {- $luminance = function (string $color): float {- $channels = array_map(- fn (string $channel): float => hexdec($channel) / 255,- str_split(ltrim($color, '#'), 2),- );-- $channels = array_map(- fn (float $channel): float => $channel <= 0.04045- ? $channel / 12.92- : (($channel + 0.055) / 1.055) ** 2.4,- $channels,- );-- return 0.2126 * $channels[0] + 0.7152 * $channels[1] + 0.0722 * $channels[2];- };-- [$lighter, $darker] = collect([$luminance($foreground), $luminance($background)])- ->sortDesc()- ->values()- ->all();-- return ($lighter + 0.05) / ($darker + 0.05);- };-- $themes = [- [['#525252', '#666666', '#171717'], '#ffffff'],- [['#a8a8b0', '#7a7a84', '#f2f2f2'], '#0c0c0d'],- [['#e4dfea', '#d8d2df', '#ffffff', '#e4dfea', '#d8d2df'], '#58585a'],- ];-- foreach ($themes as [$colors, $background]) {- foreach ($colors as $color) {- expect($styles)->toContain($color);- expect($contrastRatio($color, $background))->toBeGreaterThanOrEqual(4.5);- }- }-});diff --git a/tests/Feature/ApplicationDestinationStatusBadgeTest.php b/tests/Feature/ApplicationDestinationStatusBadgeTest.phpdeleted file mode 100644index 43bac41486..0000000000--- a/tests/Feature/ApplicationDestinationStatusBadgeTest.php+++ /dev/null@@ -1,19 +0,0 @@-<?php--it('uses the shared status summary in the primary application server card', function () {- $view = file_get_contents(resource_path('views/livewire/project/shared/destination.blade.php'));- $applicationSection = str($view)->before('@else')->value();-- expect($applicationSection)- ->toContain('<x-status-summary :status="$resource->status" align="right" />')- ->not->toContain('<x-status :resource="$resource"');-});--it('links each configured server card to its server page', function () {- $view = file_get_contents(resource_path('views/livewire/project/shared/destination.blade.php'));-- expect($view)- ->toContain("route('server.show', ['server_uuid' => data_get(\$resource, 'destination.server.uuid')])")- ->toContain("route('server.show', ['server_uuid' => data_get(\$destination, 'server.uuid')])")- ->toContain('Open server');-});diff --git a/tests/Feature/ApplicationGeneralLayoutTest.php b/tests/Feature/ApplicationGeneralLayoutTest.phpdeleted file mode 100644index 889f1318b2..0000000000--- a/tests/Feature/ApplicationGeneralLayoutTest.php+++ /dev/null@@ -1,76 +0,0 @@-<?php--test('compose actions are grouped with the application details header', function () {- $view = file_get_contents(resource_path('views/livewire/project/application/general.blade.php'));- $applicationDetails = str($view)- ->after('class="application-details-card">')- ->before('</x-application.settings-section>')- ->toString();-- expect($applicationDetails)- ->toContain('<x-slot:actions>')- ->toContain('x-on:click="$wire.dispatch(\'loadCompose\', false)"')- ->toContain('Reload compose');-});--test('compose file loading waits for the user to confirm the file location', function () {- $view = file_get_contents(resource_path('views/livewire/project/application/general.blade.php'));-- expect($view)- ->toContain('x-on:click="$wire.dispatch(\'loadCompose\', false)"')- ->not->toContain('x-init="$wire.dispatch(\'loadCompose\', true)"');-});--test('traffic analytics is only shown on the dedicated analytics page', function () {- $view = file_get_contents(resource_path('views/livewire/project/application/general.blade.php'));-- expect($view)->not->toContain('<livewire:project.application.traffic-overview');-});--test('docker compose heading separates its title and action', function () {- $view = file_get_contents(resource_path('views/livewire/project/application/general.blade.php'));-- expect($view)- ->toContain('<div x-data="{ showRaw: true }" class="mt-5">')- ->toContain('<div class="mb-2 flex items-center justify-between gap-4">');-});--test('unsaved changes ignore compose initialization state', function () {- $view = file_get_contents(resource_path('views/livewire/project/application/general.blade.php'));- $unsavedBar = str($view)- ->after('<x-unsaved-bar action="submit"')- ->before('/>')- ->toString();-- expect($unsavedBar)- ->toContain('targets="')- ->toContain('name,description')- ->not->toContain('initLoadingCompose')- ->not->toContain('dockerComposeRaw')- ->not->toContain('dockerCompose,');-});--test('onboarding uses the reusable advanced settings component', function () {- $view = file_get_contents(resource_path('views/livewire/project/application/general.blade.php'));- $onboarding = file_get_contents(resource_path('views/livewire/boarding/index.blade.php'));-- expect($view)- ->toContain('id="dockerComposeCustomBuildCommand"')- ->not->toContain('<x-forms.collapsible class="pt-4" content-class="grid gap-4">')- ->not->toContain('The following commands are for advanced use cases.')- ->and($onboarding)- ->toContain('<x-forms.collapsible title="Advanced Connection Settings"');-});--test('deployments-only servers require a registry image because builds run elsewhere', function () {- $view = file_get_contents(resource_path('views/livewire/project/application/general.blade.php'));- $requiredImageCondition = str($view)- ->after("@if (\$application->build_pack === 'dockerimage')")- ->after('@else')- ->before('<x-forms.input id="dockerRegistryImageName" required label="Image"')- ->toString();-- expect($requiredImageCondition)- ->toContain('$application->settings->is_build_server_enabled')- ->toContain('! $application->destination->server->canBuildApplications()');-});diff --git a/tests/Feature/ApplicationInternalAccessSectionTest.php b/tests/Feature/ApplicationInternalAccessSectionTest.phpdeleted file mode 100644index 8a5c7abd02..0000000000--- a/tests/Feature/ApplicationInternalAccessSectionTest.php+++ /dev/null@@ -1,61 +0,0 @@-<?php--it('shows internal Docker access details in application general settings', function () {- $generalSettings = file_get_contents(resource_path('views/livewire/project/application/general.blade.php'));- $generalComponent = file_get_contents(app_path('Livewire/Project/Application/General.php'));- $internalAccessSettings = file_get_contents(resource_path('views/livewire/project/application/internal-access.blade.php'));- $internalAccessComponent = file_get_contents(app_path('Livewire/Project/Application/InternalAccess.php'));- $configurationSidebar = file_get_contents(resource_path('views/components/application/configuration-sidebar.blade.php'));-- expect($generalSettings)- ->toContain('id="access-section" title="Access"')- ->toContain('<h3 class="mb-3 text-sm font-semibold text-black dark:text-fg">Public access</h3>')- ->toContain('$primaryDomain = null;')- ->toContain('$additionalDomainCount = max(0, $domainCount - 1);')- ->toContain("aria-label=\"{{ \$domainCount > 0 ? 'Manage application domains' : 'Add an application domain' }}\"")- ->toContain('{{ $primaryDomain }}')- ->toContain("+{{ \$additionalDomainCount }} more {{ Str::plural('domain', \$additionalDomainCount) }}")- ->toContain('No public domain configured')- ->toContain('Make this application available from a URL')- ->toContain("{{ \$domainCount > 0 ? 'Manage domains' : 'Add domain' }}")- ->toContain('class="button relative z-10 ml-auto shrink-0"')- ->toContain('aria-label="{{ $domainCount > 0 ? \'Manage application domains\' : \'Add an application domain\' }}"')- ->toContain('<x-reicon name="arrow-right" class="size-4" />')- ->not->toContain('<x-reicon name="settings" class="size-4" />')- ->toContain('<livewire:project.application.internal-access')- ->not->toContain('wire:init="loadCurrentInternalHostname"')- ->and($internalAccessSettings)- ->toContain('id="internal-access-section"')- ->toContain('<h3 class="mb-4 text-sm font-semibold text-black dark:text-fg">Internal access</h3>')- ->not->toContain('<x-application.settings-section')- ->toContain('Internal hostname')- ->toContain('Docker network')- ->toContain('Exposed ports')- ->toContain('Network aliases')- ->toContain('wire:init="loadCurrentInternalHostname"')- ->toContain('$currentInternalHostname')- ->toContain('class="input input-with-copy-button bg-white dark:bg-coolgray-100 dark:read-only:bg-coolgray-100 dark:read-only:text-white"')- ->not->toContain('Changes with each deployment')- ->toContain("window.scrollToSettingsSection?.('networking-section')")- ->and($generalComponent)- ->not->toContain('public function loadCurrentInternalHostname(): void')- ->and($internalAccessComponent)- ->toContain('public ?string $currentInternalHostname = null;')- ->toContain('public function loadCurrentInternalHostname(): void')- ->toContain('getCurrentApplicationContainerStatus(')- ->toContain("data_get(\$currentContainer, 'Names')")- ->and($configurationSidebar)- ->toContain("['id' => 'access-section', 'label' => 'Access']");-});--it('does not show the internal access section for Docker Compose applications', function () {- $generalSettings = file_get_contents(resource_path('views/livewire/project/application/general.blade.php'));- $configurationSidebar = file_get_contents(resource_path('views/components/application/configuration-sidebar.blade.php'));-- expect($generalSettings)- ->toContain("@if (\$buildPack !== 'dockercompose')")- ->and($configurationSidebar)- ->toContain("['id' => 'access-section', 'label' => 'Access']")- ->not->toContain("['id' => 'public-access-section', 'label' => 'Public access']")- ->not->toContain("['id' => 'internal-access-section', 'label' => 'Internal access']");-});diff --git a/tests/Feature/ApplicationRollbackIconTest.php b/tests/Feature/ApplicationRollbackIconTest.phpdeleted file mode 100644index 927c0b7cef..0000000000--- a/tests/Feature/ApplicationRollbackIconTest.php+++ /dev/null@@ -1,16 +0,0 @@-<?php--/**- * Application configuration Rollback nav must use the reicon "time-back" glyph.- */-test('application rollback menu uses the time-back icon', function () {- $configuration = file_get_contents(resource_path('views/livewire/project/application/configuration.blade.php'));- $reicon = file_get_contents(resource_path('views/components/reicon.blade.php'));-- expect($configuration)- ->toMatch("/'Rollback'\\s*=>\\s*'time-back'/")- ->not->toMatch("/'Rollback'\\s*=>\\s*'logout'/");-- expect($reicon)- ->toContain("'time-back' =>");-});diff --git a/tests/Feature/BoardingActionsLayoutTest.php b/tests/Feature/BoardingActionsLayoutTest.phpdeleted file mode 100644index 795ae71ecc..0000000000--- a/tests/Feature/BoardingActionsLayoutTest.php+++ /dev/null@@ -1,74 +0,0 @@-<?php--test('boarding utility actions are centered', function () {- $view = file_get_contents(resource_path('views/livewire/boarding/index.blade.php'));-- expect($view)->toContain('class="mx-auto mt-6 flex w-full max-w-3xl flex-col items-center gap-3"');-});--test('server validation opens in the centered process dialog', function () {- $view = file_get_contents(resource_path('views/livewire/boarding/index.blade.php'));-- expect($view)- ->toContain('<x-process-dialog closeWithX size="xl">')- ->toContain('@click="processDialogOpen = true"')- ->not->toContain('<x-slide-over closeWithX fullScreen>');-});--test('DigitalOcean is available as an onboarding server provider', function () {- $view = file_get_contents(resource_path('views/livewire/boarding/index.blade.php'));-- expect($view)- ->toContain('<x-modal-input title="Connect a DigitalOcean Server" isFullWidth>')- ->toContain('<x-digital-ocean-icon class="size-10 shrink-0" />')- ->toContain('Deploy servers directly from your DigitalOcean account.')- ->toContain('<livewire:server.new.by-digital-ocean :limit_reached="false" :from_onboarding="true" />');-});--test('server type details are shown on the relevant cards instead of a technical details panel', function () {- $view = file_get_contents(resource_path('views/livewire/boarding/index.blade.php'));-- expect($view)- ->toContain('aria-label="About this machine"')- ->toContain('aria-label="About remote servers"')- ->toContain('Not recommended for production workloads due to resource contention.')- ->toContain('Any SSH-accessible server, including cloud VPS, bare metal, and self-hosted infrastructure.')- ->not->toContain('<x-highlighted text="Servers" />')- ->not->toContain('<x-highlighted text="Localhost:" />')- ->not->toContain('<x-highlighted text="Remote Server:" />');-});--test('server type cards use the standard card hover treatment', function () {- $view = file_get_contents(resource_path('views/livewire/boarding/index.blade.php'));- $hoverClasses = 'shadow-sm transition-all hover:-translate-y-px hover:border-neutral-300 hover:shadow-md';- preg_match_all('/min-h-36[^\"]*'.preg_quote($hoverClasses, '/').'/', $view, $matches);-- expect($matches[0])->toHaveCount(5)- ->and(substr_count($view, 'group relative cursor-pointer'))->toBe(5)- ->and($view)->not->toContain('hover:border-coollabs/35 hover:bg-coollabs/[0.03]')- ->and($view)->not->toContain('dark:hover:border-warning/25 dark:hover:bg-warning/[0.04]');-});--test('existing SSH key selection does not show a redundant value tooltip', function () {- $view = file_get_contents(resource_path('views/livewire/boarding/index.blade.php'));-- expect($view)->toContain('label="Existing SSH key" :options="$privateKeyOptions" :tooltip="false"');-});--test('server connection step does not render a technical details panel', function () {- $view = file_get_contents(resource_path('views/livewire/boarding/index.blade.php'));-- expect($view)- ->not->toContain('<x-highlighted text="Connection Requirements:" />')- ->not->toContain('<x-highlighted text="Hostname Resolution:" />')- ->not->toContain('<x-highlighted text="User Permissions:" />');-});--test('project step does not render a technical details panel', function () {- $view = file_get_contents(resource_path('views/livewire/boarding/index.blade.php'));-- expect($view)- ->not->toContain('<x-highlighted text="Project Organization:" />')- ->not->toContain('<x-highlighted text="Environments:" />')- ->not->toContain('<x-highlighted text="Team Access:" />');-});diff --git a/tests/Feature/BreadcrumbSelectionStyleTest.php b/tests/Feature/BreadcrumbSelectionStyleTest.phpdeleted file mode 100644index d6a5978d3b..0000000000--- a/tests/Feature/BreadcrumbSelectionStyleTest.php+++ /dev/null@@ -1,73 +0,0 @@-<?php--test('breadcrumb switchers indicate the current item with background only', function () {- $views = collect([- resource_path('views/components/top-breadcrumb.blade.php'),- resource_path('views/components/breadcrumb-switcher.blade.php'),- resource_path('views/livewire/switch-team.blade.php'),- ])->map(fn (string $path): string => file_get_contents($path));-- expect($views->implode("\n"))- ->not->toContain('name="check-circle"')- ->and($views->every(fn (string $view): bool => str_contains($view, 'bg-neutral-100')))- ->toBeTrue();-});--test('teleported resource breadcrumbs use the same spacing as application breadcrumbs', function () {- $layout = file_get_contents(resource_path('views/layouts/app.blade.php'));-- expect($layout)- ->toContain('class="flex items-center gap-0.5 min-w-0 flex-1 pl-3 pr-4"')- ->not->toContain('class="flex items-center gap-1.5 min-w-0 flex-1 pl-3 pr-4"');-});--test('top breadcrumbs shrink and clip instead of overlapping on narrower screens', function () {- $breadcrumb = file_get_contents(resource_path('views/components/top-breadcrumb.blade.php'));- $layout = file_get_contents(resource_path('views/layouts/app.blade.php'));-- expect($breadcrumb)- ->toContain('class="flex w-full min-w-0 items-center gap-0.5 text-[13px]"')- ->not->toContain('overflow-hidden text-[13px]')- ->toContain('class="min-w-0 shrink" x-data="{ collapsed: false }"')- ->not->toContain('class="shrink-0" x-data="{ collapsed: false }"')- ->and($layout)- ->toContain('class="relative flex min-w-0 flex-1 items-center"')- ->not->toContain('flex min-w-0 flex-1 items-center overflow-hidden')- ->not->toContain('<div class="flex-1"></div>');-});--test('resource headings do not duplicate database and service breadcrumbs', function () {- $headings = collect([- resource_path('views/livewire/project/database/heading.blade.php'),- resource_path('views/livewire/project/service/heading.blade.php'),- ])->map(fn (string $path): string => file_get_contents($path));-- expect($headings->implode("\n"))->not->toContain("@teleport('#server-topbar-context')");-});--test('top breadcrumb lets users switch between resources in the current environment', function () {- $breadcrumb = file_get_contents(resource_path('views/components/top-breadcrumb.blade.php'));-- expect($breadcrumb)- ->toContain('$currentEnvironment->applications')- ->toContain('$currentEnvironment->databases()')- ->toContain('$currentEnvironment->services')- ->toContain('<x-breadcrumb-switcher title="Resources"')- ->toContain("'application' => route('project.application.configuration'")- ->toContain("'database' => route('project.database.configuration'")- ->toContain("'service' => route('project.service.configuration'");-});--test('breadcrumb switchers let users search their items', function () {- $switcher = file_get_contents(resource_path('views/components/breadcrumb-switcher.blade.php'));-- expect($switcher)- ->toContain('x-model.debounce.150ms="search"')- ->toContain('type="search"')- ->toContain('placeholder="Search {{ strtolower($title) }}"')- ->toContain('class="searchable-listbox-search"')- ->toContain('class="searchable-listbox-search-input"')- ->toContain('<x-reicon name="search"')- ->toContain('left-4 size-3')- ->toContain('.includes(search.toLowerCase())');-});diff --git a/tests/Feature/BrowserTerminalIconConsistencyTest.php b/tests/Feature/BrowserTerminalIconConsistencyTest.phpdeleted file mode 100644index a05951a549..0000000000--- a/tests/Feature/BrowserTerminalIconConsistencyTest.php+++ /dev/null@@ -1,36 +0,0 @@-<?php--/**- * Terminal-related UI must use the redesign "browser-terminal" reicon, not the- * older "terminal" (four-way arrows) glyph.- */-test('terminal and console views use the browser-terminal icon', function () {- $files = [- resource_path('views/components/navbar.blade.php'),- resource_path('views/components/backup-sidebar.blade.php'),- resource_path('views/components/server/sidebar-security.blade.php'),- resource_path('views/livewire/terminal/index.blade.php'),- resource_path('views/livewire/project/shared/terminal.blade.php'),- resource_path('views/livewire/project/shared/execute-container-command.blade.php'),- resource_path('views/livewire/project/shared/scheduled-task/all.blade.php'),- resource_path('views/livewire/project/shared/scheduled-task/executions.blade.php'),- resource_path('views/livewire/project/database/backup-executions.blade.php'),- resource_path('views/livewire/server/security/terminal-access.blade.php'),- ];-- foreach ($files as $path) {- $contents = file_get_contents($path);-- expect($contents)- ->not->toMatch('/name=["\']terminal["\']/')- ->not->toMatch('/icon-name=["\']terminal["\']/')- ->not->toMatch("/'icon'\\s*=>\\s*'terminal'/");- }-});--test('reicon pack includes browser-terminal glyph', function () {- $path = resource_path('views/components/reicon.blade.php');- $contents = file_get_contents($path);-- expect($contents)->toContain("'browser-terminal' =>");-});diff --git a/tests/Feature/ButtonDepthInteractionTest.php b/tests/Feature/ButtonDepthInteractionTest.phpdeleted file mode 100644index 9e1e435a84..0000000000--- a/tests/Feature/ButtonDepthInteractionTest.php+++ /dev/null@@ -1,33 +0,0 @@-<?php--test('standard buttons use raised hover and pressed depth states', function () {- $styles = file_get_contents(resource_path('css/app.css'));-- expect($styles)- ->toContain('--button-depth-color: rgb(0 0 0 / 0.22);')- ->toContain('--button-depth: 0 2px 0 var(--button-depth-color);')- ->toContain('--button-depth-hover: 0 3px 0 var(--button-depth-color);')- ->toContain('--button-depth-color: var(--color-coollabs-300);')- ->toContain('.dark .button:not(.button-highlighted):not(.button-error):not([isHighlighted]):not(:disabled)')- ->not->toContain('.dark .button:not(.button-highlighted):not([isHighlighted]):not(:disabled)')- ->toContain('--button-depth-color: rgb(255 255 255 / 0.08);')- ->not->toContain('.dark .button.button-highlighted:not(:disabled)')- ->toContain('.button.button-error:not(:disabled)')- ->toContain('--button-depth-color: var(--color-red-300);')- ->toContain('.dark .button.button-error:not(:disabled)')- ->toContain('--button-depth-color: var(--color-red-800);')- ->toContain('.button-error:not(:disabled)')- ->toContain('.button.button-error {')- ->toContain('.button.button-error:disabled {')- ->toContain('hover:bg-red-100 hover:text-red-900 dark:hover:bg-red-700 dark:hover:text-white')- ->not->toContain('hover:bg-red-300 hover:text-white dark:hover:bg-red-800')- ->not->toContain('button[isError]:not(:disabled)')- ->toContain('.button:not(:disabled):hover')- ->toContain('transform: translateY(-1px);')- ->toContain('transition-duration: 120ms, 120ms, 120ms, 80ms, 80ms;')- ->toContain('.button:not(:disabled):active')- ->toContain('transform: translateY(2px);')- ->not->toContain('transform: translateY(1px);')- ->not->toContain('transform: translateY(3px);')- ->toContain('box-shadow: none;');-});diff --git a/tests/Feature/ButtonHeightConsistencyTest.php b/tests/Feature/ButtonHeightConsistencyTest.phpdeleted file mode 100644index ac72cb2ba4..0000000000--- a/tests/Feature/ButtonHeightConsistencyTest.php+++ /dev/null@@ -1,11 +0,0 @@-<?php--it('uses the compact height for all standard buttons', function () {- $utilities = file_get_contents(resource_path('css/utilities.css'));- $applicationStyles = file_get_contents(resource_path('css/app.css'));-- expect($utilities)->toContain('px-2.5 h-8 min-h-8')- ->and($applicationStyles)- ->not->toContain('.application-settings-workspace .button')- ->not->toContain('.application-settings-form .button');-});diff --git a/tests/Feature/ButtonTextCapitalizationTest.php b/tests/Feature/ButtonTextCapitalizationTest.phpdeleted file mode 100644index cdf41d1292..0000000000--- a/tests/Feature/ButtonTextCapitalizationTest.php+++ /dev/null@@ -1,11 +0,0 @@-<?php--test('standard buttons capitalize each word in their labels', function () {- $utilities = file_get_contents(resource_path('css/utilities.css'));-- preg_match('/@utility button \{(?<styles>[\s\S]*?)\n\}/', $utilities, $matches);-- expect($matches['styles'] ?? '')- ->toContain('capitalize')- ->not->toContain('normal-case');-});diff --git a/tests/Feature/CustomThemeContrastTest.php b/tests/Feature/CustomThemeContrastTest.phpdeleted file mode 100644index 1f9050c842..0000000000--- a/tests/Feature/CustomThemeContrastTest.php+++ /dev/null@@ -1,111 +0,0 @@-<?php--/**- * The custom theme derives its whole palette from one user-picked color.- * These tests lock in two guarantees:- * 1. The pipeline is authored entirely in OKLCH (no hex color literals).- * 2. Foreground colors (accent text, placeholders) are clamped so they stay- * readable on the dark surfaces regardless of the picked hue.- */-function customThemeBlock(): string-{- $css = file_get_contents(resource_path('css/app.css'));-- return str($css)- ->after('html[data-theme="custom"] {')- ->before('}')- ->toString();-}--it('derives the custom theme entirely in oklch with no hex color literals', function () {- expect(customThemeBlock())- ->not->toMatch('/#[0-9a-fA-F]{3,8}\b/')- ->toContain('--theme-base-color:')- ->toContain('oklch(');-});--it('adds clamped, readable foreground tokens for the custom theme', function () {- $block = customThemeBlock();-- expect($block)- // Accent text/icons on dark surfaces: lightness forced into a readable band.- ->toContain('--theme-fg-on-surface:')- ->toMatch('/--theme-fg-on-surface:\s*oklch\(from var\(--theme-base-color\)[^;]*clamp\(/')- // Placeholder: light, near-neutral, guaranteed readable.- ->toContain('--theme-placeholder-color:')- ->toMatch('/--theme-placeholder-color:\s*oklch\(from var\(--theme-base-color\)/');-});--it('routes custom-theme accent text utilities to the readable on-surface token', function () {- $css = file_get_contents(resource_path('css/app.css'));-- expect($css)- ->toMatch('/\[class~="text-warning"\][^{]*\{\s*color:\s*var\(--theme-fg-on-surface\)/')- ->toContain('[class~="text-coollabs"]');-});--it('uses the clamped placeholder token for custom-theme inputs', function () {- $css = file_get_contents(resource_path('css/app.css'));-- expect($css)- ->toMatch('/html\[data-theme="custom"\] input::placeholder[^}]*var\(--theme-placeholder-color\)/');-});--it('adds a light custom variant that tints surfaces toward white with dark foreground', function () {- $css = file_get_contents(resource_path('css/app.css'));-- expect($css)- ->toContain('html[data-theme="custom"]:not(.dark)')- // Surfaces hold a fixed high lightness with injected base-hue chroma, so the- // tint is visible (not a washed-out mix into white).- ->toMatch('/html\[data-theme="custom"\]:not\(\.dark\)[^}]*--color-app:\s*oklch\(from var\(--theme-base-color\) 9[0-9](\.[0-9]+)?% min\(c,/s')- // Accent text/icons clamp to a dark, readable band on light surfaces.- ->toMatch('/html\[data-theme="custom"\]:not\(\.dark\)[^}]*--theme-fg-on-surface:\s*oklch\(from var\(--theme-base-color\) clamp\(0\.3/s');-});--it('lets the theme scripts toggle a custom light or dark mode via customMode', function () {- $base = file_get_contents(resource_path('views/layouts/base.blade.php'));- $component = file_get_contents(resource_path('views/components/theme-controls.blade.php'));- $picker = file_get_contents(resource_path('views/components/theme-controls/picker.blade.php'));- $appearance = file_get_contents(resource_path('views/livewire/profile/appearance.blade.php'));- $accountMenu = file_get_contents(resource_path('views/components/top-user-menu.blade.php'));-- expect($base)- // One shared Alpine factory holds the theme logic.- ->toContain('window.themeControls')- ->toContain('localStorage.customMode')- ->toContain('setCustomMode')- // The picker no longer force-adds dark; it follows customMode.- ->not->toContain("document.documentElement.classList.add('dark')")- // Light/dark lives inside the custom color picker popover.- ->and($picker)- ->toContain('customMode')- ->toContain('setCustomMode')- ->toContain('type="color"')- ->and($component)- // Both variants open the shared picker popover for Custom.- ->toContain('<x-theme-controls.picker')- ->toContain('chooseCustom')- // Both the page and the dropdown reuse the one component.- ->and($appearance)- ->toContain('<x-theme-controls variant="full"')- ->and($accountMenu)- ->toContain('<x-theme-controls variant="menu"');-});--it('computes the theme base color and accent foreground in oklch, not hex', function () {- $base = file_get_contents(resource_path('views/layouts/base.blade.php'));-- $accentFn = str($base)- ->after('window.themeAccentForeground')- ->before('window.applyStoredTheme')- ->toString();-- expect($base)- ->toContain('window.hexToOklch')- ->and($accentFn)- ->toContain('oklch(0% 0 0)')- ->toContain('oklch(100% 0 0)')- ->not->toContain('#000000')- ->not->toContain('#ffffff');-});diff --git a/tests/Feature/DangerZoneLayoutTest.php b/tests/Feature/DangerZoneLayoutTest.phpdeleted file mode 100644index 5395958c73..0000000000--- a/tests/Feature/DangerZoneLayoutTest.php+++ /dev/null@@ -1,28 +0,0 @@-<?php--it('uses one shared visual treatment for all danger zone actions', function () {- $component = file_get_contents(resource_path('views/components/danger-zone.blade.php'));-- expect($component)- ->toContain("@props(['title'])")- ->toContain('sm:flex-row sm:items-start sm:justify-between')- ->toContain('rounded-lg border border-red-200 bg-red-50')- ->toContain('dark:border-red-500/25 dark:bg-red-500/[0.08]')- ->toContain('Permanent')- ->toContain('@isset($action)');-- foreach ([- 'livewire/destination/show.blade.php',- 'livewire/project/database/backup-edit/danger.blade.php',- 'livewire/project/shared/danger.blade.php',- 'livewire/project/shared/storages/volume-backups/danger.blade.php',- 'livewire/server/delete.blade.php',- 'livewire/source/github/change.blade.php',- 'livewire/storage/show.blade.php',- 'livewire/team/danger-zone.blade.php',- ] as $view) {- expect(file_get_contents(resource_path('views/'.$view)))- ->toContain('<x-danger-zone')- ->not->toContain('rounded-lg border border-red-300 bg-red-50');- }-});diff --git a/tests/Feature/DashboardNavbarLayoutTest.php b/tests/Feature/DashboardNavbarLayoutTest.phpdeleted file mode 100644index 5d613720f6..0000000000--- a/tests/Feature/DashboardNavbarLayoutTest.php+++ /dev/null@@ -1,27 +0,0 @@-<?php--test('settings header navigation is replaced by the settings sidebar', function () {- $path = resource_path('views/components/dashboard/navbar.blade.php');- $contents = file_get_contents($path);-- expect($contents)- ->toContain("['label' => 'General', 'route' => 'settings.index', 'active' => request()->routeIs('settings.*')]")- ->not->toContain("['label' => 'Email', 'route' => 'settings.email'");-});--test('dashboard navbar keeps the original side-by-side tab and actions layout', function () {- $path = resource_path('views/components/dashboard/navbar.blade.php');- $contents = file_get_contents($path);-- expect($contents)- ->toContain('flex w-full flex-col gap-2 sm:flex-row sm:items-center sm:justify-between')- ->toContain('flex min-w-0 w-full items-center gap-0.5 overflow-x-auto');-});--test('dashboard view all links use the shared button style', function () {- $contents = file_get_contents(resource_path('views/components/section-heading.blade.php'));-- expect($contents)- ->toContain('class="button group"')- ->not->toContain('class="group inline-flex h-7');-});diff --git a/tests/Feature/DatabaseBackupSelectionInputTest.php b/tests/Feature/DatabaseBackupSelectionInputTest.phpdeleted file mode 100644index 9a773ecb3b..0000000000--- a/tests/Feature/DatabaseBackupSelectionInputTest.php+++ /dev/null@@ -1,19 +0,0 @@-<?php--it('uses a database list editor instead of a comma-separated text field', function () {- $view = file_get_contents(resource_path('views/livewire/project/database/backup-edit/general.blade.php'));-- expect($view)- ->toContain('<div class="grid w-full gap-4">')- ->toContain("['value' => true, 'label' => 'All databases']")- ->toContain("['value' => false, 'label' => 'Specific databases']")- ->toContain("value: @entangle('databasesToBackup').live")- ->toContain('class="chip-input"')- ->toContain('class="chip font-mono"')- ->toContain('class="chip-remove"')- ->toContain('addDatabase()')- ->toContain('removeDatabase(index)')- ->toContain('Type a database and press Enter');-- expect(substr_count($view, '<x-forms.input label="Databases to back up"'))->toBe(1);-});diff --git a/tests/Feature/DatabaseBackupsLayoutTest.php b/tests/Feature/DatabaseBackupsLayoutTest.phpdeleted file mode 100644index 58c1e54478..0000000000--- a/tests/Feature/DatabaseBackupsLayoutTest.php+++ /dev/null@@ -1,71 +0,0 @@-<?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("route('project.database.backup.execution'")- ->toContain("route('project.service.database.backup.show'")- ->toContain("route('project.database.backup.executions'")- ->toContain("route('project.service.database.backup.executions'")- ->toContain('<a wire:navigate href="{{ $backupExecutionsRoute }}"')- ->toContain('<a class="button" wire:navigate 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')");-});--it('shows the backup path directly on every execution', function () {- $executions = file_get_contents(resource_path('views/livewire/project/database/backup-executions.blade.php'));-- expect($executions)- ->toContain('Backup path:')- ->toContain("data_get(\$execution, 'filename', 'N/A')")- ->toContain('<span>Backup path</span>')- ->toContain('class="select-all truncate font-mono text-[11px]')- ->not->toContain('backup-executions-table-grid border-t');-});--it('keeps backup execution actions in the normal table flow', function () {- $executions = file_get_contents(resource_path('views/livewire/project/database/backup-executions.blade.php'));-- expect($executions)- ->not->toContain('sticky right-0');-});--it('spaces instance backup settings sections', function () {- $edit = file_get_contents(resource_path('views/livewire/project/database/backup-edit.blade.php'));-- expect($edit)- ->toStartWith('<div class="flex flex-col gap-6">');-});--it('shows database backup section descriptions from the shared title helper', function () {- $general = file_get_contents(resource_path('views/livewire/project/database/backup-edit/general.blade.php'));- $retention = file_get_contents(resource_path('views/livewire/project/database/backup-edit/retention.blade.php'));-- expect($general)- ->toContain('<x-application.settings-section title="Backup schedule"')- ->not->toContain('<h2>Backup schedule</h2>')- ->and($retention)- ->toContain('<x-application.settings-section title="Retention"')- ->not->toContain('<h2>Retention</h2>');-});diff --git a/tests/Feature/DatabasePublicAccessLoadingTest.php b/tests/Feature/DatabasePublicAccessLoadingTest.phpdeleted file mode 100644index 4b81d5f283..0000000000--- a/tests/Feature/DatabasePublicAccessLoadingTest.php+++ /dev/null@@ -1,41 +0,0 @@-<?php--it('shows a loading indicator while database public access is changing', function () {- $databaseTypes = [- 'clickhouse',- 'dragonfly',- 'keydb',- 'mariadb',- 'mongodb',- 'mysql',- 'postgresql',- 'redis',- ];-- foreach ($databaseTypes as $databaseType) {- $generalSettings = file_get_contents(resource_path("views/livewire/project/database/{$databaseType}/general.blade.php"));-- expect($generalSettings)- ->toContain('<x-table.loading target="instantSave" text="Updating public access..." />')- ->toContain("'label' => blank(\$publicPort) ? 'Public through TCP proxy (set public port first)' : 'Public through TCP proxy'")- ->toContain("'disabled' => blank(\$publicPort)")- ->toContain('wire:key="public-access-{{ $publicPort ?: \'unset\' }}"')- ->not->toContain('x-data="{ publicPort:')- ->not->toContain('x-effect="options[1].disabled')- ->not->toContain('id="publicPort" x-on:input=')- ->not->toContain('id="publicPort" live');- }-});--it('passes the selected PostgreSQL public access state to the save action', function () {- $generalSettings = file_get_contents(resource_path('views/livewire/project/database/postgresql/general.blade.php'));-- expect($generalSettings)- ->toContain('onChange="instantSave" :onChangeArgs="[]"');-- $component = file_get_contents(app_path('Livewire/Project/Database/Postgresql/General.php'));-- expect($component)- ->toContain('public function instantSave(?bool $isPublic = null)')- ->toContain('$this->isPublic = $isPublic;');-});diff --git a/tests/Feature/DatabaseRestoreDialogTest.php b/tests/Feature/DatabaseRestoreDialogTest.phpdeleted file mode 100644index 485ed2e26e..0000000000--- a/tests/Feature/DatabaseRestoreDialogTest.php+++ /dev/null@@ -1,39 +0,0 @@-<?php--test('database restore output opens in the centered process dialog', function () {- $view = file_get_contents(resource_path('views/livewire/project/database/import-form.blade.php'));-- expect($view)- ->toContain('<x-process-dialog @databaserestore.window="processDialogOpen = true" closeWithX size="xl">')- ->toContain('<livewire:activity-monitor wire:key="database-restore-{{ $resourceUuid }}" header="Logs" fullHeight />')- ->not->toContain('<x-slide-over @databaserestore.window="slideOverOpen = true"');-});--test('postgresql dump all restore warns that administrator passwords are overwritten', function () {- $view = file_get_contents(resource_path('views/livewire/project/database/import-form.blade.php'));-- expect($view)- ->toContain("@if (\$resourceDbType === 'standalone-postgresql' && \$dumpAll)")- ->toContain('Full restore overwrites administrator passwords')- ->toContain('The backup replaces PostgreSQL administrator role passwords, including the destination administrator password.')- ->toContain("If the administrator password changes, update it in Coolify's database configuration after the restore.");-});--test('postgresql single database restore offers explicit object replacement', function () {- $view = file_get_contents(resource_path('views/livewire/project/database/import-form.blade.php'));-- expect($view)- ->toContain('Replace objects that already exist')- ->toContain('wire:model="restoreCommandText"')- ->toContain('readonly label="Import command"');-});--test('restore confirmation dialogs warn that existing objects can block the import', function () {- $view = file_get_contents(resource_path('views/livewire/project/database/import-form.blade.php'));-- expect($view)- ->toContain('submitAction="runImport"')- ->toContain('submitAction="restoreFromS3"')- ->toContain('Existing objects can cause the import to fail unless replacement is enabled.')- ->not->toContain('All existing data will be replaced.');-});diff --git a/tests/Feature/DefaultThemeTest.php b/tests/Feature/DefaultThemeTest.phpdeleted file mode 100644index 8aa3543fab..0000000000--- a/tests/Feature/DefaultThemeTest.php+++ /dev/null@@ -1,11 +0,0 @@-<?php--test('new users default to dark mode', function () {- $layout = file_get_contents(resource_path('views/layouts/base.blade.php'));-- expect($layout)- ->toContain('<html data-theme="dark"')- ->toContain("const t = localStorage.theme || 'dark';")- ->toContain("localStorage.theme = 'dark';")- ->toContain('<meta name="theme-color" content="#101010" id="theme-color-meta" />');-});diff --git a/tests/Feature/DeploymentLogToolbarStyleTest.php b/tests/Feature/DeploymentLogToolbarStyleTest.phpdeleted file mode 100644index 24cf01376a..0000000000--- a/tests/Feature/DeploymentLogToolbarStyleTest.php+++ /dev/null@@ -1,58 +0,0 @@-<?php--test('active deployment log controls use a coollabs background and white icon', function () {- $styles = file_get_contents(resource_path('css/app.css'));-- expect($styles)- ->toMatch('/\.logs-viewer-btn-active\s*\{[^}]*background:\s*var\(--color-coollabs\);[^}]*color:\s*#fff;/s')- ->toMatch('/\.dark \.logs-viewer-btn-active\s*\{[^}]*color:\s*#fff;/s')- ->not->toMatch('/\.logs-viewer-btn-active\s*\{[^}]*var\(--color-warning\)/s');-});--test('deployment logs use light surfaces in light mode and dark surfaces in dark mode', function () {- $view = file_get_contents(resource_path('views/livewire/project/application/deployment/show.blade.php'));- $styles = file_get_contents(resource_path('css/app.css'));-- expect($view)- ->toContain('bg-white text-neutral-800')- ->toContain('dark:bg-log dark:text-neutral-100')- ->toContain('border-neutral-200 shadow-sm dark:border-coolgray-200')- ->toContain('border-neutral-200! bg-white!')- ->toContain('dark:border-white/[0.08]! dark:bg-white/[0.05]!')- ->and($styles)- ->toMatch('/\.logs-viewer\s*\{[^}]*background:\s*#fff;[^}]*color:\s*#262626;/s')- ->toMatch('/\.dark \.logs-viewer\s*\{[^}]*background:\s*var\(--color-log\);/s');-});--test('log search hides lines that do not match', function () {- $styles = file_get_contents(resource_path('css/app.css'));-- expect($styles)- ->toMatch('/\.logs-viewer-line\.hidden\s*\{[^}]*display:\s*none;/s');-});--test('turning off follow logs stays off at the bottom of the log viewer', function () {- $views = [- resource_path('views/livewire/project/application/deployment/show.blade.php'),- resource_path('views/livewire/project/shared/get-logs.blade.php'),- ];-- foreach ($views as $view) {- expect(file_get_contents($view))- ->toContain('followManuallyDisabled: false')- ->toContain('!this.followManuallyDisabled && distanceFromBottom <= 10')- ->toContain('this.followManuallyDisabled = true')- ->toContain('this.followManuallyDisabled = false');- }-});--test('runtime log follow loop is cleaned up when navigating away', function () {- $view = file_get_contents(resource_path('views/livewire/project/shared/get-logs.blade.php'));-- expect($view)- ->toContain('scrollTimeout: null')- ->toContain("this.\$root.querySelector('#logsContainer')")- ->toContain('destroy() {')- ->toContain('this.destroyed = true')- ->toContain('this.cancelScrollLoop()');-});diff --git a/tests/Feature/DeploymentsIndicatorLayoutTest.php b/tests/Feature/DeploymentsIndicatorLayoutTest.phpdeleted file mode 100644index c1676dd817..0000000000--- a/tests/Feature/DeploymentsIndicatorLayoutTest.php+++ /dev/null@@ -1,54 +0,0 @@-<?php--it('positions the deployments indicator from the sidebar collapsed state', function () {- $indicatorView = file_get_contents(resource_path('views/livewire/deployments-indicator.blade.php'));- $layoutView = file_get_contents(resource_path('views/layouts/app.blade.php'));-- expect($indicatorView)- ->toContain('transition-[left] duration-200')- ->toContain(":class=\"collapsed ? 'lg:left-16' : 'lg:left-56'\"")- ->not->toContain('fixed bottom-0 z-60 mb-4 left-0 lg:left-56 ml-4');-- expect($layoutView)- ->toContain('<div x-data="{')- ->toContain('<livewire:deployments-indicator />');-- expect(strpos($layoutView, '<div x-data="{'))- ->toBeLessThan(strpos($layoutView, '<livewire:deployments-indicator />'));-});--it('uses the redesigned elevated surface and status badge patterns', function () {- $indicatorView = file_get_contents(resource_path('views/livewire/deployments-indicator.blade.php'));-- expect($indicatorView)- ->toContain('var(--coollabs-elevated)')- ->toContain('var(--coollabs-line)')- ->toContain('var(--shadow-modal)')- ->toContain('var(--coollabs-hairline)')- ->toContain('<x-status-badge')- ->toContain('name="chevron-down"')- ->toContain("'In progress'")- ->toContain("'Queued'")- ->toContain('dark:text-fg')- ->toContain('dark:border-coolgray-300')- ->toContain('$this->shouldShow')- ->toContain('updateShouldShowFromPath')- ->toContain('livewire:navigated')- ->not->toContain('dark:bg-coolgray-100')- ->not->toContain('dark:bg-coolgray-200')- ->not->toContain('text-gray-800')- ->not->toContain("str_replace('_', ' ', \$deployment->status)");-});--it('uses solid surfaces in every deployments indicator state', function () {- $indicatorView = file_get_contents(resource_path('views/livewire/deployments-indicator.blade.php'));-- expect($indicatorView)- ->not->toContain('reduceOpacity')- ->not->toContain('transition-opacity')- ->not->toContain('x-transition:enter-start="opacity-0')- ->not->toContain('x-transition:leave-end="opacity-0')- ->not->toContain('dark:bg-white/[')- ->not->toContain('dark:hover:bg-white/[')- ->not->toContain('dark:border-white/[');-});diff --git a/tests/Feature/DestinationCreationUiTest.php b/tests/Feature/DestinationCreationUiTest.phpdeleted file mode 100644index d5ac3e13cd..0000000000--- a/tests/Feature/DestinationCreationUiTest.php+++ /dev/null@@ -1,12 +0,0 @@-<?php--it('returns after creating a destination and shows submit loading state', function () {- $component = file_get_contents(app_path('Livewire/Destination/New/Docker.php'));- $view = file_get_contents(resource_path('views/livewire/destination/new/docker.blade.php'));-- expect($component)- ->toContain("return redirectRoute(\$this, 'destination.show', [\$docker->uuid]);");- expect($view)- ->toContain('wire:submit="submit"')- ->toContain('wire:target="submit"');-});diff --git a/tests/Feature/DestinationSettingsLayoutTest.php b/tests/Feature/DestinationSettingsLayoutTest.phpdeleted file mode 100644index 0e3f5256fb..0000000000--- a/tests/Feature/DestinationSettingsLayoutTest.php+++ /dev/null@@ -1,40 +0,0 @@-<?php--it('uses sidebar navigation and breadcrumbs for destination details', function () {- $show = file_get_contents(resource_path('views/livewire/destination/show.blade.php'));- $resources = file_get_contents(resource_path('views/livewire/destination/resources.blade.php'));- $sidebar = file_get_contents(resource_path('views/livewire/destination/sidebar.blade.php'));- $navbar = file_get_contents(resource_path('views/components/dashboard/navbar.blade.php'));- $breadcrumbs = file_get_contents(resource_path('views/components/top-breadcrumb.blade.php'));-- expect($show)- ->toContain(':mobileTitleOnly="true"')- ->toContain("@include('livewire.destination.sidebar'");- expect($resources)- ->toContain(':mobileTitleOnly="true"')- ->toContain("@include('livewire.destination.sidebar'");- expect($sidebar)- ->toContain("'label' => 'General'")- ->toContain("'label' => 'Resources'")- ->toContain("'label' => 'Danger Zone'")- ->toContain('application-settings-navigation min-w-0 xl:self-start');- expect($navbar)- ->toContain("request()->routeIs('destination.show', 'destination.resources', 'destination.danger')")- ->not->toContain("['label' => 'Resources', 'route' => 'destination.resources'");- expect($breadcrumbs)- ->toContain('x-breadcrumb-switcher')- ->toContain('$currentDestination->name')- ->toContain("route('destination.show'")- ->toContain("? 'Docker' : 'Deprecated'");- expect($breadcrumbs)- ->toContain('Pages')- ->toContain('Projects')- ->toContain('Environments')- ->not->toContain('M5 12l5 5 9-11');- expect($show)- ->toContain('destination-danger-section')- ->toContain('title="Danger zone"')- ->not->toContain("actions=['This will delete the selected destination/network.']");- expect(file_get_contents(base_path('routes/web.php')))- ->toContain("->name('destination.danger')");-});diff --git a/tests/Feature/DockerCleanupExecutionStyleTest.php b/tests/Feature/DockerCleanupExecutionStyleTest.phpdeleted file mode 100644index e220c8bc37..0000000000--- a/tests/Feature/DockerCleanupExecutionStyleTest.php+++ /dev/null@@ -1,27 +0,0 @@-<?php--test('docker cleanup execution output uses light and dark theme surfaces', function () {- $view = file_get_contents(resource_path('views/livewire/server/docker-cleanup-executions.blade.php'));-- expect($view)- ->toContain('bg-white text-neutral-700')- ->toContain('dark:bg-neutral-950 dark:text-neutral-300');-});--test('docker cleanup executions show a loading state while opening an execution', function () {- $view = file_get_contents(resource_path('views/livewire/server/docker-cleanup-executions.blade.php'));-- expect($view)- ->toContain('wire:loading.attr="disabled"')- ->toContain('wire:target="selectExecution({{ data_get($execution, \'id\') }})"')- ->toContain('wire:loading.remove')- ->toContain('<x-loading wire:loading');-});--test('docker cleanup explains application image retention options', function () {- $view = file_get_contents(resource_path('views/livewire/server/docker-cleanup.blade.php'));-- expect($view)- ->toContain('Choose Keep retained images to follow each application’s Images to keep setting under Rollback.')- ->toContain('Delete all old images ignores that setting and keeps only the running image.');-});diff --git a/tests/Feature/DockerComposeCreateViewTest.php b/tests/Feature/DockerComposeCreateViewTest.phpdeleted file mode 100644index 4d21ca7981..0000000000--- a/tests/Feature/DockerComposeCreateViewTest.php+++ /dev/null@@ -1,23 +0,0 @@-<?php--it('keeps spacing around the Docker Compose editor', function () {- $view = file_get_contents(resource_path('views/livewire/project/new/docker-compose.blade.php'));-- expect($view)- ->toContain('class="application-settings-section-body"')- ->not->toContain('class="application-settings-section-body p-0!"');-});--it('lets the Docker Compose editor use the available width', function () {- $view = file_get_contents(resource_path('views/livewire/project/new/docker-compose.blade.php'));-- expect($view)- ->toContain('class="mt-8 w-full lg:mt-3"')- ->not->toContain('max-w-[1180px]');-});--it('shows a loading indicator while creating the service', function () {- $view = file_get_contents(resource_path('views/livewire/project/new/docker-compose.blade.php'));-- expect($view)->toContain('<x-forms.button type="submit" wire:target="submit" isHighlighted>');-});diff --git a/tests/Feature/DockerImageCreateViewTest.php b/tests/Feature/DockerImageCreateViewTest.phpdeleted file mode 100644index 226f369acc..0000000000--- a/tests/Feature/DockerImageCreateViewTest.php+++ /dev/null@@ -1,9 +0,0 @@-<?php--it('shows that image tag and digest are mutually exclusive', function () {- $view = file_get_contents(resource_path('views/livewire/project/new/docker-image.blade.php'));-- expect($view)- ->toContain('aria-label="Tag and SHA256 digest are mutually exclusive"')- ->toContain('>OR</span>');-});diff --git a/tests/Feature/EmptyStateBackgroundTest.php b/tests/Feature/EmptyStateBackgroundTest.phpdeleted file mode 100644index 7fe59a81c4..0000000000--- a/tests/Feature/EmptyStateBackgroundTest.php+++ /dev/null@@ -1,21 +0,0 @@-<?php--use Illuminate\Support\Facades\Blade;--it('uses the Coolify base background for all empty states', function () {- $html = Blade::render('<x-empty title="Nothing found" />');- $css = file_get_contents(resource_path('css/app.css'));-- expect($html)- ->toContain('empty-state')- ->not->toContain('bg-neutral-50')- ->not->toContain('dark:bg-white/[0.02]')- ->and($css)- ->toContain('.application-settings-section-body:has(> .empty-state:only-child)')- ->toContain('.application-settings-section-body.is-flush:has(> .empty-state:only-child)')- ->toContain('padding: 1rem;')- ->toContain('.empty-state')- ->toContain('background: var(--coollabs-base);')- ->toContain('.loading-state-card')- ->toContain('border: 1px dashed var(--coollabs-line);');-});diff --git a/tests/Feature/EnableButtonBrandingTest.php b/tests/Feature/EnableButtonBrandingTest.phpdeleted file mode 100644index 1aa3603f18..0000000000--- a/tests/Feature/EnableButtonBrandingTest.php+++ /dev/null@@ -1,17 +0,0 @@-<?php--it('uses highlighted styling for enable toggle actions', function () {- $views = [- resource_path('views/components/notification/channel-actions.blade.php'),- resource_path('views/livewire/settings-oauth.blade.php'),- resource_path('views/livewire/project/shared/scheduled-task/show.blade.php'),- ];-- foreach ($views as $view) {- expect(file_get_contents($view))->toContain('isHighlighted');- }-- $terminalAccess = file_get_contents(resource_path('views/livewire/server/security/terminal-access.blade.php'));-- expect($terminalAccess)->toContain(':isHighlightedButton="!$isTerminalEnabled"');-});diff --git a/tests/Feature/EnvironmentEditUiTest.php b/tests/Feature/EnvironmentEditUiTest.phpdeleted file mode 100644index 0f580eba70..0000000000--- a/tests/Feature/EnvironmentEditUiTest.php+++ /dev/null@@ -1,23 +0,0 @@-<?php--test('environment delete button label is simply Delete', function () {- $view = file_get_contents(resource_path('views/livewire/project/delete-environment.blade.php'));-- expect($view)- ->toContain('buttonTitle="Delete"')- ->not->toContain('buttonTitle="Delete Environment"');-});--test('environment delete section stacks on small screens', function () {- $view = file_get_contents(resource_path('views/livewire/project/environment-edit.blade.php'));-- expect($view)- ->toContain('flex flex-col gap-4 px-5 py-4 sm:flex-row sm:items-start sm:justify-between')- ->toContain('livewire:project.delete-environment');-});--test('app-tab utility includes icon text spacing', function () {- $css = file_get_contents(resource_path('css/utilities.css'));-- expect($css)->toMatch('/@utility app-tab \{[^}]*gap-1/s');-});diff --git a/tests/Feature/ExecutionViewStructureTest.php b/tests/Feature/ExecutionViewStructureTest.phpdeleted file mode 100644index ce613608b1..0000000000--- a/tests/Feature/ExecutionViewStructureTest.php+++ /dev/null@@ -1,26 +0,0 @@-<?php--it('uses the simplified database backup execution heading and spacing', function () {- $view = file_get_contents(resource_path('views/livewire/project/database/backup-executions.blade.php'));-- expect($view)- ->toContain('<div class="flex flex-col gap-3 sm:flex-row sm:flex-wrap sm:items-center">')- ->toContain('<h2 class="py-0">Executions</h2>')- ->not->toContain('Executions <span')- ->toContain('class="flex flex-col gap-4 pt-2"');-});--it('renders scheduled task executions as selectable status cards with expandable logs', function () {- $view = file_get_contents(resource_path('views/livewire/project/shared/scheduled-task/executions.blade.php'));-- expect($view)- ->toContain('<div class="flex flex-col gap-2" wire:poll.5000ms="refreshExecutions"')- ->toContain('<a wire:click="selectTask({{ data_get($execution, \'id\') }})"')- ->toContain('border-l-2 transition-colors p-4 cursor-pointer')- ->toContain("'success' => 'Success'")- ->toContain("'running' => 'In Progress'")- ->toContain("'failed' => 'Failed'")- ->toContain("data_get(\$execution, 'id') == \$selectedKey")- ->toContain('max-h-[600px] overflow-y-auto')- ->toContain('No executions found.');-});diff --git a/tests/Feature/FormControlHeightTest.php b/tests/Feature/FormControlHeightTest.phpdeleted file mode 100644index 589112b5bf..0000000000--- a/tests/Feature/FormControlHeightTest.php+++ /dev/null@@ -1,51 +0,0 @@-<?php--test('default form buttons and inputs share the same control height', function () {- $utilities = file_get_contents(resource_path('css/utilities.css'));-- expect($utilities)- ->toContain('@utility input-select {')- ->toContain('@utility button {');-- preg_match('/@utility input-select \{[^}]*\}/s', $utilities, $inputSelect);- preg_match('/@utility button \{[^}]*\}/s', $utilities, $button);-- expect($inputSelect[0] ?? '')- ->toContain('h-8')- ->not->toContain('h-9')- ->and($button[0] ?? '')->toContain('h-8')- ->and($button[0] ?? '')->toContain('min-h-8')- ->and($button[0] ?? '')->toContain('whitespace-nowrap')- ->and($button[0] ?? '')->toContain('shrink-0')- ->and($button[0] ?? '')->not->toContain('h-9');-});--test('settings form surfaces keep input and button heights equal', function () {- $css = file_get_contents(resource_path('css/app.css'));-- preg_match(- '/\.application-settings-workspace \.input,[\s\S]*?\.application-settings-form \.select \{[\s\S]*?\}/',- $css,- $inputs- );- preg_match(- '/\.application-settings-workspace \.button,[\s\S]*?\.application-settings-form \.button \{[\s\S]*?\}/',- $css,- $buttons- );-- expect($inputs[0] ?? '')- ->toContain('height: 2rem;')- ->and($buttons[0] ?? '')->toContain('height: 2rem;')- ->and($buttons[0] ?? '')->toContain('min-height: 2rem;')- ->and($buttons[0] ?? '')->toContain('white-space: nowrap;');-});--test('directory storage actions wrap on narrow viewports instead of stacking uneven heights', function () {- $view = file_get_contents(resource_path('views/livewire/project/service/file-storage.blade.php'));-- expect($view)- ->toContain('flex flex-wrap items-center gap-2')- ->toContain('Convert to file')- ->toContain('Configure Backup');-});diff --git a/tests/Feature/FullWidthResourceLayoutTest.php b/tests/Feature/FullWidthResourceLayoutTest.phpdeleted file mode 100644index 9cdfbdc52a..0000000000--- a/tests/Feature/FullWidthResourceLayoutTest.php+++ /dev/null@@ -1,16 +0,0 @@-<?php--test('the application shell and resource workspaces use the full available width', function () {- $appLayout = file_get_contents(resource_path('views/layouts/app.blade.php'));- $applicationConfiguration = file_get_contents(resource_path('views/livewire/project/application/configuration.blade.php'));- $serverConfiguration = file_get_contents(resource_path('views/livewire/server/show.blade.php'));-- expect($appLayout)- ->toContain("pageWidth === 'centered' ? 'mx-auto max-w-[1400px]' : 'max-w-none'")- ->and($applicationConfiguration)- ->not->toContain('max-w-[1180px]')- ->toContain('xl:gap-8')- ->and($serverConfiguration)- ->not->toContain('max-w-[1180px]')- ->toContain('xl:gap-8');-});diff --git a/tests/Feature/GlobalIconTooltipTest.php b/tests/Feature/GlobalIconTooltipTest.phpdeleted file mode 100644index 2cc9049299..0000000000--- a/tests/Feature/GlobalIconTooltipTest.php+++ /dev/null@@ -1,46 +0,0 @@-<?php--it('uses the custom tooltip for icon actions across layouts', function () {- $baseLayout = file_get_contents(resource_path('views/layouts/base.blade.php'));- $tooltip = file_get_contents(resource_path('views/components/icon-tooltip.blade.php'));-- expect($baseLayout)->toContain('<x-icon-tooltip />')- ->and($tooltip)- ->toContain("closest('button, a, [data-tooltip]')")- ->toContain("target.matches('[data-tooltip], .icon-button')")- ->toContain("target.hasAttribute('aria-label')")- ->toContain('target.childElementCount === 1')- ->toContain("target.firstElementChild?.matches('svg')")- ->not->toContain("target.querySelector('svg')")- ->toContain("target.matches('[data-icon-tooltip-ignore]')")- ->toContain("target.removeAttribute('title')")- ->toContain('role="tooltip"')- ->toContain('aria-label')- ->toContain('fixed z-[100]');-});--it('does not reposition an already active tooltip during nested mouseover events', function () {- $tooltip = file_get_contents(resource_path('views/components/icon-tooltip.blade.php'));-- expect($tooltip)- ->toContain('if (target === this.activeTarget && this.visible) return;');-});--it('keeps a tooltip hidden until its measured position is applied', function () {- $tooltip = file_get_contents(resource_path('views/components/icon-tooltip.blade.php'));-- expect($tooltip)- ->toContain('positioned: false')- ->toContain('this.positioned = false;')- ->toContain('this.$nextTick(() => this.positioned = true);')- ->toContain("positioned ? 'visible' : 'invisible'");-});--it('centers tooltips on the trigger and keeps them within the viewport', function () {- $tooltip = file_get_contents(resource_path('views/components/icon-tooltip.blade.php'));-- expect($tooltip)- ->toContain('this.x = rect.left + rect.width / 2;')- ->toContain('Math.min(window.innerWidth - width - 8, this.x - width / 2)')- ->not->toContain('-translate-x-1/2');-});diff --git a/tests/Feature/GlobalSearchLoadingStateTest.php b/tests/Feature/GlobalSearchLoadingStateTest.phpdeleted file mode 100644index 8737dde280..0000000000--- a/tests/Feature/GlobalSearchLoadingStateTest.php+++ /dev/null@@ -1,104 +0,0 @@-<?php--it('shows a loading overlay while resource selection steps load', function () {- $view = file_get_contents(resource_path('views/livewire/global-search.blade.php'));-- expect($view)- ->toContain('wire:loading.class="pointer-events-none opacity-40 blur-[2px]"')- ->toContain('wire:loading.flex')- ->toContain('selectServer,selectDestination,selectProject,selectEnvironment')- ->toContain('Loading selection…')- ->toContain('isPaletteTransitioning')- ->toContain('runPaletteTransition')- ->toContain('Loading…');-});--it('uses a single Alpine result renderer for every command palette result type', function () {- $view = file_get_contents(resource_path('views/livewire/global-search.blade.php'));-- expect($view)- ->not->toContain('Create mode (server-rendered path)')- ->not->toContain('!$wire.isCreateMode')- ->toContain("<!-- Command palette -->\n <div x-cloak")- ->not->toContain("<!-- Command palette -->\n <template x-teleport=\"body\">")- ->toContain("<div wire:ignore>\n <template x-if=\"searchQuery.length")- ->toContain('x-for="(result, index) in searchResults"')- ->toContain('x-for="[categoryName, items] in Object.entries(groupedCreatableItems)"');-});--it('skips hidden command palette results during keyboard navigation', function () {- $view = file_get_contents(resource_path('views/livewire/global-search.blade.php'));-- expect($view)- ->toContain('filter(item => item.offsetParent !== null)');-});--it('preselects the first result in every resource selection step', function () {- $view = file_get_contents(resource_path('views/livewire/global-search.blade.php'));-- expect($view)- ->toContain('preselectFirstResult()')- ->toContain('this.selectedIndex = 0;')- ->toContain('results[0].focus();')- ->and(substr_count($view, 'x-init="preselectFirstResult()"'))->toBe(4);-});--it('opens the command palette without changing page scrollbar visibility', function () {- $view = file_get_contents(resource_path('views/livewire/global-search.blade.php'));-- expect($view)- ->not->toContain("document.body.style.overflow = value ? 'hidden' : ''")- ->not->toContain("document.body.style.overflow = ''");-});--it('animates the command palette with tw animate utilities', function () {- $view = file_get_contents(resource_path('views/livewire/global-search.blade.php'));-- // Exit animations need fill-mode-forwards: without it the element snaps- // back to full opacity when the keyframe animation ends, one frame before- // Alpine applies display:none, which flashes the palette on close.- expect($view)- ->toContain('<div x-show="modalOpen" @click="closeModal()"')- ->toContain('x-transition:enter="animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 duration-150"')- ->toContain('x-transition:leave="animate-out fade-out-0 zoom-out-95 slide-out-to-top-2 duration-100 fill-mode-forwards"')- ->toContain('x-transition:leave="animate-out fade-out-0 duration-100 fill-mode-forwards"')- ->not->toContain('<div x-show="modalOpen" x-cloak\n class="fixed inset-0');-});--it('closes the client-side command palette without a Livewire request', function () {- $view = file_get_contents(resource_path('views/livewire/global-search.blade.php'));-- expect($view)- ->not->toContain('$wire.closeSearchModal()')- ->not->toContain('closeTimer');-});--it('closes the mobile sidebar when the command palette opens', function () {- $layout = file_get_contents(resource_path('views/layouts/app.blade.php'));-- expect($layout)- ->toContain('@open-global-search.window="open = false"');-});--it('keeps palette content intact during the close animation to prevent flicker', function () {- $view = file_get_contents(resource_path('views/livewire/global-search.blade.php'));-- // closeModal() must only hide the palette immediately; content resets- // (searchQuery, allSearchableItems) are deferred past the 100ms leave- // animation so the panel does not collapse while fading out.- expect($view)- ->toContain('clearTimeout(this.closeResetTimer);')- ->toContain("this.closeResetTimer = setTimeout(() => {\n this.isLoadingInitialData = false;")- ->toContain("this.searchQuery = '';\n this.allSearchableItems = [];");-});--it('delays the header spinner so fast cached loads do not flash the icon', function () {- $view = file_get_contents(resource_path('views/livewire/global-search.blade.php'));-- expect($view)- ->toContain('showLoadingSpinner')- ->toContain('this.spinnerTimer = setTimeout(')- ->toContain('x-show="!showLoadingSpinner"')- ->toContain('x-show="showLoadingSpinner"')- ->not->toContain(':class="isLoadingInitialData && \'is-loading\'"');-});diff --git a/tests/Feature/HiddenModalShellLayoutTest.php b/tests/Feature/HiddenModalShellLayoutTest.phpdeleted file mode 100644index 05dd7541bf..0000000000--- a/tests/Feature/HiddenModalShellLayoutTest.php+++ /dev/null@@ -1,45 +0,0 @@-<?php--/**- * Programmatic confirmation modals must not leave empty layout rows.- */-test('modal confirmation roots are inline so hidden triggers do not stretch full width', function () {- $modal = file_get_contents(resource_path('views/components/modal-confirmation.blade.php'));-- expect($modal)- ->toContain("'relative h-auto max-w-full'")- ->toContain("'inline-flex w-auto' => ! \$buttonFullWidth")- ->toContain("'flex w-full' => \$buttonFullWidth")- ->not->toContain("'relative h-auto'");-});--test('server mobile proxy confirmations sit inside a display-none host', function () {- $navbar = file_get_contents(resource_path('views/livewire/server/navbar.blade.php'));-- expect($navbar)- ->toContain('server-mobile-restart-proxy-trigger')- ->toContain('server-mobile-stop-proxy-trigger')- ->toMatch('/class="hidden"[^>]*>\s*<x-modal-confirmation title="Confirm Proxy Restart/');-});--test('application database and service programmatic modals are layout-hidden', function () {- foreach ([- resource_path('views/livewire/project/application/heading.blade.php'),- resource_path('views/livewire/project/database/heading.blade.php'),- resource_path('views/livewire/project/service/heading.blade.php'),- ] as $path) {- expect(file_get_contents($path))- ->toContain('class="hidden" aria-hidden="true"')- ->toContain('<x-slot:trigger>');- }-});--test('slide-over event shells use display contents', function () {- expect(file_get_contents(resource_path('views/components/slide-over.blade.php')))- ->toContain("'class' => 'contents'");-});--test('process dialog event shells use display contents', function () {- expect(file_get_contents(resource_path('views/components/process-dialog.blade.php')))- ->toContain("'class' => 'contents'");-});diff --git a/tests/Feature/HideNativeSearchClearButtonTest.php b/tests/Feature/HideNativeSearchClearButtonTest.phpdeleted file mode 100644index 8263883fcc..0000000000--- a/tests/Feature/HideNativeSearchClearButtonTest.php+++ /dev/null@@ -1,16 +0,0 @@-<?php--test('app css hides native webkit search cancel button to avoid double clear controls', function () {- $css = file_get_contents(resource_path('css/app.css'));-- expect($css)- ->toContain('input[type="search"]::-webkit-search-cancel-button')- ->toContain('display: none');-});--test('resource index keeps a single custom clear search control', function () {- $view = file_get_contents(resource_path('views/livewire/project/resource/index.blade.php'));-- expect(substr_count($view, 'aria-label="Clear search"'))->toBe(1)- ->and($view)->toContain('type="search"');-});diff --git a/tests/Feature/HighlightedButtonStylingTest.php b/tests/Feature/HighlightedButtonStylingTest.phpdeleted file mode 100644index 834d792cee..0000000000--- a/tests/Feature/HighlightedButtonStylingTest.php+++ /dev/null@@ -1,32 +0,0 @@-<?php--test('highlighted buttons use the shared coollabs style in every color scheme', function () {- $utilities = file_get_contents(resource_path('css/utilities.css'));- $appStyles = file_get_contents(resource_path('css/app.css'));- $views = collect(new RecursiveIteratorIterator(new RecursiveDirectoryIterator(resource_path('views'))))- ->filter(fn (SplFileInfo $file): bool => $file->isFile() && $file->getExtension() === 'php')- ->map(fn (SplFileInfo $file): string => file_get_contents($file->getPathname()))- ->implode("\n");-- expect($utilities)- ->toContain('@utility button-highlighted')- ->toContain('@apply border-coollabs-200 bg-linear-to-b from-coollabs-100 to-coollabs-200 text-accent-foreground! hover:from-coollabs-100 hover:to-coollabs hover:text-accent-foreground!;')- ->and($appStyles)- ->toContain('button[isHighlighted]:not(:disabled)')- ->toContain('@apply button-highlighted;')- ->and($views)- ->not->toContain('dark:bg-warning/15! dark:text-warning! dark:ring-warning/25');-});--test('custom theme highlighted buttons use the computed contrasting foreground', function () {- $utilities = file_get_contents(resource_path('css/utilities.css'));- $appStyles = file_get_contents(resource_path('css/app.css'));-- expect($utilities)- ->toContain('text-accent-foreground!')- ->toContain('hover:text-accent-foreground!')- ->not->toContain('text-white! hover:')- ->and($appStyles)- ->toContain('html[data-theme="custom"] .button-highlighted .animate-spin')- ->toContain('html[data-theme="custom"] button[isHighlighted] .animate-spin');-});diff --git a/tests/Feature/ImportBackupUploadIconTest.php b/tests/Feature/ImportBackupUploadIconTest.phpdeleted file mode 100644index 6fc9158bef..0000000000--- a/tests/Feature/ImportBackupUploadIconTest.php+++ /dev/null@@ -1,38 +0,0 @@-<?php--use Illuminate\Support\Facades\Blade;--it('registers the upload reicon used by import backup navigation', function () {- $path = resource_path('views/components/reicon.blade.php');- $contents = file_get_contents($path);-- expect($contents)->toContain("'upload' => ");-- $html = Blade::render('<x-reicon name="upload" class="menu-item-icon" />');-- expect($html)- ->toContain('viewBox="0 0 24 24"')- ->toContain('fill="currentColor"')- ->toContain('menu-item-icon')- ->not->toBe('<svg class="menu-item-icon size-4" viewBox="0 0 24 24" fill="none"- xmlns="http://www.w3.org/2000/svg" aria-hidden="true">--</svg>');-});--it('uses the upload reicon for import backup in database configuration nav', function () {- $contents = file_get_contents(resource_path('views/livewire/project/database/configuration.blade.php'));-- expect($contents)- ->toContain("'label' => 'Import Backup'")- ->toContain("'icon' => 'upload'");-});--it('uses the upload reicon for import backup in service navigation', function () {- $contents = file_get_contents(resource_path('views/components/service/configuration-sidebar.blade.php'));-- expect($contents)- ->toContain("'label' => 'Import Backup'")- ->toContain("'icon' => 'upload'")- ->toContain("'route' => 'project.service.import-backup'");-});diff --git a/tests/Feature/InfrastructureListFiltersTest.php b/tests/Feature/InfrastructureListFiltersTest.phpdeleted file mode 100644index 8fb87afc5a..0000000000--- a/tests/Feature/InfrastructureListFiltersTest.php+++ /dev/null@@ -1,30 +0,0 @@-<?php--it('provides search and persisted grid and table views for infrastructure lists', function (string $view, string $item, string $storageKey) {- $contents = file_get_contents(resource_path($view));-- expect($contents)- ->toContain("'placeholder' => 'Search {$item}'")- ->toContain("localStorage.getItem('{$storageKey}') || 'table'")- ->toContain("localStorage.setItem('{$storageKey}', mode)")- ->toContain("@include('livewire.shared.list-search-empty'");-})->with([- 'sources' => ['views/source/all.blade.php', 'sources', 'coolify-sources-view'],- 'destinations' => ['views/livewire/destination/index.blade.php', 'destinations', 'coolify-destinations-view'],- 'S3 storages' => ['views/livewire/storage/index.blade.php', 'S3 storages', 'coolify-s3-storages-view'],-]);--it('renders shared search controls with result counts and view switchers', function () {- $controls = file_get_contents(resource_path('views/livewire/shared/list-search-controls.blade.php'));- $emptyState = file_get_contents(resource_path('views/livewire/shared/list-search-empty.blade.php'));-- expect($controls)- ->toContain('x-model.debounce.150ms="search"')- ->toContain('filteredItems.length')- ->toContain("setViewMode('table')")- ->toContain("setViewMode('grid')")- ->toContain('aria-label="Table view"')- ->toContain('aria-label="Grid view"')- ->toContain('control-selected')- ->and($emptyState)->toContain('filteredItems.length === 0');-});diff --git a/tests/Feature/LayoutPopupsUiTest.php b/tests/Feature/LayoutPopupsUiTest.phpdeleted file mode 100644index d405268d02..0000000000--- a/tests/Feature/LayoutPopupsUiTest.php+++ /dev/null@@ -1,65 +0,0 @@-<?php--/**- * Layout popups (realtime warning, sponsorship, notifications) use the redesigned UI shell.- */-test('realtime connection warning uses the redesigned popup shell', function () {- $view = file_get_contents(resource_path('views/livewire/layout-popups.blade.php'));-- expect($view)- ->toContain('Cannot connect to real-time service')- ->toContain('Acknowledge & disable')- ->toContain('customActions')- ->toContain('rounded-2xl border border-red-200')- ->toContain('name="alert-triangle"')- ->not->toContain('WARNING: </span> Cannot connect to real-time service')- ->not->toContain('Acknowledge & Disable This Popup');-});--test('notification reminder uses the redesigned popup shell', function () {- $view = file_get_contents(resource_path('views/livewire/layout-popups.blade.php'));-- expect($view)- ->toContain('No notifications enabled')- ->toContain('Accept and close')- ->toContain('Open notifications')- ->not->toContain('Accept and Close');-});--test('non-critical reminders collapse after ten seconds', function () {- $view = file_get_contents(resource_path('views/livewire/layout-popups.blade.php'));-- expect($view)- ->toContain('reminderCollapseAfter: 10000')- ->toContain("scheduleReminderCollapse('sponsorship')")- ->toContain("scheduleReminderCollapse('notification')")- ->toContain('reminders.sponsorship.compact = true')- ->toContain('reminders.notification.compact = true');-});--test('sponsorship reminder is disabled in development', function () {- $view = file_get_contents(resource_path('views/livewire/layout-popups.blade.php'));-- expect($view)- ->toContain('this.popups.sponsorship = !this.isDevelopment && this.shouldShowMonthlyPopup')- ->toContain('x-on:show-sponsorship-reminder.window="popups.sponsorship = true')- ->toContain('x-on:show-sponsorship-reminder.window="bannerVisible = true"');-});--test('sponsorship reminder listener is not parsed as a blade directive', function () {- $view = file_get_contents(resource_path('views/livewire/layout-popups.blade.php'));- $compiledView = Blade::compileString($view);-- expect($compiledView)- ->toContain('x-on:show-sponsorship-reminder.window=')- ->not->toContain('$__env->yieldSection()');-});--test('advanced settings provides a development-only sponsorship reminder preview', function () {- $view = file_get_contents(resource_path('views/livewire/settings/advanced.blade.php'));-- expect($view)- ->toContain('@if (isDev())')- ->toContain("@click=\"\$dispatch('show-sponsorship-reminder')\"")- ->toContain('Show sponsorship reminder');-});diff --git a/tests/Feature/LightModeScrollbarTest.php b/tests/Feature/LightModeScrollbarTest.phpdeleted file mode 100644index e8c6d7448a..0000000000--- a/tests/Feature/LightModeScrollbarTest.php+++ /dev/null@@ -1,11 +0,0 @@-<?php--test('native scrollbars follow the active theme', function () {- $styles = file_get_contents(resource_path('css/app.css'));-- expect($styles)- ->toContain('html {')- ->toContain('color-scheme: light;')- ->toContain('html.dark {')- ->toContain('color-scheme: dark;');-});diff --git a/tests/Feature/ListboxTriggerTruncationTest.php b/tests/Feature/ListboxTriggerTruncationTest.phpdeleted file mode 100644index 66fccf87a0..0000000000--- a/tests/Feature/ListboxTriggerTruncationTest.php+++ /dev/null@@ -1,199 +0,0 @@-<?php--use Illuminate\Support\Facades\Blade;--test('listbox trigger styles constrain width and ellipsize long labels', function () {- $css = file_get_contents(resource_path('css/app.css'));-- expect($css)- ->toContain('.listbox-trigger {')- ->toContain('min-width: 0;')- ->toContain('overflow: hidden;')- ->toContain('.listbox-trigger-label {')- ->toContain('text-overflow: ellipsis;')- ->toContain('white-space: nowrap;');-});--test('listbox trigger height matches shared inputs', function () {- $css = file_get_contents(resource_path('css/app.css'));-- expect($css)- ->toMatch('/\.listbox-trigger \{[^}]*height: 2\.25rem;/s')- ->toMatch('/\.application-settings-workspace \.listbox-trigger[^}]*height: 2rem;/s');-});--test('disabled listboxes use the same colors as disabled inputs', function () {- $css = file_get_contents(resource_path('css/app.css'));-- expect($css)- ->toMatch('/\.listbox-trigger:disabled \{[^}]*background-color: var\(--color-neutral-100\);[^}]*color: var\(--color-neutral-400\);/s')- ->toMatch('/\.dark \.listbox-trigger:disabled \{[^}]*background-color: color-mix\(in oklab, var\(--color-white\) 3%, transparent\);[^}]*color: var\(--color-fg-faint\);/s')- ->not->toMatch('/\.listbox-trigger:disabled \{[^}]*opacity:/s');-});--test('listbox component uses shared trigger label truncation', function () {- $html = Blade::render(<<<'BLADE'- <x-forms.listbox id="longOption" label="Example"- :options="[- ['value' => 'long', 'label' => 'A very long option label that should truncate'],- ]" :wire="false" value="long" />- BLADE);-- expect($html)- ->toContain('class="w-full min-w-0"')- ->toContain('relative min-w-0')- ->toContain('listbox-trigger')- ->toContain('listbox-trigger-label')- ->toContain(':title="current"')- ->not->toContain('class="truncate" x-text="current"');-});--test('listboxes stay in their local Alpine scope by default', function () {- $component = file_get_contents(resource_path('views/components/forms/listbox.blade.php'));- $html = Blade::render('<x-forms.listbox id="region" :options="[]" :wire="false" />');-- expect($component)->toContain("'portal' => false")- ->and($html)- ->toContain('x-data="{')- ->toContain('x-ref="panel"')- ->not->toContain('x-teleport="body"')- ->not->toContain('floatingDropdown(')- ->not->toContain('style="position: fixed');-});--test('mobile listbox panels stay anchored to their trigger', function () {- $css = file_get_contents(resource_path('css/app.css'));-- expect($css)- ->not->toContain('.listbox-panel:not([style*="position: fixed"])')- ->not->toContain('transform: translate(-50%, -50%) !important;');-});--test('portaled listboxes measure content without inheriting the viewport width', function () {- $listbox = file_get_contents(resource_path('views/components/forms/listbox.blade.php'));-- expect($listbox)- ->toContain("panel.style.width = 'max-content';")- ->toContain('panel.style.minWidth = `${triggerRect.width}px`;')- ->toContain('Math.max(triggerRect.width, panel.offsetWidth)');-});--test('portaled listboxes stay anchored when a scroll container moves', function () {- $listbox = file_get_contents(resource_path('views/components/forms/listbox.blade.php'));-- expect($listbox)- ->toContain('@scroll.window.capture="open && positionPanel()"');-});--test('searchable listbox component uses shared trigger label truncation', function () {- $html = Blade::render(<<<'BLADE'- <x-forms.searchable-listbox id="tz" label="Timezone"- :options="[['value' => 'UTC', 'label' => 'UTC']]" :wire="false" value="UTC" />- BLADE);-- expect($html)- ->toContain('class="w-full min-w-0"')- ->toContain('relative min-w-0')- ->toContain('listbox-trigger-label')- ->toContain(':title="current"');-});--test('listbox shows an empty state when it has no options', function () {- $listbox = file_get_contents(resource_path('views/components/forms/listbox.blade.php'));- $operations = file_get_contents(resource_path('views/livewire/project/shared/resource-operations.blade.php'));-- expect($listbox)- ->toContain("'emptyText' => 'No options available.'")- ->toContain('x-show="options.length === 0"');-- expect($operations)->toContain('No network destinations are available on this server.');-});--test('listbox forwards dynamic disabled state to its trigger', function () {- $listbox = file_get_contents(resource_path('views/components/forms/listbox.blade.php'));- $operations = file_get_contents(resource_path('views/livewire/project/shared/resource-operations.blade.php'));-- expect($listbox)->toContain("\$attributes->whereStartsWith('x-bind:disabled')");-- expect($operations)- ->toContain('selectedCloneServer: null')- ->toContain('selectedCloneProject: null')- ->toContain('selectedCloneEnvironment: null')- ->toContain('currentServerId: @js($resource->destination->server->id)')- ->toContain('currentDestinationUuid: @js($resource->destination->uuid)')- ->toContain("server.id == this.currentServerId ? ' (current)' : ''")- ->toContain("destination.uuid == this.currentDestinationUuid ? ' (current)' : ''")- ->toContain('selectedCloneServer = null;')- ->toContain('placeholder="Choose a server…"')- ->toContain("this.selectedCloneServer === null || this.selectedCloneServer === ''")- ->toContain("x-bind:disabled=\"selectedCloneServer === null || selectedCloneServer === ''\"")- ->toContain('x-model="selectedCloneProject"')- ->toContain('x-model="selectedCloneEnvironment"')- ->toContain('$wire.cloneTo(selectedCloneDestination)')- ->toContain('$wire.cloneTo(currentDestinationUuid, selectedCloneEnvironment)')- ->not->toContain('$wire.cloneTo(@js(')- ->toContain('x-bind:disabled="!selectedMoveProject || availableEnvironments.length === 0"');-});--test('listbox waits for change handlers and prevents overlapping selections', function () {- $listbox = file_get_contents(resource_path('views/components/forms/listbox.blade.php'));-- expect($listbox)- ->toContain('saving: false')- ->toContain('async choose(option)')- ->toContain('await this.$wire.')- ->toContain('if (option.header || option.disabled || this.saving) return;')- ->toContain("'pointer-events-none opacity-70': saving");-});--test('listbox does not send a second live entangle request when using a change handler', function () {- $listbox = file_get_contents(resource_path('views/components/forms/listbox.blade.php'));-- expect($listbox)->toContain('@elseif ($live && ! $onChange) @entangle($id).live');-});--test('listbox can preserve its client value across Livewire morphs', function () {- $listbox = file_get_contents(resource_path('views/components/forms/listbox.blade.php'));-- expect($listbox)- ->toContain("'preserveValue' => false")- ->toContain('@if ($preserveValue) wire:ignore @endif');-});--test('notification event multiselect truncates long selected summaries', function () {- $html = Blade::render(<<<'BLADE'- <x-notification.event-multiselect id="server-slack-events" label="Servers" :events="[- ['property' => 'dockerCleanupFailureSlackNotifications', 'label' => 'Docker cleanup failure', 'enabled' => true],- ['property' => 'serverDiskUsageSlackNotifications', 'label' => 'Disk usage warning', 'enabled' => true],- ['property' => 'serverUnreachableSlackNotifications', 'label' => 'Server unreachable', 'enabled' => true],- ['property' => 'serverPatchSlackNotifications', 'label' => 'Server patching', 'enabled' => true],- ]" />- BLADE);-- expect($html)- ->toContain('class="w-full min-w-0"')- ->toContain('relative min-w-0')- ->toContain('listbox-trigger')- ->toContain('listbox-trigger-label')- ->toContain('Docker cleanup failure, Disk usage warning, Server unreachable, Server patching')- ->toContain('title="Docker cleanup failure, Disk usage warning, Server unreachable, Server patching"')- ->toContain('4/4');-});--test('notification event multiselect uses the same panel animation as listboxes', function () {- $html = Blade::render(<<<'BLADE'- <x-notification.event-multiselect id="deployment-email-events" label="Deployments" :events="[- ['property' => 'deploymentSuccessEmailNotifications', 'label' => 'Deployment success', 'enabled' => false],- ['property' => 'deploymentFailureEmailNotifications', 'label' => 'Deployment failure', 'enabled' => true],- ['property' => 'statusChangeEmailNotifications', 'label' => 'Container status changes', 'enabled' => false],- ]" />- BLADE);-- expect($html)- ->toContain('x-transition:enter="transition ease-out duration-100"')- ->toContain('x-transition:enter-start="opacity-0 -translate-y-1 scale-[0.98]"')- ->toContain('x-transition:enter-end="opacity-100 translate-y-0 scale-100"')- ->toContain('x-transition:leave="transition ease-in duration-75"')- ->toContain('x-transition:leave-start="opacity-100 translate-y-0 scale-100"')- ->toContain('x-transition:leave-end="opacity-0 -translate-y-1 scale-[0.98]"');-});diff --git a/tests/Feature/Livewire/SentinelComponentTest.php b/tests/Feature/Livewire/SentinelComponentTest.phpdeleted file mode 100644index 83417adea2..0000000000--- a/tests/Feature/Livewire/SentinelComponentTest.php+++ /dev/null@@ -1,65 +0,0 @@-<?php--it('keeps sentinel restarted events from re-syncing editable form fields', function () {- $componentSource = file_get_contents(app_path('Livewire/Server/Sentinel.php'));-- preg_match('/public function handleSentinelRestarted\([^)]*\)\s*\{(?<body>.*?)\n \}/s', $componentSource, $matches);-- expect($matches['body'] ?? '')- ->toContain('$this->sentinelUpdatedAt = $this->server->sentinel_updated_at;')- ->not->toContain('$this->syncData();');-});--it('refreshes display state after sentinel synchronization without changing editable fields', function () {- $componentSource = file_get_contents(app_path('Livewire/Server/Sentinel.php'));-- expect($componentSource)- ->toContain('SentinelSynchronized" => \'handleSentinelSynchronized\'');-- preg_match('/public function handleSentinelSynchronized\([^)]*\)(?:: [^{]+)?\s*\{(?<body>.*?)\n \}/s', $componentSource, $matches);-- expect($matches['body'] ?? '')- ->toContain('$this->sentinelUpdatedAt = $this->server->sentinel_updated_at;')- ->not->toContain('$this->syncData();');-});--it('does not expose a Sentinel disable action', function () {- $componentSource = file_get_contents(app_path('Livewire/Server/Sentinel.php'));- $view = file_get_contents(resource_path('views/livewire/server/sentinel.blade.php'));-- expect($componentSource)->not->toContain('function toggleSentinel')- ->and($view)->not->toContain('Disable')- ->and($view)->not->toContain('Enable Sentinel');-});--it('does not repeat a disabled status badge in the sentinel empty state', function () {- $view = file_get_contents(resource_path('views/livewire/server/sentinel.blade.php'));-- expect($view)->not->toContain("? 'Disabled'");-});--it('shows the connected sentinel state without a decorative icon or redundant heading', function () {- $view = file_get_contents(resource_path('views/livewire/server/sentinel.blade.php'));-- expect($view)- ->toContain('Sentinel is connected and reporting server health to this Coolify instance.')- ->not->toContain('Health reporting active')- ->not->toContain('<x-reicon name="dashboard"');-});--it('tells the user that saving sentinel settings initiates a restart', function () {- $componentSource = file_get_contents(app_path('Livewire/Server/Sentinel.php'));-- preg_match('/public function submit\([^)]*\).*?\{(?<body>.*?)\n \}/s', $componentSource, $matches);-- expect($matches['body'] ?? '')- ->toContain("\$this->dispatch('success', 'Sentinel settings updated. Restarting Sentinel.');");-});--it('starts mandatory Sentinel after server validation succeeds', function () {- $interactiveValidation = file_get_contents(app_path('Livewire/Server/ValidateAndInstall.php'));- $queuedValidation = file_get_contents(app_path('Jobs/ValidateAndInstallServerJob.php'));-- expect($interactiveValidation)->toContain('CheckAndStartSentinelJob::dispatch($this->server);')- ->and($queuedValidation)->toContain('CheckAndStartSentinelJob::dispatch($this->server);');-});diff --git a/tests/Feature/LivewireLoadingColorTest.php b/tests/Feature/LivewireLoadingColorTest.phpdeleted file mode 100644index c524463c91..0000000000--- a/tests/Feature/LivewireLoadingColorTest.php+++ /dev/null@@ -1,21 +0,0 @@-<?php--test('loading indicators use warning yellow throughout dark mode', function () {- $utilities = file_get_contents(resource_path('css/utilities.css'));- $appCss = file_get_contents(resource_path('css/app.css'));- $loading = file_get_contents(resource_path('views/components/loading.blade.php'));- $pageLoading = file_get_contents(resource_path('views/components/page-loading.blade.php'));- expect($utilities)- ->toContain('@utility loading-indicator')- ->toContain('@apply text-coollabs dark:text-warning;')- ->and($loading)->toContain('loading-indicator')- ->and($pageLoading)->toContain('loading-indicator')- ->and($appCss)->toContain('.dark .animate-spin')- ->toContain('color: var(--color-warning) !important;')- ->toContain('.dark #nprogress .bar')- ->toContain('background: var(--color-warning) !important;');-});--test('livewire navigation progress bar uses coollabs purple', function () {- expect(config('livewire.navigate.progress_bar_color'))->toBe('#6b16ed');-});diff --git a/tests/Feature/LoadingComponentTest.php b/tests/Feature/LoadingComponentTest.phpdeleted file mode 100644index 0b8abec8e1..0000000000--- a/tests/Feature/LoadingComponentTest.php+++ /dev/null@@ -1,21 +0,0 @@-<?php--it('uses the current neutral loading indicator styles', function () {- $loading = file_get_contents(resource_path('views/components/loading.blade.php'));-- expect($loading)- ->toContain('gap-2 text-[13px] text-neutral-500 dark:text-fg-dim')- ->toContain("'size-3' => \$compact")- ->toContain("'size-4' => ! \$compact")- ->toContain('stroke="currentColor" stroke-width="2"')- ->not->toContain('text-coollabs')- ->not->toContain('dark:text-warning');-});--it('shows runtime container loading inside a settings card', function () {- $logs = file_get_contents(resource_path('views/livewire/project/shared/logs.blade.php'));-- expect($logs)- ->toContain('application-settings-section-body flex min-h-40 w-full items-center justify-center')- ->toContain('<x-loading text="Loading containers" />');-});diff --git a/tests/Feature/LogClipboardHandlerTest.php b/tests/Feature/LogClipboardHandlerTest.phpdeleted file mode 100644index 1b02733532..0000000000--- a/tests/Feature/LogClipboardHandlerTest.php+++ /dev/null@@ -1,39 +0,0 @@-<?php--use Illuminate\Support\Str;--function bladeView(string $path): string-{- return file_get_contents(base_path($path));-}--it('guards deployment log clipboard writes and reports promise failures', function () {- $view = bladeView('resources/views/livewire/project/application/deployment/show.blade.php');-- expect($view)- ->toContain('copyLogs()')- ->toContain('navigator.clipboard?.writeText')- ->toContain("Livewire.dispatch('error', ['Clipboard is not available. Please use HTTPS or localhost.']);")- ->toContain("Livewire.dispatch('error', ['Failed to copy logs to clipboard.']);")- ->toContain("Livewire.dispatch('success', ['Logs copied to clipboard.']);");-- expect(Str::between($view, 'copyLogs() {', 'downloadLogs()'))- ->toContain('navigator.clipboard?.writeText(content).then(() =>')- ->not->toContain("navigator.clipboard.writeText(content);\n Livewire.dispatch('success'");-});--it('guards shared log clipboard writes and handles Livewire preparation failures', function () {- $view = bladeView('resources/views/livewire/project/shared/get-logs.blade.php');-- expect($view)- ->toContain('navigator.clipboard?.writeText')- ->toContain("Livewire.dispatch('error', ['Clipboard is not available. Please use HTTPS or localhost.']);")- ->toContain("Livewire.dispatch('error', ['Failed to copy logs to clipboard.']);")- ->toContain("Livewire.dispatch('error', ['Failed to prepare logs for clipboard.']);")- ->toContain("Livewire.dispatch('success', ['Logs copied to clipboard.']);");-- expect($view)- ->toContain('$wire.copyLogs().then(logs =>')- ->toContain('}).catch(() => {')- ->not->toContain('navigator.clipboard.writeText(logs);');-});diff --git a/tests/Feature/LogFontStylingTest.php b/tests/Feature/LogFontStylingTest.phpdeleted file mode 100644index 1d5a566bc2..0000000000--- a/tests/Feature/LogFontStylingTest.php+++ /dev/null@@ -1,59 +0,0 @@-<?php--it('registers geist mono from a local asset for log surfaces', function () {- $fontsCss = file_get_contents(resource_path('css/fonts.css'));- $appCss = file_get_contents(resource_path('css/app.css'));- $fontPath = resource_path('fonts/geist-mono-variable.woff2');- $geistSansPath = resource_path('fonts/geist-sans-variable.woff2');-- expect($fontsCss)- ->toContain("font-family: 'Geist Mono'")- ->toContain("url('../fonts/geist-mono-variable.woff2')")- ->toContain("font-family: 'Geist Sans'")- ->toContain("url('../fonts/geist-sans-variable.woff2')")- ->and($appCss)- ->toContain("--font-sans: 'Geist Sans', Inter, sans-serif")- ->toContain('@apply min-h-screen text-sm font-sans antialiased scrollbar overflow-x-clip;')- ->toContain("--font-logs: 'Geist Mono'")- ->toContain("--font-geist-sans: 'Geist Sans'")- ->and($fontPath)- ->toBeFile()- ->and($geistSansPath)- ->toBeFile();-});--it('uses geist mono for shared logs and terminal rendering', function () {- $sharedLogsView = file_get_contents(resource_path('views/livewire/project/shared/get-logs.blade.php'));- $deploymentLogsView = file_get_contents(resource_path('views/livewire/project/application/deployment/show.blade.php'));- $activityMonitorView = file_get_contents(resource_path('views/livewire/activity-monitor.blade.php'));- $dockerCleanupView = file_get_contents(resource_path('views/livewire/server/docker-cleanup-executions.blade.php'));- $terminalClient = file_get_contents(resource_path('js/terminal.js'));-- expect($sharedLogsView)- ->toContain('font-logs max-w-full cursor-default')- ->toContain('font-logs max-w-full whitespace-pre-wrap break-all text-neutral-400')- ->and($deploymentLogsView)- ->toContain('flex min-w-0 flex-col font-logs')- ->toContain('mb-2 font-logs text-neutral-400')- ->and($activityMonitorView)- ->toContain('<pre class="font-logs min-w-0 max-w-full whitespace-pre-wrap wrap-anywhere"')- ->and($dockerCleanupView)- ->toContain('font-mono')- ->and($terminalClient)- ->toContain('"Geist Mono"');-});--it('constrains activity monitor logs inside the available viewport', function () {- $activityMonitorView = file_get_contents(resource_path('views/livewire/activity-monitor.blade.php'));-- expect($activityMonitorView)- ->toContain('flex flex-col w-full min-w-0 max-w-full')- ->toContain('<pre class="font-logs min-w-0 max-w-full whitespace-pre-wrap wrap-anywhere"');-});--it('bounds database startup activity monitor to the slide over height', function () {- $databaseHeadingView = file_get_contents(resource_path('views/livewire/project/database/heading.blade.php'));-- expect($databaseHeadingView)- ->toContain('<div wire:ignore class="h-full min-h-0 min-w-0 max-w-full">');-});diff --git a/tests/Feature/LoginPageBrandingTest.php b/tests/Feature/LoginPageBrandingTest.phpdeleted file mode 100644index ffe7da67ce..0000000000--- a/tests/Feature/LoginPageBrandingTest.php+++ /dev/null@@ -1,118 +0,0 @@-<?php--/**- * Auth shell headers should brand the product so users know they are on Coolify.- */-test('login register and forgot password headers are Coolify', function () {- $login = file_get_contents(resource_path('views/auth/login.blade.php'));- $register = file_get_contents(resource_path('views/auth/register.blade.php'));- $forgot = file_get_contents(resource_path('views/auth/forgot-password.blade.php'));-- expect($login)- ->toContain('title="Coolify"')- ->not->toContain('title="Welcome back"');-- expect($register)- ->toContain('title="Coolify"')- ->not->toContain(":title=\"\$isFirstUser ? 'Create the root account' : 'Create your account'\"");-- expect($forgot)- ->toContain('title="Coolify"')- ->not->toContain("title=\"{{ __('auth.forgot_password_heading') }}\"");-});--test('page body uses the dynamic viewport height on mobile', function () {- $styles = file_get_contents(resource_path('css/app.css'));-- expect($styles)- ->toMatch('/body\s*\{[^}]*min-height:\s*100dvh;/s')- ->not->toMatch('/body\s*\{[^}]*@apply[^;]*min-h-screen/s');-});--test('auth pages use the Coollabs purple background glow', function () {- $styles = file_get_contents(resource_path('css/app.css'));-- expect($styles)- ->toMatch('/\.auth-shell\s*\{[^}]*color-mix\(in oklab, var\(--color-coollabs\) 9%, transparent\)/s')- ->not->toMatch('/\.auth-shell\s*\{[^}]*color-mix\(in oklab, var\(--color-accent\) 9%, transparent\)/s');-});--test('external login providers are centered and full width', function () {- $login = file_get_contents(resource_path('views/auth/login.blade.php'));-- expect($login)- ->toContain('class="flex flex-col gap-2"')- ->toContain('class="w-full justify-center"')- ->not->toContain('sm:w-[calc(50%-0.25rem)]');-});--test('external login providers display their icons except oidc', function () {- $login = file_get_contents(resource_path('views/auth/login.blade.php'));-- expect($login)- ->toContain("@if (\$provider_setting->provider !== 'oidc')")- ->toContain("asset('svgs/'.\$provider_setting->provider.'.svg')")- ->toContain('class="size-5 shrink-0 dark:invert"');-- foreach (['authentik', 'azure', 'bitbucket', 'clerk', 'discord', 'github', 'gitlab', 'google', 'infomaniak', 'zitadel'] as $provider) {- expect(public_path("svgs/{$provider}.svg"))->toBeFile();- }-});--test('error pages use the Coollabs purple background glow', function () {- $styles = file_get_contents(resource_path('css/app.css'));-- expect($styles)- ->toMatch('/\.error-shell\s*\{[^}]*color-mix\(in oklab, var\(--color-coollabs\) 9%, transparent\)/s')- ->not->toMatch('/\.error-shell\s*\{[^}]*color-mix\(in oklab, var\(--color-accent\) 9%, transparent\)/s');-});--test('confirm password page uses the shared auth shell', function () {- $confirm = file_get_contents(resource_path('views/auth/confirm-password.blade.php'));-- expect($confirm)- ->toContain('x-auth.shell')- ->toContain('title="Coolify"')- ->toContain('x-auth.alert')- ->toContain('auth-guidance')- ->not->toContain('bg-gray-50 dark:bg-base')- ->not->toContain('!text-5xl font-extrabold');-});--test('two factor challenge page uses the shared auth shell', function () {- $challenge = file_get_contents(resource_path('views/auth/two-factor-challenge.blade.php'));-- expect($challenge)- ->toContain('x-auth.shell')- ->toContain('title="Coolify"')- ->toContain('x-auth.alert')- ->toContain('auth-guidance')- ->toContain('Verify and continue')- ->not->toContain('bg-gray-50 dark:bg-base')- ->not->toContain('!text-5xl font-extrabold');-});--test('email verification page uses the shared auth shell', function () {- $verification = file_get_contents(resource_path('views/auth/verify-email.blade.php'));-- expect($verification)- ->toContain('x-layout-simple')- ->toContain('x-auth.shell')- ->toContain('title="Coolify"')- ->toContain('auth-guidance')- ->toContain('block sm:inline')- ->not->toContain('<x-layout>')- ->not->toContain('md:h-screen');-});--test('team invitation page uses the shared auth shell', function () {- $invitation = file_get_contents(resource_path('views/invitation/accept.blade.php'));-- expect($invitation)- ->toContain('x-auth.shell')- ->toContain('title="Coolify"')- ->toContain('x-auth.alert')- ->toContain('Accept invitation')- ->not->toContain('bg-gray-50 dark:bg-base')- ->not->toContain('!text-5xl font-extrabold');-});diff --git a/tests/Feature/MenuItemActiveNoBorderTest.php b/tests/Feature/MenuItemActiveNoBorderTest.phpdeleted file mode 100644index 4642298857..0000000000--- a/tests/Feature/MenuItemActiveNoBorderTest.php+++ /dev/null@@ -1,26 +0,0 @@-<?php--/**- * Active sidebar/nav items use a solid fill only — no left accent rail- * (::before) and no gradient wash.- */-test('active menu items do not render an accent rail', function () {- $appCss = file_get_contents(resource_path('css/app.css'));- $utilities = file_get_contents(resource_path('css/utilities.css'));-- preg_match('/@utility menu-item-active \{[^}]*\}/s', $utilities, $menuItemActive);- preg_match('/@utility menu-subitem-active \{[^}]*\}/s', $utilities, $menuSubitemActive);-- expect($menuItemActive[0] ?? '')- ->toContain('rounded-md')- ->toContain('bg-black/[0.05]')- ->and($menuSubitemActive[0] ?? '')- ->toContain('rounded-md')- ->toContain('bg-black/[0.05]');-- // Accent rail must be disabled (content: none), not drawn as a 3px accent bar.- expect($appCss)- ->toMatch('/\.menu-item-active::before,\s*\.menu-subitem-active::before\s*\{[^}]*content:\s*none/s')- ->not->toMatch('/\.menu-item-active::before\s*\{[^}]*width:\s*3px/s')- ->not->toMatch('/\.menu-item-active::before\s*\{[^}]*background:\s*var\(--color-accent\)/s');-});diff --git a/tests/Feature/MenuItemContrastTest.php b/tests/Feature/MenuItemContrastTest.phpdeleted file mode 100644index 6a997dac8a..0000000000--- a/tests/Feature/MenuItemContrastTest.php+++ /dev/null@@ -1,30 +0,0 @@-<?php--/**- * Inactive sidebar/nav menu items previously used dark:text-fg-faint (#6e6e74)- * on near-black app chrome (~3.9:1), below WCAG AA for normal text. Defaults- * should use fg-dim / neutral-600 instead.- */-test('inactive menu items use accessible contrast tokens', function () {- $utilities = file_get_contents(resource_path('css/utilities.css'));-- preg_match('/@utility menu-item \{[^}]*\}/s', $utilities, $menuItem);- preg_match('/@utility menu-subitem \{[^}]*\}/s', $utilities, $menuSubitem);- preg_match('/@utility sub-menu-item \{[^}]*\}/s', $utilities, $subMenuItem);- preg_match('/@utility nav-section \{[^}]*\}/s', $utilities, $navSection);-- expect($menuItem[0] ?? '')- ->toContain('dark:text-fg-dim')- ->toContain('text-neutral-600')- ->not->toContain('dark:text-fg-faint')- ->and($menuSubitem[0] ?? '')- ->toContain('dark:text-fg-dim')- ->toContain('text-neutral-600')- ->not->toContain('dark:text-fg-faint')- ->and($subMenuItem[0] ?? '')- ->toContain('dark:text-fg-dim')- ->toContain('text-neutral-600')- ->and($navSection[0] ?? '')- ->toContain('dark:text-fg-dim')- ->not->toContain('dark:text-fg-faint');-});diff --git a/tests/Feature/MetricsDisabledEmptyStateTest.php b/tests/Feature/MetricsDisabledEmptyStateTest.phpdeleted file mode 100644index 1765345b60..0000000000--- a/tests/Feature/MetricsDisabledEmptyStateTest.php+++ /dev/null@@ -1,11 +0,0 @@-<?php--test('disabled application metrics use the standard empty state', function () {- $view = file_get_contents(resource_path('views/livewire/project/shared/metrics.blade.php'));-- expect($view)- ->toContain('<x-empty size="sm" title="Metrics are not enabled"')- ->toContain('description="Enable Sentinel and metrics for this server before collecting application usage data."')- ->toContain('icon-name="dashboard"')- ->not->toContain('<x-callout type="info" title="Metrics are not enabled">');-});diff --git a/tests/Feature/MetricsTooltipStylingTest.php b/tests/Feature/MetricsTooltipStylingTest.phpdeleted file mode 100644index 37d3764669..0000000000--- a/tests/Feature/MetricsTooltipStylingTest.php+++ /dev/null@@ -1,42 +0,0 @@-<?php--test('apexcharts delegates tooltip chrome to the custom content', function () {- $utilities = file_get_contents(resource_path('css/utilities.css'));-- preg_match('/@utility apexcharts-tooltip \{[^}]*\}/s', $utilities, $tooltip);- preg_match('/@utility apexcharts-tooltip-custom \{[^}]*\}/s', $utilities, $customTooltip);-- expect($tooltip[0] ?? '')- ->toContain('overflow-visible!')- ->toContain('rounded-none!')- ->toContain('border-0!')- ->toContain('bg-transparent!')- ->toContain('shadow-none!')- ->not->toContain('dark:border-coolgray-300!')- ->not->toContain('dark:bg-coolgray-200!')- ->and($customTooltip[0] ?? '')- ->toContain('border-neutral-200')- ->toContain('dark:border-coolgray-300')- ->toContain('rounded-lg')- ->toContain('shadow-lg');-});--test('metrics charts render custom tooltip content', function (string $view) {- expect(file_get_contents(resource_path($view)))- ->toContain('apexcharts-tooltip-custom');-})->with([- 'dashboard server metrics' => 'views/livewire/dashboard/server-metrics-chart.blade.php',- 'server metrics' => 'views/livewire/server/charts.blade.php',- 'resource metrics' => 'views/livewire/project/shared/metrics.blade.php',-]);--test('server metric tooltips show local and UTC timestamps', function (string $view) {- expect(file_get_contents(resource_path($view)))- ->toContain('formatLocalTimestamp(timestamp)')- ->toContain('formatUtcTimestamp(timestamp)')- ->toContain('Your time:')- ->toContain('UTC:');-})->with([- 'dashboard server metrics' => 'views/livewire/dashboard/server-metrics-chart.blade.php',- 'server metrics' => 'views/livewire/server/charts.blade.php',-]);diff --git a/tests/Feature/MobileResourceMenuTest.php b/tests/Feature/MobileResourceMenuTest.phpdeleted file mode 100644index 182d11f85f..0000000000--- a/tests/Feature/MobileResourceMenuTest.php+++ /dev/null@@ -1,230 +0,0 @@-<?php--it('uses neutral play icons for resource start actions', function () {- foreach ([- 'application',- 'database',- 'service',- ] as $resource) {- $heading = file_get_contents(resource_path("views/livewire/project/{$resource}/heading.blade.php"));-- // One neutral start icon in the mobile split action and one in the desktop split action.- expect(substr_count($heading, 'name="play-circle" class="size-3.5"'))- ->toBeGreaterThanOrEqual(2);-- expect($heading)- ->not->toContain('name="play-circle" class="size-3.5 text-warning"')- ->not->toContain('name="play-circle" class="size-3.5 text-orange-500');- }-});--it('uses full-width split action menus on mobile resource headings', function () {- $headings = [- 'application' => file_get_contents(resource_path('views/livewire/project/application/heading.blade.php')),- 'database' => file_get_contents(resource_path('views/livewire/project/database/heading.blade.php')),- 'service' => file_get_contents(resource_path('views/livewire/project/service/heading.blade.php')),- ];-- foreach ($headings as $resource => $heading) {- expect(mobileActionsAreBeforeDesktopActions($heading, "{$resource}-mobile-actions", "{$resource}-desktop-actions"))->toBeTrue();-- expect($heading)- ->toContain('<div class="w-full xl:hidden">')- ->toContain("<x-split-action id=\"{$resource}-mobile-actions\" class=\"mb-3 flex w-full\">")- ->not->toContain("{$resource}-mobile-section")- ->not->toContain('<select')- ->not->toContain('<optgroup')- ->not->toContain('@selected');-- expect(mobileActionsMarkup($heading, "{$resource}-mobile-actions"))- ->toContain('<x-slot:main')- ->toContain('listbox-option justify-start! gap-2.5!')- ->toContain('role="menuitem"')- ->toContain('name="play-circle" class="size-3.5"')- ->toContain('name="restart" class="size-3.5')- ->toContain('name="stop-circle" class="size-3.5 text-error"');- }-- expect(mobileActionsMarkup($headings['application'], 'application-mobile-actions'))- ->toContain('wire:click="deploy"')- ->toContain('wire:click="deploy(true)"')- ->toContain('force_deploy_without_cache')- ->toContain('Deploy (without cache)')- ->toContain("document.getElementById('application-mobile-stop-trigger')?.click()")- ->toContain("document.getElementById('application-mobile-restart-trigger')?.click()");-- expect($headings['application'])- ->toContain('<button id="application-mobile-stop-trigger" type="button">')- ->toContain('<button id="application-mobile-restart-trigger" type="button">')- ->not->toContain('application-mobile-deploy-trigger')- ->not->toContain('application-mobile-force-deploy-trigger')- ->not->toContain('Confirm Application Deployment?');-- expect(mobileActionsMarkup($headings['database'], 'database-mobile-actions'))- ->toContain('x-bind:disabled="busy"')- ->toContain("document.getElementById('database-restart-trigger')?.click()")- ->toContain("document.getElementById('database-stop-trigger')?.click()")- ->toContain("\$wire.dispatch('startEvent')");-- expect($headings['database'])- ->toContain('<button id="database-restart-trigger" type="button">')- ->toContain('<button id="database-stop-trigger" type="button">')- ->not->toContain('database-start-trigger')- ->not->toContain('Confirm Database Start?');-- expect(mobileActionsMarkup($headings['service'], 'service-mobile-actions'))- ->toContain('x-bind:disabled="deploying"')- ->toContain("document.getElementById('service-restart-trigger')?.click()")- ->toContain("document.getElementById('service-stop-trigger')?.click()")- ->toContain("\$wire.dispatch('startEvent')")- ->toContain("\$wire.dispatch('forceDeployEvent')")- ->toContain("\$wire.dispatch('pullAndRestartEvent')");-- expect($headings['service'])- ->toContain('<button id="service-restart-trigger" type="button">')- ->toContain('<button id="service-stop-trigger" type="button">')- ->not->toContain('service-start-trigger')- ->not->toContain('service-forceDeploy-trigger')- ->not->toContain('service-pullAndRestart-trigger')- ->not->toContain('Confirm Service Deployment?')- ->not->toContain('Confirm Service Force Deployment?');-});--function mobileActionsMarkup(string $heading, string $actionsId): string-{- $actionsPosition = strpos($heading, 'id="'.$actionsId.'"');-- if ($actionsPosition === false) {- return '';- }-- $endPosition = strpos($heading, '</x-split-action>', $actionsPosition);-- if ($endPosition === false) {- return '';- }-- return substr($heading, $actionsPosition, $endPosition - $actionsPosition);-}--function mobileActionsAreBeforeDesktopActions(string $heading, string $mobileActionsId, string $desktopActionsId): bool-{- $mobilePosition = strpos($heading, 'id="'.$mobileActionsId.'"');- $hudPosition = strpos($heading, "@teleport('#resource-action-hud-slot')");- $desktopPosition = strpos($heading, 'id="'.$desktopActionsId.'"');-- return $mobilePosition !== false- && $hudPosition !== false- && $desktopPosition !== false- && $mobilePosition < $hudPosition- && $hudPosition < $desktopPosition;-}--it('places database backups immediately after configuration in navigation menus', function () {- $databaseHeading = file_get_contents(resource_path('views/livewire/project/database/heading.blade.php'));- $mobileMenuItems = str($databaseHeading)->between('$databasePageItems = [', '$databaseConfigurationItems = [')->toString();- $desktopMenuItems = str($databaseHeading)->between('class="scrollbar hidden', '</nav>')->toString();-- foreach ([$mobileMenuItems, $desktopMenuItems] as $menuItems) {- expect(strpos($menuItems, 'Configuration'))- ->toBeLessThan(strpos($menuItems, 'Backups'))- ->and(strpos($menuItems, 'Backups'))->toBeLessThan(strpos($menuItems, 'Logs'))- ->and(strpos($menuItems, 'Logs'))->toBeLessThan(strpos($menuItems, 'Terminal'));- }-});--it('shows configuration sidebars as a mobile link grid and a desktop rail instead of native selects', function () {- expect(file_get_contents(resource_path('views/livewire/project/database/configuration.blade.php')))- ->toContain('<x-database.configuration-sidebar :database="$database" :current-route="$currentRoute" />')- ->toContain('xl:grid-cols-[210px_minmax(0,1fr)]')- ->not->toContain('sub-menu-wrapper');-- foreach ([- 'views/components/database/configuration-sidebar.blade.php',- 'views/livewire/project/service/configuration.blade.php',- 'views/livewire/project/service/index.blade.php',- 'views/components/service-database/sidebar.blade.php',- 'views/components/server/sidebar.blade.php',- 'views/components/server/sidebar-proxy.blade.php',- 'views/components/server/sidebar-sentinel.blade.php',- 'views/components/server/sidebar-security.blade.php',- ] as $view) {- expect(file_get_contents(resource_path($view)))- ->toContain('<aside class="application-settings-navigation min-w-0 xl:self-start"')- ->toContain('class="grid grid-cols-2 gap-0.5 border-y border-neutral-200 py-3')- ->toContain('xl:grid-cols-1 xl:border-y-0 xl:py-0')- ->not->toContain('sub-menu-wrapper')- ->not->toContain('<select')- ->not->toContain('<optgroup');- }-- expect(file_get_contents(resource_path('views/components/server/sidebar.blade.php')))- ->toContain('aria-label="Server configuration sections"')- ->toContain("'route' => 'server.proxy'")- ->toContain("'navigate' => false");-- $serverNavbar = file_get_contents(resource_path('views/livewire/server/navbar.blade.php'));-- expect($serverNavbar)- ->toContain('<div class="mb-3 w-full lg:hidden">')- ->toContain('<div class="w-full xl:hidden">')- ->toContain('<x-split-action id="server-mobile-actions" class="mb-3 flex w-full">')- ->toContain('<button id="server-mobile-restart-proxy-trigger" type="button">')- ->toContain('<button id="server-mobile-stop-proxy-trigger" type="button">')- ->not->toContain('navbar-main')- ->not->toContain('<select');-- $serverMobileActions = serverMobileActionsMarkup($serverNavbar);-- expect($serverMobileActions)- ->toContain('Restart Proxy')- ->toContain('Stop Proxy')- ->toContain('Refresh Proxy Status')- ->not->toContain('Traefik');-- expect(strpos($serverMobileActions, 'Restart Proxy'))- ->toBeLessThan(strpos($serverMobileActions, 'Stop Proxy'))- ->and(strpos($serverMobileActions, 'Stop Proxy'))- ->toBeLessThan(strpos($serverMobileActions, 'Refresh Proxy Status'));-- foreach ([- 'views/livewire/server/show.blade.php',- 'views/livewire/server/advanced.blade.php',- 'views/livewire/server/private-key/show.blade.php',- 'views/livewire/server/ca-certificate/show.blade.php',- 'views/livewire/server/cloud-provider-token/show.blade.php',- 'views/livewire/server/cloudflare-tunnel.blade.php',- 'views/livewire/server/docker-cleanup.blade.php',- 'views/livewire/server/destinations.blade.php',- 'views/livewire/server/log-drains.blade.php',- 'views/livewire/server/charts.blade.php',- 'views/livewire/server/swarm.blade.php',- 'views/livewire/server/delete.blade.php',- 'views/livewire/server/proxy/show.blade.php',- 'views/livewire/server/proxy/logs.blade.php',- 'views/livewire/server/proxy/dynamic-configurations.blade.php',- 'views/livewire/server/sentinel/show.blade.php',- 'views/livewire/server/sentinel/logs.blade.php',- 'views/livewire/server/security/patches.blade.php',- 'views/livewire/server/security/terminal-access.blade.php',- ] as $view) {- expect(file_get_contents(resource_path($view)))- ->toContain('server-settings-workspace application-settings-workspace')- ->toContain('xl:grid-cols-[210px_minmax(0,1fr)]')- ->toContain('<x-server.sidebar')- ->not->toContain('sub-menu-wrapper')- ->not->toContain('class="flex flex-col h-full gap-8 md:flex-row');- }-});--function serverMobileActionsMarkup(string $navbar): string-{- $actionsPosition = strpos($navbar, 'id="server-mobile-actions"');- $restartModalPosition = strpos($navbar, '<x-modal-confirmation', $actionsPosition);-- if ($actionsPosition === false || $restartModalPosition === false || $actionsPosition > $restartModalPosition) {- return '';- }-- return substr($navbar, $actionsPosition, $restartModalPosition - $actionsPosition);-}diff --git a/tests/Feature/ModalConfirmationDestructiveActionsIconTest.php b/tests/Feature/ModalConfirmationDestructiveActionsIconTest.phpdeleted file mode 100644index 313dbd0178..0000000000--- a/tests/Feature/ModalConfirmationDestructiveActionsIconTest.php+++ /dev/null@@ -1,21 +0,0 @@-<?php--/**- * Destructive confirmation action lists must use reicon trash glyphs,- * not dismiss/close X icons or raw stroke SVGs.- */-test('modal confirmation action list uses trash reicon markers', function () {- $modal = file_get_contents(resource_path('views/components/modal-confirmation.blade.php'));-- expect($modal)- ->toContain('<x-reicon name="trash" class="mt-0.5 size-3.5 shrink-0" />')- ->not->toContain('d="M6 18L18 6M6 6l12 12"');-- // Action bullets use trash; header dismiss may still use close X.- $actionSection = Str::after($modal, 'The following actions will be performed:');- $actionSection = Str::before($actionSection, '@if (!$disableTwoStepConfirmation)');-- expect($actionSection)- ->toContain('name="trash"')- ->not->toContain('name="x"');-});diff --git a/tests/Feature/NativeSelectMigrationTest.php b/tests/Feature/NativeSelectMigrationTest.phpdeleted file mode 100644index 5fa1f58b61..0000000000--- a/tests/Feature/NativeSelectMigrationTest.php+++ /dev/null@@ -1,21 +0,0 @@-<?php--test('remaining user-facing dropdown fields use the shared animated listbox', function () {- $views = [- 'livewire/source/gitlab/change.blade.php' => ['privateKeyId', 'webhook_endpoint'],- 'livewire/project/application/domains.blade.php' => ['newDomainService'],- 'livewire/project/service/domains.blade.php' => ['newServiceApplicationId'],- 'livewire/server/new/by-ip.blade.php' => ['is_build_server'],- ];-- foreach ($views as $path => $ids) {- $view = file_get_contents(resource_path('views/'.$path));-- foreach ($ids as $id) {- expect($view)- ->toContain('<x-forms.listbox')- ->toContain('id="'.$id.'"')- ->not->toMatch('/<x-forms\.select[^>]*id="'.preg_quote($id, '/').'"/s');- }- }-});diff --git a/tests/Feature/NavbarFocusRingTest.php b/tests/Feature/NavbarFocusRingTest.phpdeleted file mode 100644index 7b3ce31361..0000000000--- a/tests/Feature/NavbarFocusRingTest.php+++ /dev/null@@ -1,8 +0,0 @@-<?php--it('keeps horizontal space around sidebar items for focus rings', function () {- $navbar = file_get_contents(resource_path('views/components/navbar.blade.php'));-- expect($navbar)- ->toContain('class="-mx-1 flex min-h-0 flex-1 flex-col gap-y-0.5 overflow-y-auto px-1 pb-2 scrollbar"');-});diff --git a/tests/Feature/NavigableCardHoverIndicatorTest.php b/tests/Feature/NavigableCardHoverIndicatorTest.phpdeleted file mode 100644index 0ca3245faf..0000000000--- a/tests/Feature/NavigableCardHoverIndicatorTest.php+++ /dev/null@@ -1,18 +0,0 @@-<?php--it('uses card hover animation without a right arrow on project and server cards', function () {- $views = [- resource_path('views/livewire/project/index.blade.php'),- resource_path('views/livewire/server/index.blade.php'),- ];-- foreach ($views as $view) {- $contents = file_get_contents($view);-- expect($contents)- ->toContain('hover:-translate-y-px')- ->toContain('hover:shadow-md')- ->not->toContain('group-hover:translate-x-0.5 group-hover:opacity-100')- ->not->toContain('pointer-events-none absolute top-1/2 right-3');- }-});diff --git a/tests/Feature/NavigationCloakTest.php b/tests/Feature/NavigationCloakTest.phpdeleted file mode 100644index 430400ea73..0000000000--- a/tests/Feature/NavigationCloakTest.php+++ /dev/null@@ -1,16 +0,0 @@-<?php--it('strips leftover x-cloak after wire:navigate to prevent blank page', function () {- $appJs = file_get_contents(resource_path('js/app.js'));-- expect($appJs)- ->toContain("document.addEventListener('livewire:navigated'")- ->toContain("querySelectorAll('[x-cloak]')")- ->toContain("removeAttribute('x-cloak')");-});--it('keeps the initial-load x-cloak guard on the app wrapper', function () {- $layout = file_get_contents(resource_path('views/layouts/app.blade.php'));-- expect($layout)->toContain('x-cloak');-});diff --git a/tests/Feature/NewResourceCardInteractionTest.php b/tests/Feature/NewResourceCardInteractionTest.phpdeleted file mode 100644index 312ddc7172..0000000000--- a/tests/Feature/NewResourceCardInteractionTest.php+++ /dev/null@@ -1,10 +0,0 @@-<?php--it('only deploys from keyboard events on the resource card itself', function () {- $view = file_get_contents(resource_path('views/livewire/project/new/select.blade.php'));-- expect(substr_count($view, '@keydown.enter.self.prevent='))->toBe(4)- ->and(substr_count($view, '@keydown.space.self.prevent='))->toBe(4)- ->and($view)->not->toContain('@keydown.enter.prevent=')- ->and($view)->not->toContain('@keydown.space.prevent=');-});diff --git a/tests/Feature/NotificationEmailResendLayoutTest.php b/tests/Feature/NotificationEmailResendLayoutTest.phpdeleted file mode 100644index 6d37287d92..0000000000--- a/tests/Feature/NotificationEmailResendLayoutTest.php+++ /dev/null@@ -1,25 +0,0 @@-<?php--test('team notification resend section matches instance email layout', function () {- $instance = file_get_contents(resource_path('views/livewire/settings-email.blade.php'));- $team = file_get_contents(resource_path('views/livewire/notifications/email.blade.php'));-- preg_match('/settings-section title="Resend".*?<\/x-application.settings-section>/s', $instance, $instanceResend);- preg_match('/settings-section title="Resend".*?<\/x-application.settings-section>/s', $team, $teamResend);-- expect($instanceResend[0] ?? '')- ->not->toBeEmpty()- ->toContain('grid gap-4 lg:grid-cols-2')- ->toContain('id="resendEnabled"')- ->toContain('id="resendApiKey"')- ->not->toContain('lg:col-span-2')- ->not->toContain('description=');-- expect($teamResend[0] ?? '')- ->not->toBeEmpty()- ->toContain('grid gap-4 lg:grid-cols-2')- ->toContain('id="resendEnabled"')- ->toContain('id="resendApiKey"')- ->not->toContain('lg:col-span-2')- ->not->toContain('description=');-});diff --git a/tests/Feature/NotificationSettingsNavigationTest.php b/tests/Feature/NotificationSettingsNavigationTest.phpdeleted file mode 100644index 08e095b1b3..0000000000--- a/tests/Feature/NotificationSettingsNavigationTest.php+++ /dev/null@@ -1,94 +0,0 @@-<?php--it('uses shared sidebar navigation for every notification channel', function () {- $sidebar = file_get_contents(resource_path('views/components/notification/settings-layout.blade.php'));- $navbar = file_get_contents(resource_path('views/components/dashboard/navbar.blade.php'));-- foreach (['email', 'discord', 'telegram', 'slack', 'pushover', 'webhook'] as $channel) {- $view = file_get_contents(resource_path("views/livewire/notifications/{$channel}.blade.php"));-- expect($view)- ->toContain('<x-notification.settings-layout>')- ->not->toContain('<x-notification.navbar');- }-- expect($sidebar)- ->toContain('application-settings-navigation')- ->toContain('Notification settings')- ->toContain("'label' => 'Email'")- ->toContain("'icon' => 'mail'")- ->toContain("'label' => 'Discord'")- ->toContain("'label' => 'Telegram'")- ->toContain("'label' => 'Slack'")- ->toContain("'label' => 'Pushover'")- ->toContain("'label' => 'Webhook'");-- foreach (['discord', 'telegram', 'slack', 'pushover'] as $channel) {- expect(public_path("svgs/{$channel}.svg"))->toBeFile();- }-- expect(file_get_contents(public_path('svgs/pushover.svg')))- ->toContain('<path')- ->not->toContain('<ellipse');-- expect($sidebar)- ->toContain("'brandIcon' => 'discord'")- ->toContain("'brandIcon' => 'telegram'")- ->toContain("'brandIcon' => 'slack'")- ->toContain("'brandIcon' => 'pushover'")- ->not->toContain("'color' =>");-- expect($navbar)- ->toContain("request()->routeIs('notifications.*')")- ->not->toContain("['label' => 'Discord', 'route' => 'notifications.discord'");-});--it('keeps telegram forum topics separate from event multiselects', function () {- $grid = file_get_contents(resource_path('views/components/notification/event-grid.blade.php'));- $telegram = file_get_contents(resource_path('views/livewire/notifications/telegram.blade.php'));-- expect($telegram)- ->toContain('channel="telegram" threaded');-- expect($grid)- ->toContain('title="Notification events"')- ->toContain('title="Forum topics"')- ->toContain('Enable one or more events above to assign forum topic IDs.')- ->toContain('$enabledThreadEvents')- ->not->toContain('label="{{ $event[\'label\'] }} thread ID"')- ->not->toContain('border-l border-neutral-200 pl-3');-});--it('renders settings section descriptions in the header', function () {- $section = file_get_contents(resource_path('views/components/application/settings-section.blade.php'));-- expect($section)- ->toContain('filled($description)')- ->toContain('{{ $description }}');-});--it('uses action buttons and browser validation for notification channel state', function () {- $actions = file_get_contents(resource_path('views/components/notification/channel-actions.blade.php'));-- expect($actions)- ->toContain('{{ $enabled ? \'Disable\' : \'Enable\' }}')- ->toContain('reportValidity()')- // @js() must live on plain HTML (x-data), not on <x-forms.button> attributes —- // Blade leaves @js uncompiled inside component tag attributes, which breaks Alpine.- ->toContain('enabled: @js((bool) $enabled)')- ->toContain('enabledProperty: @js($enabledProperty)')- ->toContain('toggleMethod: @js($toggleMethod)')- ->toContain('testMethod: @js($testMethod)')- ->toContain('$wire.$set(enabledProperty, !enabled)')- ->toContain('$wire.$call(toggleMethod)')- ->toContain('$wire.$call(testMethod)')- ->not->toContain('$wire.$set(@js($enabledProperty)');-- foreach (['discord', 'telegram', 'slack', 'pushover', 'webhook'] as $channel) {- $view = file_get_contents(resource_path("views/livewire/notifications/{$channel}.blade.php"));-- expect($view)- ->toContain('<x-notification.channel-actions')- ->not->toContain("id=\"{$channel}Enabled\"");- }-});diff --git a/tests/Feature/PageTitleXlHiddenTest.php b/tests/Feature/PageTitleXlHiddenTest.phpdeleted file mode 100644index 29a9b43713..0000000000--- a/tests/Feature/PageTitleXlHiddenTest.php+++ /dev/null@@ -1,71 +0,0 @@-<?php--/**- * Family H1s hide when the desktop shell starts (lg+ fixed tabs + sidebar).- * Collection indexes always keep their title; resource in-flow titles only- * show below md (when the fixed resource tab bar is hidden).- */-test('dashboard navbar hides family titles at lg to match the desktop shell', function () {- expect(file_get_contents(resource_path('views/components/dashboard/navbar.blade.php')))- ->toContain("'titleOnDesktop' => false")- ->toContain("'lg:hidden' => ! \$titleOnDesktop")- ->toContain('lg:h-12')- ->not->toContain('lg:h-10');-});--test('fixed layer-2 spacers match the fixed bar height', function () {- $paths = [- resource_path('views/components/dashboard/navbar.blade.php'),- resource_path('views/livewire/server/navbar.blade.php'),- resource_path('views/livewire/project/application/heading.blade.php'),- resource_path('views/livewire/project/database/heading.blade.php'),- resource_path('views/livewire/project/service/heading.blade.php'),- ];-- foreach ($paths as $path) {- $blade = file_get_contents($path);- expect($blade)->toContain('lg:h-12');- expect($blade)->not->toContain('lg:h-10');- expect($blade)->not->toContain('lg:block lg:h-5');- }-});--test('resource in-flow titles show until the desktop topbar takes over at lg', function () {- $paths = [- resource_path('views/livewire/server/navbar.blade.php'),- resource_path('views/livewire/project/application/heading.blade.php'),- resource_path('views/livewire/project/database/heading.blade.php'),- resource_path('views/livewire/project/service/heading.blade.php'),- ];-- foreach ($paths as $path) {- $blade = file_get_contents($path);-- expect($blade)- ->toContain('w-full lg:hidden')- ->toContain('w-full md:hidden')- ->not->toContain('w-full xl:hidden');- }-});--test('slide-over shells do not reserve layout space', function () {- expect(file_get_contents(resource_path('views/components/slide-over.blade.php')))- ->toContain("'class' => 'contents'")- ->not->toContain('relative w-auto h-auto');-});--test('collection index headers stack so title and actions never overlap', function () {- $paths = [- resource_path('views/livewire/server/index.blade.php'),- resource_path('views/livewire/project/index.blade.php'),- resource_path('views/source/all.blade.php'),- resource_path('views/livewire/destination/index.blade.php'),- resource_path('views/livewire/storage/index.blade.php'),- ];-- foreach ($paths as $path) {- expect(file_get_contents($path))- ->toContain('flex-col gap-3 sm:flex-row')- ->toContain('text-[24px]!');- }-});diff --git a/tests/Feature/PrivateKeyIndexNavbarActionsTest.php b/tests/Feature/PrivateKeyIndexNavbarActionsTest.phpdeleted file mode 100644index 55e96cb8bc..0000000000--- a/tests/Feature/PrivateKeyIndexNavbarActionsTest.php+++ /dev/null@@ -1,70 +0,0 @@-<?php--/**- * Security / notifications family: mobile-only H1 on list views; list actions live in card headers.- * Detail views keep the resource title on desktop.- */-test('security navbar defaults to hiding the title on desktop', function () {- $securityNavbar = file_get_contents(resource_path('views/components/security/navbar.blade.php'));- $notificationNavbar = file_get_contents(resource_path('views/components/notification/navbar.blade.php'));-- expect($securityNavbar)- ->toContain("'titleOnDesktop' => false")- ->toContain(':titleOnDesktop="$titleOnDesktop"');-- expect($notificationNavbar)- ->toContain("'titleOnDesktop' => false")- ->toContain(':titleOnDesktop="$titleOnDesktop"');-});--test('security list views place create actions in collection card headers', function () {- $pages = [- resource_path('views/livewire/security/private-key/index.blade.php') => [- 'New private key',- 'New key',- 'Delete unused keys',- 'Delete unused',- ],- resource_path('views/livewire/security/cloud-provider-tokens.blade.php') => [- 'New token',- ],- resource_path('views/livewire/security/cloud-init-scripts.blade.php') => [- 'New script',- ],- ];-- foreach ($pages as $path => $labels) {- $blade = file_get_contents($path);-- expect($blade)- ->toContain('<x-application.settings-section')- ->toContain('<x-slot:actions>')- ->not->toContain('<x-slot:titleActions>');-- foreach ($labels as $label) {- expect($blade)->toContain($label);- }- }-});--test('layer-2 navbar stacks tabs and actions on small screens', function () {- $navbar = file_get_contents(resource_path('views/components/dashboard/navbar.blade.php'));-- expect($navbar)- ->toContain('flex-col gap-2 sm:flex-row')- ->toContain('[&_.button]:whitespace-nowrap');-});--test('security detail views keep the resource title on desktop', function () {- $shows = [- resource_path('views/livewire/security/private-key/show.blade.php'),- resource_path('views/livewire/security/cloud-provider-token/show.blade.php'),- resource_path('views/livewire/security/cloud-init-script/show.blade.php'),- ];-- foreach ($shows as $path) {- expect(file_get_contents($path))- ->toContain(':titleOnDesktop="true"')- ->toContain('<x-slot:actions>');- }-});diff --git a/tests/Feature/ProcessDialogTest.php b/tests/Feature/ProcessDialogTest.phpdeleted file mode 100644index 66e1e9ccc8..0000000000--- a/tests/Feature/ProcessDialogTest.php+++ /dev/null@@ -1,80 +0,0 @@-<?php--/**- * Centered process dialog used for startup / activity log streams.- */-test('process dialog shells use display contents so event-only hosts take no layout space', function () {- $component = file_get_contents(resource_path('views/components/process-dialog.blade.php'));-- expect($component)- ->toContain("'class' => 'contents'")- ->toContain('processDialogOpen')- ->toContain('role="dialog"')- ->toContain('items-center justify-center')- ->toContain('min-h-[min(70dvh,28rem)]')- ->toContain('sm:min-w-[32rem]')- ->not->toContain('translate-x-full');-});--test('service database and proxy startup use the centered process dialog', function () {- $paths = [- resource_path('views/livewire/project/service/heading.blade.php'),- resource_path('views/livewire/project/database/heading.blade.php'),- resource_path('views/livewire/server/navbar.blade.php'),- ];-- foreach ($paths as $path) {- expect(file_get_contents($path))- ->toContain('<x-process-dialog')- ->toContain('processDialogOpen = true')- ->not->toContain('<x-slide-over @start');- }-});--test('process dialog body styles support a full-height log surface', function () {- $css = file_get_contents(resource_path('css/app.css'));-- expect($css)- ->toContain('.process-dialog')- ->toContain('.process-dialog-body')- ->toContain('min-height: min(70dvh, 28rem)');-});--test('runtime log terminal fills the available dialog width', function () {- $view = file_get_contents(resource_path('views/livewire/project/shared/get-logs.blade.php'));-- expect($view)->toContain("<div @class(['w-full min-w-0', 'runtime-log-shell' => \$collapsible])>");-});--test('process and log viewers use centered dialogs', function () {- $paths = [- resource_path('views/livewire/project/service/index.blade.php'),- resource_path('views/livewire/project/database/keydb/general.blade.php'),- resource_path('views/livewire/project/database/redis/general.blade.php'),- resource_path('views/livewire/project/database/postgresql/general.blade.php'),- resource_path('views/livewire/project/database/clickhouse/general.blade.php'),- resource_path('views/livewire/project/database/mongodb/general.blade.php'),- resource_path('views/livewire/project/database/dragonfly/general.blade.php'),- resource_path('views/livewire/project/database/mariadb/general.blade.php'),- resource_path('views/livewire/project/database/mysql/general.blade.php'),- resource_path('views/livewire/server/security/patches.blade.php'),- resource_path('views/livewire/server/cloudflare-tunnel.blade.php'),- ];-- foreach ($paths as $path) {- expect(file_get_contents($path))- ->toContain('<x-process-dialog')- ->not->toContain('<x-slide-over');- }-- expect(file_get_contents(resource_path('views/livewire/server/show.blade.php')))- ->not->toContain('<x-slide-over');-});--test('process dialog can start open for an in-progress operation', function () {- $component = file_get_contents(resource_path('views/components/process-dialog.blade.php'));-- expect($component)- ->toContain("'open' => false")- ->toContain('processDialogOpen: @js($open)');-});diff --git a/tests/Feature/ProfileAppearanceNavigationTest.php b/tests/Feature/ProfileAppearanceNavigationTest.phpdeleted file mode 100644index fdba4e9916..0000000000--- a/tests/Feature/ProfileAppearanceNavigationTest.php+++ /dev/null@@ -1,56 +0,0 @@-<?php--it('uses the account menu as the only profile navigation', function () {- $routes = file_get_contents(base_path('routes/web.php'));- $profileView = file_get_contents(resource_path('views/livewire/profile/index.blade.php'));-- expect($routes)- ->toContain("Route::get('/profile/appearance', ProfileAppearance::class)->name('profile.appearance')")- ->and($profileView)- ->not->toContain('<x-profile.navbar />')- ->not->toContain('<h1>Profile</h1>\n <div class="subtitle -mt-2">');-});--it('opens the email change form without a Livewire request', function () {- $profileView = file_get_contents(resource_path('views/livewire/profile/index.blade.php'));-- expect($profileView)- ->toContain('@click="openEmailModal()"')- ->toContain('this.$refs.newEmailInput?.focus()')- ->toContain('x-ref="newEmailInput"')- ->toContain('x-show="emailModalOpen"')- ->toContain('x-teleport="body"')- ->toContain('Change email')- ->toContain('Send code')- ->toContain('Verify email')- ->not->toContain('>Cancel</x-forms.button>')- ->not->toContain('wire:click="showEmailChangeForm"');-});--it('shows the two-factor authentication state as a header badge', function () {- $profileView = file_get_contents(resource_path('views/livewire/profile/index.blade.php'));-- expect($profileView)- ->toContain('<x-status-badge status="Enabled" type="success" />');-});--it('offers full and centered page width preferences on the profile appearance view', function () {- $appearanceView = file_get_contents(resource_path('views/livewire/profile/appearance.blade.php'));- $appLayout = file_get_contents(resource_path('views/layouts/app.blade.php'));-- expect($appearanceView)- ->not->toContain('<x-profile.navbar />')- ->toContain('Color theme')- ->toContain('Page width')- ->toContain("pageWidth: localStorage.getItem('pageWidth') || 'full'")- ->toContain("['value' => 'full'")- ->toContain("['value' => 'centered'")- ->toContain("@click=\"setWidth('{{ \$option['value'] }}')\"")- ->toContain("localStorage.setItem('pageWidth', width)")- ->not->toContain('Interface density')- ->not->toContain('setZoom(')- ->and($appLayout)- ->toContain("pageWidth: localStorage.getItem('pageWidth') || 'full'")- ->toContain('@page-width-changed.window="pageWidth = $event.detail"')- ->toContain("pageWidth === 'centered' ? 'mx-auto max-w-[1400px]' : 'max-w-none'");-});diff --git a/tests/Feature/ProjectEnvironmentPageHeaderTest.php b/tests/Feature/ProjectEnvironmentPageHeaderTest.phpdeleted file mode 100644index 29e64b66dc..0000000000--- a/tests/Feature/ProjectEnvironmentPageHeaderTest.php+++ /dev/null@@ -1,65 +0,0 @@-<?php--/**- * Project and environment pages carry their own page header instead of a- * layer-2 bar. The former `x-project.navbar` rendered a single "Resources"- * tab that was only ever active on `project.resource.index` (a page that did- * not render the bar), and rendered nothing at all without an environment.- */-$projectPages = [- 'views/livewire/project/show.blade.php',- 'views/livewire/project/edit.blade.php',- 'views/livewire/project/environment-edit.blade.php',- 'views/livewire/project/clone-me.blade.php',-];--it('drops the project layer-2 bar that never matched the current route', function () use ($projectPages) {- expect(file_exists(resource_path('views/components/project/navbar.blade.php')))->toBeFalse();-- foreach ($projectPages as $page) {- expect(file_get_contents(resource_path($page)))- ->not->toContain('<x-project.navbar')- ->not->toContain('resource-heading-navbar');- }-});--it('gives every project and environment page an in-flow title', function () use ($projectPages) {- foreach ($projectPages as $page) {- expect(file_get_contents(resource_path($page)))- ->toContain('<h1 class="truncate text-[24px]! leading-7! font-semibold! tracking-tight!">')- ->toContain('class="mt-1 text-[13px] text-neutral-500 dark:text-fg-dim"');- }-});--it('keeps the environment clone action in the page header', function () {- $view = file_get_contents(resource_path('views/livewire/project/environment-edit.blade.php'));-- expect($view)- ->toContain('{{ $environment->name }}</h1>')- ->toContain('Environment settings in {{ $project->name }}')- ->toContain('Clone environment')- // The action moved out of the card header into the page header.- ->toMatch('/<header[^>]*>.*Clone environment.*<\/header>/s');-});--it('does not repeat the resources action outside the resources page', function () {- foreach (['views/livewire/project/environment-edit.blade.php', 'views/livewire/project/clone-me.blade.php'] as $page) {- expect(file_get_contents(resource_path($page)))->not->toContain('New resource');- }-- expect(file_get_contents(resource_path('views/livewire/project/resource/index.blade.php')))- ->toContain('New resource');-});--it('uses a stable class for the environment resource count on mobile', function () {- $view = file_get_contents(resource_path('views/livewire/project/show.blade.php'));- $css = file_get_contents(resource_path('css/app.css'));-- expect($view)- ->toContain('class="environment-resource-count">Resources</div>')- ->toContain('class="environment-resource-count text-[12px]');-- expect($css)- ->toContain('.environments-table-grid .environment-resource-count')- ->not->toContain('.environments-table-grid > :nth-child(2)');-});diff --git a/tests/Feature/ProjectNewSelectAccentTest.php b/tests/Feature/ProjectNewSelectAccentTest.phpdeleted file mode 100644index 13da2e5c27..0000000000--- a/tests/Feature/ProjectNewSelectAccentTest.php+++ /dev/null@@ -1,9 +0,0 @@-<?php--it('uses the Coollabs gradient button treatment for deploy actions', function () {- $view = file_get_contents(resource_path('views/livewire/project/new/select.blade.php'));-- expect($view)- ->not->toContain('dark:group-hover:text-warning')- ->and(substr_count($view, 'class="button button-highlighted ml-auto"'))->toBe(4);-});diff --git a/tests/Feature/ProxyConfigurationLoadingStateTest.php b/tests/Feature/ProxyConfigurationLoadingStateTest.phpdeleted file mode 100644index f5779e0ac5..0000000000--- a/tests/Feature/ProxyConfigurationLoadingStateTest.php+++ /dev/null@@ -1,30 +0,0 @@-<?php--it('disables proxy configuration controls and covers the editor while saving', function () {- $view = file_get_contents(resource_path('views/livewire/server/proxy.blade.php'));-- expect($view)- ->toContain('wire:loading.attr="disabled"')- ->toContain('wire:target="submit,resetProxyConfiguration"')- ->toContain('wire:loading.class="pointer-events-none opacity-50"')- ->toContain('Updating proxy configuration')- ->toContain('aria-live="polite"');-});--it('loads only the compose file from the frontend and shows the shared loading indicator', function () {- $page = file_get_contents(resource_path('views/livewire/server/proxy/show.blade.php'));- $proxy = file_get_contents(resource_path('views/livewire/server/proxy.blade.php'));- $component = file_get_contents(app_path('Livewire/Server/Proxy.php'));-- expect($page)- ->toContain('<livewire:server.proxy :server="$server" />')- ->not->toContain('<livewire:server.proxy :server="$server" lazy />');-- expect($proxy)- ->toContain('x-init="$wire.loadProxyConfiguration()"')- ->toContain('wire:loading.flex wire:target="loadProxyConfiguration"')- ->toContain('<x-loading text="Loading proxy configuration…" />');-- expect($component)- ->not->toContain('$this->loadProxyConfiguration();');-});diff --git a/tests/Feature/ResourceDetailsVisibilityTest.php b/tests/Feature/ResourceDetailsVisibilityTest.phpdeleted file mode 100644index e11c86fe99..0000000000--- a/tests/Feature/ResourceDetailsVisibilityTest.php+++ /dev/null@@ -1,63 +0,0 @@-<?php--use Illuminate\Support\Facades\Blade;-use Illuminate\Support\MessageBag;-use Illuminate\Support\ViewErrorBag;--beforeEach(function () {- $errors = new ViewErrorBag;- $errors->put('default', new MessageBag);- view()->share('errors', $errors);-});--it('keeps the resource details helper text visible below the modal header', function () {- $html = view('livewire.project.shared.resource-details', [- 'resource' => (object) [- 'name' => 'Crash Loop Example',- 'uuid' => 'crashloop',- ],- 'environment_uuid' => null,- 'environment_name' => null,- 'project_uuid' => null,- 'project_name' => null,- 'server_uuid' => null,- 'server_name' => null,- 'stack_applications' => [],- 'stack_databases' => [],- ])->render();-- expect($html)- ->toContain('readonly')- ->toContain('pt-1')- ->not->toContain('-mt-4');-});--it('renders copy fields as visible readonly controls with an accessible copy action', function () {- $html = Blade::render('<x-forms.copy-input label="UUID" text="crashloop" />');-- expect($html)- ->toContain('label class="flex gap-1 items-center mb-1 text-sm font-medium text-black dark:text-white"')- ->toContain('readonly')- ->toContain('x-data="copyButton"')- ->toContain('input-with-copy-button')- ->toContain('aria-label="Copy to clipboard"')- ->toContain('title="Copy to clipboard"');-});--it('uses the shared copy button for newly issued api tokens', function () {- $blade = file_get_contents(resource_path('views/livewire/security/api-tokens.blade.php'));-- expect($blade)- ->toContain('<x-copy-button :value="session(\'token\')"')- ->not->toContain('navigator.clipboard');-});--it('keeps copy button padding above settings-workspace input overrides', function () {- $css = file_get_contents(resource_path('css/app.css'));-- expect($css)- ->toContain('.input.input-with-copy-button')- ->toContain('.application-settings-workspace .input.input-with-copy-button')- ->toContain('.application-settings-form .input.input-with-copy-button')- ->toContain('padding-right: 2.5rem');-});diff --git a/tests/Feature/ResourceHeadingOverflowTest.php b/tests/Feature/ResourceHeadingOverflowTest.phpdeleted file mode 100644index e8f2b61e61..0000000000--- a/tests/Feature/ResourceHeadingOverflowTest.php+++ /dev/null@@ -1,36 +0,0 @@-<?php--it('collapses resource header actions only when the top bar cannot fit them', function () {- $overflow = file_get_contents(resource_path('views/components/resource-heading-overflow.blade.php'));- $css = file_get_contents(resource_path('css/app.css'));-- expect($overflow)- ->toContain('data-resource-heading-overflow')- ->toContain('measureInlineWidth')- ->toContain('availableWidth')- ->toContain('reserved += 200')- ->toContain('hudSiblings')- ->toContain('Actions')- ->toContain('listbox-panel top-full! right-0! left-auto!')- ->toContain("\$dispatch('resource-actions-toggled', { open })");-- expect($css)- ->toContain('.resource-heading-overflow-items')- ->toContain('.resource-heading-overflow-items.is-measuring')- ->toContain('.resource-heading-overflow.is-collapsed');-});--it('uses the overflow group for application, service, database, and server desktop actions', function () {- $files = [- resource_path('views/livewire/project/application/heading.blade.php') => 'application-desktop-actions',- resource_path('views/livewire/project/service/heading.blade.php') => 'service-desktop-actions',- resource_path('views/livewire/project/database/heading.blade.php') => 'database-desktop-actions',- resource_path('views/livewire/server/navbar.blade.php') => 'server-desktop-actions',- ];-- foreach ($files as $path => $id) {- expect(file_get_contents($path))- ->toContain('<x-resource-heading-overflow')- ->toContain($id);- }-});diff --git a/tests/Feature/ResourceHeadingUnifiedNavbarTest.php b/tests/Feature/ResourceHeadingUnifiedNavbarTest.phpdeleted file mode 100644index e68b9fde7f..0000000000--- a/tests/Feature/ResourceHeadingUnifiedNavbarTest.php+++ /dev/null@@ -1,737 +0,0 @@-<?php--/**- * Resource layer-2 navs use one unified pill bar: menus on the left, actions on the right.- */-it('uses a single unified navbar for application, service, database, and server headings', function () {- $files = [- resource_path('views/livewire/project/application/heading.blade.php'),- resource_path('views/livewire/project/service/heading.blade.php'),- resource_path('views/livewire/project/database/heading.blade.php'),- resource_path('views/livewire/server/navbar.blade.php'),- ];-- foreach ($files as $path) {- $contents = file_get_contents($path);-- expect($contents)->toContain('resource-heading-navbar');- }-- $application = file_get_contents(resource_path('views/livewire/project/application/heading.blade.php'));- expect($application)- ->toContain('justify-start')- ->toContain('xl:justify-end')- ->toContain('xl:w-auto')- ->toContain("@teleport('#resource-action-hud-slot')")- ->not->toContain('xl:fixed')- ->not->toContain('xl:top-14')- ->toContain('xl:hidden')- ->not->toContain('application-primary-tabs')- ->not->toContain("typeof collapsed !== 'undefined'")- ->not->toContain('Spacer: in-flow stand-in')- ->not->toContain('hidden lg:block lg:h-12')- ->not->toContain('border-l border-neutral-200 pl-1');-});--it('uses interactive status summaries in mobile resource headings', function () {- $headings = [- resource_path('views/livewire/project/application/heading.blade.php'),- resource_path('views/livewire/project/database/heading.blade.php'),- resource_path('views/livewire/project/service/heading.blade.php'),- ];-- foreach ($headings as $path) {- $mobileHeading = str(file_get_contents($path))- ->after('<div class="mb-3 w-full xl:hidden">')- ->before('<div class="w-full xl:hidden">')- ->toString();-- expect($mobileHeading)- ->toContain('flex min-w-0 flex-col items-start gap-2')- ->toContain('min-w-0 max-w-full truncate')- ->toContain('<x-status-summary')- ->not->toContain('<x-status-badge');- }-});--it('docks desktop resource actions in the top bar instead of floating over content', function () {- $layout = file_get_contents(resource_path('views/layouts/app.blade.php'));- $files = [- resource_path('views/livewire/project/application/heading.blade.php'),- resource_path('views/livewire/project/service/heading.blade.php'),- resource_path('views/livewire/project/database/heading.blade.php'),- resource_path('views/livewire/server/navbar.blade.php'),- ];-- expect($layout)->toContain('id="resource-action-hud-slot"');-- foreach ($files as $path) {- $contents = file_get_contents($path);-- expect($contents)- ->toContain("@teleport('#resource-action-hud-slot')")- ->not->toContain('xl:fixed xl:top-14 xl:right-4');-- $desktopHud = str($contents)->after("@teleport('#resource-action-hud-slot')")->before('@endteleport')->toString();-- expect($desktopHud)- ->not->toContain('rounded-[10px]')- ->not->toContain('border-neutral-200')- ->not->toContain('bg-neutral-100')- ->not->toContain('dark:bg-white/[0.035]');- }-});--it('shows disabled deploy actions when service variables are missing', function () {- $heading = file_get_contents(resource_path('views/livewire/project/service/heading.blade.php'));- $mobileActions = str($heading)- ->after('<div class="w-full xl:hidden">')- ->before("@teleport('#resource-action-hud-slot')")- ->toString();- $desktopActions = str($heading)- ->after("@teleport('#resource-action-hud-slot')")- ->before('@endteleport')- ->toString();-- expect($mobileActions)- ->toContain('id="service-mobile-actions"')- ->toContain('aria-disabled="true"')- ->toContain('Deploy')- ->toContain('missing required env vars')- ->toContain('href="{{ $environmentVariablesUrl }}"')- ->toContain('underline')- ->and($desktopActions)- ->toContain('id="service-desktop-actions"')- ->toContain('aria-disabled="true"')- ->toContain('Deploy')- ->toContain('missing required env vars')- ->toContain('href="{{ $environmentVariablesUrl }}"')- ->toContain('underline');-});--it('places the account menu beside the desktop sidebar toggle while retaining it on mobile', function () {- $layout = file_get_contents(resource_path('views/layouts/app.blade.php'));- $navbar = file_get_contents(resource_path('views/components/navbar.blade.php'));- $accountMenu = file_get_contents(resource_path('views/components/top-user-menu.blade.php'));-- expect($layout)- ->not->toContain("{{-- Right cluster --}}\n <x-top-user-menu />")- ->toContain('<x-top-user-menu />')- ->toContain('flex grow min-w-0 flex-col overflow-visible');-- expect(substr_count($layout, '<x-top-user-menu />'))->toBe(1);-- expect($navbar)- ->toContain('<x-top-user-menu sidebar />')- ->toContain('Toggle sidebar')- ->toContain("collapsed ? 'flex-col-reverse justify-center'");-- expect($accountMenu)- ->toContain("'sidebar' => false")- ->toContain("'bottom-full! left-0! right-auto! top-auto! mb-1!' => \$sidebar");-});--it('keeps advanced operations in a dedicated Advanced dropdown', function () {- $application = file_get_contents(resource_path('views/livewire/project/application/heading.blade.php'));- $service = file_get_contents(resource_path('views/livewire/project/service/heading.blade.php'));- $applicationAdvanced = file_get_contents(resource_path('views/components/applications/advanced.blade.php'));- $serviceAdvanced = file_get_contents(resource_path('views/components/services/advanced.blade.php'));- $links = file_get_contents(resource_path('views/components/applications/links.blade.php'));-- $applicationDesktop = str($application)->after('resource-heading-actions flex')->toString();- $serviceDesktop = str($service)->after('resource-heading-actions flex')->toString();-- expect($applicationDesktop)- ->toContain('application-desktop-actions')- ->toContain('Deploy (without cache)')- ->not->toContain('<x-applications.advanced')- ->not->toContain('resource-heading-overflow-separator')- ->not->toContain('Force deploy without cache')- ->and($serviceDesktop)- ->toContain('service-desktop-actions')- ->toContain('Force Deploy')- ->toContain('Force Cleanup Containers')- ->toContain('Restart current version')- ->toContain('Pull latest and restart')- ->not->toContain('resource-heading-overflow-separator')- ->not->toContain('Pull Latest Images & Restart');-- expect(strpos($applicationDesktop, '<x-applications.links'))- ->toBeLessThan(strpos($applicationDesktop, 'application-desktop-actions'));-- expect(strpos($serviceDesktop, '<x-services.links'))- ->toBeLessThan(strpos($serviceDesktop, 'service-desktop-actions'));-- expect($applicationAdvanced)- ->toContain('Advanced')- ->toContain('name="grid"')- ->not->toContain('Force deploy without cache')- ->and($serviceAdvanced)- ->toContain('Advanced')- ->toContain('name="grid"')- ->not->toContain('Pull Latest Images & Restart')- ->not->toContain('Pull latest and restart')- ->toContain('Force Restart')- ->toContain('Force Deploy')- ->toContain('Force Cleanup Containers')- ->and($links)->toContain("'right-0! left-auto! min-w-60! max-w-96!' => !\$fullWidth")- ->and($links)->toContain('listbox-option justify-start! gap-2.5!')- ->and($links)->not->toContain('md:left-0 md:right-auto');-- // Desktop layer uses exactly one unified pill bar (mobile section may still use its own pill).- expect(substr_count($application, 'resource-heading-navbar'))->toBe(1);-});--it('groups desktop application lifecycle controls in one split control', function () {- $heading = file_get_contents(resource_path('views/livewire/project/application/heading.blade.php'));- $desktop = str($heading)->after('resource-heading-actions flex')->toString();-- expect($desktop)- ->toContain('application-desktop-actions')- ->toContain('<x-split-action')- ->toContain('<x-slot:main')- ->toContain('listbox-option')- ->toContain('Deploy')- ->toContain('Restart')- ->toContain('Stop')- ->not->toContain('<x-resource-heading-overflow')- ->not->toContain('<x-applications.deploy');-});--it('raises the desktop top bar while any resource dropdown is open', function () {- $layout = file_get_contents(resource_path('views/layouts/app.blade.php'));- $dropdowns = [- resource_path('views/components/resource-heading-overflow.blade.php'),- resource_path('views/components/applications/links.blade.php'),- resource_path('views/components/services/links.blade.php'),- resource_path('views/components/applications/deploy.blade.php'),- resource_path('views/components/services/advanced.blade.php'),- resource_path('views/components/services/restart.blade.php'),- resource_path('views/components/server/advanced.blade.php'),- ];-- expect($layout)- ->toContain('resourceActionsOpen: false')- ->toContain("'z-[1000]': resourceActionsOpen")- ->toContain('@resource-actions-toggled.window="resourceActionsOpen = $event.detail.open"');-- foreach ($dropdowns as $dropdown) {- expect(file_get_contents($dropdown))- ->toContain("\$dispatch('resource-actions-toggled', { open })");- }-});--it('groups service restart options in the Actions dropdown', function () {- $heading = file_get_contents(resource_path('views/livewire/project/service/heading.blade.php'));- $desktop = str($heading)->after('resource-heading-actions flex')->toString();-- expect($desktop)- ->toContain('service-desktop-actions')- ->toContain('Restart current version')- ->toContain('Pull latest and restart')- ->toContain("\$wire.dispatch('pullAndRestartEvent')")- ->not->toContain('Pull Latest Images & Restart')- ->not->toContain('Restart (pull latest)')- ->not->toContain('<x-services.restart');-- $mobile = str($heading)->before("@teleport('#resource-action-hud-slot')")->toString();-- expect($mobile)- ->toContain('Restart')- ->toContain('Restart (pull latest)')- ->not->toContain('Pull Latest Images & Restart');-});--it('orders service restart actions before stop and advanced operations', function () {- $heading = file_get_contents(resource_path('views/livewire/project/service/heading.blade.php'));- $actions = str($heading)->after('id="service-desktop-actions"')->before('@else\n <a href')->toString();-- expect(strpos($actions, 'Restart current version'))- ->toBeLessThan(strpos($actions, 'Pull latest and restart'))- ->and(strpos($actions, 'Pull latest and restart'))- ->toBeLessThan(strpos($actions, 'Stop'));-});--it('promotes the primary application action in the desktop split control', function () {- $heading = file_get_contents(resource_path('views/livewire/project/application/heading.blade.php'));- $desktop = str($heading)->after('resource-heading-actions flex')->toString();-- expect($desktop)- ->toContain('id="application-desktop-actions"')- ->toContain('<x-slot:main wire:click="deploy">')- ->toContain('Deploy')- ->toContain('Deploy (without cache)')- ->not->toContain('Redeploy')- ->toContain('force_deploy_without_cache')- ->toContain('deploy(true)');-- $mobile = str($heading)->before("@teleport('#resource-action-hud-slot')")->toString();-- expect($mobile)- ->toContain('Deploy (without cache)')- ->not->toContain('Force deploy without cache');-});--it('shows stop in application action menus when the application is exited', function () {- $heading = file_get_contents(resource_path('views/livewire/project/application/heading.blade.php'));- $desktopExitedActions = str($heading)- ->after("@if (str(\$application->status)->startsWith('exited'))")- ->before('@else')- ->toString();-- $mobileActions = str($heading)- ->after('id="application-mobile-actions"')- ->before('<div class="hidden" aria-hidden="true">')- ->toString();-- expect($mobileActions)->toContain('application-mobile-stop-trigger')- ->and($desktopExitedActions)->toContain('application-mobile-stop-trigger')- ->and($mobileActions)->toContain('Deploy (without cache)')- ->and(strrpos($mobileActions, 'Deploy (without cache)'))- ->toBeLessThan(strrpos($mobileActions, 'application-mobile-stop-trigger'));-});--it('uses the same deploy labels in the mobile and desktop application action menus', function () {- $heading = file_get_contents(resource_path('views/livewire/project/application/heading.blade.php'));- $actions = str($heading)->after('id="application-desktop-actions"')->before('@endteleport')->toString();- $mobileActions = str($heading)->after('id="application-mobile-actions"')->before("@teleport('#resource-action-hud-slot')")->toString();-- expect($actions)- ->toContain('Deploy')- ->toContain('Deploy (without cache)')- ->not->toContain('Redeploy')- ->toContain("str(\$application->status)->startsWith('running') ? 'force_deploy_without_cache' : 'deploy(true)'")- ->and($mobileActions)- ->toContain('Deploy')- ->toContain('Deploy (without cache)')- ->not->toContain('Redeploy');-});--it('uses the shared Coollabs gradient for primary resource actions in the desktop header', function () {- $css = file_get_contents(resource_path('css/app.css'));-- expect($css)- ->toContain('.application-heading-actions .button-highlighted')- ->toContain('@apply button-highlighted;');-});--it('promotes a primary action for service and proxy lifecycle controls', function () {- foreach ([- resource_path('views/livewire/project/service/heading.blade.php') => 'service-desktop-actions',- resource_path('views/livewire/server/navbar.blade.php') => 'server-desktop-actions',- ] as $path => $id) {- $heading = file_get_contents($path);- $control = str($heading)->after("id=\"{$id}\"")->before('</x-split-action>')->toString();-- expect($control)- ->toContain('<x-slot:main')- ->toContain('listbox-option');- }-});--it('links the Traefik dashboard beside the server actions instead of inside the dropdown', function () {- $navbar = file_get_contents(resource_path('views/livewire/server/navbar.blade.php'));- $desktopActions = str($navbar)->after('id="server-desktop-actions"')->before('</x-split-action>')->toString();- $mobileActions = str($navbar)->after('id="server-mobile-actions"')->before('</x-split-action>')->toString();-- expect($desktopActions)->not->toContain('Traefik')- ->and($mobileActions)->not->toContain('Traefik')- ->and($navbar)->toContain('Traefik Dashboard');-});--it('keeps database lifecycle controls direct and highlights the primary action', function () {- $heading = file_get_contents(resource_path('views/livewire/project/database/heading.blade.php'));- $desktop = str($heading)->after('resource-heading-actions flex')->before('@endteleport')->toString();-- expect($desktop)- ->toContain('<x-split-action')- ->toContain('<x-slot:main')- ->toContain('Restart')- ->toContain('Stop')- ->not->toContain('<x-resource-heading-overflow');-});--it('renders configuration warnings as navbar popovers instead of floating notifications', function () {- $checker = file_get_contents(resource_path('views/livewire/project/shared/configuration-checker.blade.php'));- $warning = file_get_contents(resource_path('views/components/configuration-warning.blade.php'));-- expect($checker)- ->toContain("@teleport('#configuration-warning-hud-slot')")- ->toContain("@teleport('#configuration-warning-hud-slot-mobile')")- ->toContain('<x-configuration-warning :diff="$configurationDiff" />')- ->not->toContain('<x-popup-small position="top-right"')- ->and($warning)- ->toContain('aria-label="Configuration changes not applied"')- ->toContain('<span class="hidden text-xs font-medium lg:inline">Changes pending</span>')- ->toContain('The latest configuration has not been applied')- ->toContain('fixed top-14 left-1/2')- ->toContain('-translate-x-1/2')- ->toContain('lg:absolute lg:top-full lg:right-0 lg:left-auto')- ->toContain('lg:translate-x-0')- ->toContain('@click.outside="open = false"')- ->toContain('@keydown.escape.window="open = false"')- ->toContain("\$dispatch('open-configuration-diff')");-});--it('renders only one configuration warning on database runtime logs', function () {- $logs = file_get_contents(resource_path('views/livewire/project/shared/logs.blade.php'));- $databaseHeading = file_get_contents(resource_path('views/livewire/project/database/heading.blade.php'));-- expect($logs)- ->not->toContain(" <livewire:project.shared.configuration-checker :resource=\"\$resource\" />\n\n @if (\$type === 'application')")- ->and($databaseHeading)- ->toContain('<livewire:project.shared.configuration-checker :resource="$database" />');-});--it('renders only one configuration warning on database and service terminal pages', function () {- $terminal = file_get_contents(resource_path('views/livewire/project/shared/execute-container-command.blade.php'));-- expect($terminal)- ->not->toContain("@elseif (\$type === 'database')\n <livewire:project.shared.configuration-checker :resource=\"\$resource\" />")- ->not->toContain("@elseif (\$type === 'service')\n <livewire:project.shared.configuration-checker :resource=\"\$resource\" />");-});--it('renders only one configuration warning on the service volume backups page', function () {- $volumeBackups = file_get_contents(resource_path('views/livewire/project/service/volume-backup/index.blade.php'));-- expect($volumeBackups)- ->not->toContain('<livewire:project.shared.configuration-checker :resource="$service" />')- ->toContain('<livewire:project.service.heading :service="$service"');-});--it('moves application backups from the top tabs into the settings sidebar', function () {- $heading = file_get_contents(resource_path('views/livewire/project/application/heading.blade.php'));- $configuration = file_get_contents(resource_path('views/livewire/project/application/configuration.blade.php'));- $backup = file_get_contents(resource_path('views/livewire/project/application/backup/index.blade.php'));-- expect($heading)->not->toContain("'label' => 'Backups'")- ->and($configuration)->toContain('<x-application.configuration-sidebar')- ->and($backup)->toContain('<x-application.configuration-sidebar');-});--it('moves application terminal and logs from the top tabs into the settings sidebar', function () {- $heading = file_get_contents(resource_path('views/livewire/project/application/heading.blade.php'));- $sidebar = file_get_contents(resource_path('views/components/application/configuration-sidebar.blade.php'));-- expect($heading)- ->not->toContain("'label' => 'Terminal'")- ->not->toContain("'label' => 'Deployment'")- ->not->toContain("'label' => 'Runtime'")- ->and($sidebar)- ->toContain("'label' => 'Terminal'")- ->toContain("'label' => 'Deployment Logs'")- ->toContain("'label' => 'Runtime Logs'")- ->toContain("'Observe & troubleshoot' => ['Runtime Logs', 'Deployment Logs', 'Terminal', 'Metrics', 'Analytics']")- ->toContain("'Operations' => ['Resource Operations', 'Resource Limits', 'Rollback'");-});--it('groups application automation pages separately from build and deploy', function () {- $sidebar = file_get_contents(resource_path('views/components/application/configuration-sidebar.blade.php'));-- expect($sidebar)- ->toContain("'Settings' => ['General', 'Domains', 'Environment Variables', 'Persistent Storage', 'Advanced', 'Swarm', 'Healthcheck']")- ->toContain("'Deploy' => ['Git Source', 'Servers', 'Preview Deployments']")- ->toContain("'Automation' => ['Scheduled Tasks', 'Webhooks', 'Backups']")- ->toContain("'Operations' => ['Resource Operations', 'Resource Limits', 'Rollback'");-});--it('centers the rollback image loading state across the card', function () {- $rollback = file_get_contents(resource_path('views/livewire/project/application/rollback.blade.php'));-- expect($rollback)- ->toContain('class="w-full" wire:target="loadImages" wire:loading')- ->toContain('flex items-center justify-center');-});--it('shows pull request loading feedback in the modal body', function () {- $previews = file_get_contents(resource_path('views/livewire/project/application/previews.blade.php'));-- expect($previews)- ->toContain('wire:click="load_prs"')- ->toContain('wire:loading.remove wire:target="load_prs"')- ->toContain('wire:loading wire:target="load_prs"')- ->toContain('Loading pull requests…');-});--it('shows loading feedback while a service deployment starts', function () {- $service = file_get_contents(resource_path('views/livewire/project/service/heading.blade.php'));-- expect($service)- ->toContain('deploying: false')- ->toContain('@service-deploy-finished.window="deploying = false"')- ->toContain('<x-loading-on-button x-show="deploying"')- ->toContain("window.dispatchEvent(new CustomEvent('service-deploy-finished'))");-});--it('uses neutral icons for non-destructive resource actions', function () {- foreach (['application', 'service', 'database'] as $resource) {- $heading = file_get_contents(resource_path("views/livewire/project/{$resource}/heading.blade.php"));-- expect($heading)- ->not->toContain('class="size-3.5 text-orange-500')- ->not->toContain('class="size-3.5 text-warning"')- ->not->toContain('class="size-4 text-warning"')- ->toContain('name="stop-circle"');- }-});--it('uses a circular stop icon in application and service action menus', function () {- $icons = file_get_contents(resource_path('views/components/reicon.blade.php'));-- expect($icons)- ->toContain("'stop-circle' =>")- ->toContain('<circle cx="12" cy="12"')- ->toContain('<rect x="8.25" y="8.25"');-- foreach (['application', 'service'] as $resource) {- $heading = file_get_contents(resource_path("views/livewire/project/{$resource}/heading.blade.php"));-- expect($heading)- ->toContain('name="stop-circle" class="size-3.5 text-error"')- ->not->toContain('name="stop" class="size-3.5 text-error"');- }-});--it('allows the shared empty state to control the storage backups background', function () {- $backups = file_get_contents(resource_path('views/livewire/project/application/backup/index.blade.php'));-- expect($backups)- ->toContain("'application-settings-section-body w-full'")- ->toContain("'is-flush' => \$backups->isNotEmpty()")- ->not->toContain('application-settings-section-body is-flush w-full bg-transparent!');-});--it('keeps the application settings sidebar below the fixed header while scrolling', function () {- $sidebar = file_get_contents(resource_path('views/components/application/configuration-sidebar.blade.php'));- $css = file_get_contents(resource_path('css/app.css'));-- // The desktop rail is fixed below the 3rem top bar and fills the rest of the viewport.- preg_match('/@media \(min-width: 1280px\) \{(?:(?!@media).)*?\n\s*\.application-settings-navigation \{([^}]*)\}/s', $css, $matches);- $railRule = $matches[1] ?? '';-- expect($sidebar)->toContain('application-settings-navigation')- ->and($railRule)->toContain('position: fixed;')- ->and($railRule)->toContain('top: 3rem;')- ->and($railRule)->toContain('height: calc(100dvh - 3rem);')- ->and($railRule)->toContain('overflow-y: auto;');-});--it('builds application sidebar routes independently of the current request route', function () {- $sidebar = file_get_contents(resource_path('views/components/application/configuration-sidebar.blade.php'));-- expect($sidebar)- ->not->toContain('get_route_parameters()')- ->toContain("'project_uuid' => \$application->environment->project->uuid")- ->toContain("'environment_uuid' => \$application->environment->uuid")- ->toContain("'application_uuid' => \$application->uuid");-});--it('welds the deployment log sidebar to the main sidebar', function () {- $deployment = file_get_contents(resource_path('views/livewire/project/application/deployment/show.blade.php'));- $css = file_get_contents(resource_path('css/app.css'));-- expect($deployment)->not->toContain(':flush="true"')- ->and($css)->toContain('left: var(--sidebar-w, 14rem);')- ->and($css)->toContain('position: fixed;');-});--it('uses the same mobile heading gap on application pages', function () {- $views = [- resource_path('views/livewire/project/application/configuration.blade.php'),- resource_path('views/livewire/project/application/backup/index.blade.php'),- resource_path('views/livewire/project/application/backup/show.blade.php'),- resource_path('views/livewire/project/application/deployment/show.blade.php'),- resource_path('views/livewire/project/shared/logs.blade.php'),- resource_path('views/livewire/project/shared/execute-container-command.blade.php'),- ];-- foreach ($views as $view) {- expect(file_get_contents($view))- ->toContain('application-settings-workspace mt-4')- ->toContain('lg:mt-0');- }-- expect(file_get_contents(resource_path('views/livewire/project/application/deployment/index.blade.php')))- ->toContain("'mt-4 max-w-none lg:mt-0' => ! \$embedded");-});--it('removes desktop top spacing from the deployment log viewer', function () {- $deployment = file_get_contents(resource_path('views/livewire/project/application/deployment/show.blade.php'));-- expect($deployment)->toContain("'mt-2 flex flex-1 min-h-0 flex-col overflow-hidden lg:mt-0'");-});--it('uses a distinct runtime log icon in the sidebar', function () {- $sidebar = file_get_contents(resource_path('views/components/application/configuration-sidebar.blade.php'));-- expect($sidebar)->toContain("'Runtime Logs' => 'unordered-list'");-});--it('shows deployment history above the selected deployment logs', function () {- $indexClass = file_get_contents(app_path('Livewire/Project/Application/Deployment/Index.php'));- $indexView = file_get_contents(resource_path('views/livewire/project/application/deployment/index.blade.php'));- $showView = file_get_contents(resource_path('views/livewire/project/application/deployment/show.blade.php'));-- expect($indexClass)- ->toContain('public bool $embedded = false;')- ->toContain('public ?string $selectedDeploymentUuid = null;')- ->and($indexView)- ->toContain("'data-table-row-active' => \$selectedDeploymentUuid")- ->and($showView)- ->toContain('<livewire:project.application.deployment.index :embedded="true"')- ->toContain(':selected-deployment-uuid="$deployment_uuid"');-});--it('fits the combined deployment history and logs within the desktop viewport', function () {- $indexClass = file_get_contents(app_path('Livewire/Project/Application/Deployment/Index.php'));- $showView = file_get_contents(resource_path('views/livewire/project/application/deployment/show.blade.php'));-- expect($indexClass)->toContain('$this->defaultTake = 3;')- ->and($showView)- ->toContain('min-h-[calc(100dvh-7.5rem)]')- ->toContain('xl:h-[32rem] xl:min-h-0 xl:flex-none')- ->toContain('overflow-hidden');-});--it('uses only the healthcheck toggle action to communicate enabled state', function () {- $healthcheck = file_get_contents(resource_path('views/livewire/project/shared/health-checks.blade.php'));-- expect($healthcheck)- ->not->toContain('<x-status-badge')- ->toContain('buttonTitle="Enable"')- ->toContain('Disable');-});--it('keeps Links dropdowns outside the scrollable tabs strip', function () {- $application = file_get_contents(resource_path('views/livewire/project/application/heading.blade.php'));- $service = file_get_contents(resource_path('views/livewire/project/service/heading.blade.php'));- $css = file_get_contents(resource_path('css/app.css'));- $tabsComponent = file_get_contents(resource_path('views/components/resource-heading-tabs.blade.php'));-- // Application Links are standalone on mobile and next to actions on desktop.- expect($application)- ->not->toContain('<x-resource-heading-tabs')- ->toContain('resource-heading-menus')- ->toContain('<x-applications.links');-- expect($service)- ->not->toContain('<x-resource-heading-tabs')- ->toContain('resource-heading-menus')- ->toContain('<x-services.links');-- expect($css)- ->toContain('.resource-heading-tabs::-webkit-scrollbar')- ->toContain('scrollbar-width: none')- ->toContain('.resource-heading-tabs-control')- ->toContain('.resource-heading-tabs-control-icon');-- // Kumo-style overflow chevrons live on the shared tabs component.- expect($tabsComponent)- ->toContain('Scroll tabs left')- ->toContain('Scroll tabs right')- ->toContain('scrollByDir')- ->toContain('canStart')- ->toContain('canEnd')- ->toContain('resource-heading-tabs-control is-start')- ->toContain('resource-heading-tabs-control is-end')- ->toContain('scrollActiveIntoView')- ->toContain('findActiveTab')- ->toContain('livewire:navigated');-});--it('shows an icon in application and service Links controls', function () {- $applicationLinks = file_get_contents(resource_path('views/components/applications/links.blade.php'));- $serviceLinks = file_get_contents(resource_path('views/components/services/links.blade.php'));- $serviceLinksComponent = file_get_contents(app_path('View/Components/Services/Links.php'));-- expect($applicationLinks)->toContain("@props(['application', 'fullWidth' => false, 'compact' => false])")- ->toContain('<x-reicon name="external-link"')- ->and($serviceLinksComponent)->toContain('public bool $fullWidth = false')- ->and($serviceLinks)- ->toContain('<x-reicon name="external-link"')- ->and($applicationLinks)->not->toContain('<x-external-link')- ->and($serviceLinks)->not->toContain('<x-external-link');-});--it('visually distinguishes production and pull request application links', function () {- $links = file_get_contents(resource_path('views/components/applications/links.blade.php'));-- expect($links)- ->toContain('Production')- ->toContain('PR #{{ data_get($preview, \'pull_request_id\') }}')- ->not->toContain("PR{{ data_get(\$preview, 'pull_request_id') }} |");-});--it('shows application Links as a compact badge beside the mobile status', function () {- $application = file_get_contents(resource_path('views/livewire/project/application/heading.blade.php'));- $applicationLinks = file_get_contents(resource_path('views/components/applications/links.blade.php'));- $mobileApplicationTitle = str($application)->between('class="mb-3 w-full xl:hidden"', '<div class="w-full xl:hidden">')->toString();- $mobileApplicationActions = str($application)->between('<div class="w-full xl:hidden">', '<div class="hidden" aria-hidden="true">')->toString();-- expect($mobileApplicationTitle)- ->toContain('<x-status-summary')- ->toContain('<x-applications.links')- ->toContain('relative flex w-full min-w-0 items-center gap-2')- ->toContain('compact')- ->not->toContain('full-width');-- expect($mobileApplicationActions)- ->not->toContain('<x-applications.links');-- expect($applicationLinks)- ->toContain("'compact' => false")- ->toContain("'static' => \$compact")- ->toContain("'inline-flex h-6 shrink-0 items-center gap-1.5 rounded-full border border-neutral-200 bg-neutral-100 px-2 text-xs font-medium leading-none text-neutral-700 dark:border-white/[0.12] dark:bg-white/[0.07] dark:text-white' => \$compact")- ->toContain('@unless ($compact)')- ->toContain("'left-1/2! right-auto! w-[calc(100vw-2rem)]! max-w-md! min-w-0! -translate-x-1/2' => \$compact")- ->toContain('<x-reicon name="chevron-down"');-});--it('shows service Links as a compact badge beside the mobile status', function () {- $service = file_get_contents(resource_path('views/livewire/project/service/heading.blade.php'));- $serviceLinks = file_get_contents(resource_path('views/components/services/links.blade.php'));- $serviceLinksComponent = file_get_contents(app_path('View/Components/Services/Links.php'));- $mobileServiceTitle = str($service)->between('class="mb-3 w-full xl:hidden"', '<div class="w-full xl:hidden">')->toString();- $mobileServiceActions = str($service)->between('<div class="w-full xl:hidden">', '@teleport')->toString();-- expect($mobileServiceTitle)- ->toContain('<x-status-summary')- ->toContain('<x-services.links')- ->toContain('relative flex w-full min-w-0 items-center gap-2')- ->toContain('compact')- ->not->toContain('full-width');-- expect($mobileServiceActions)- ->not->toContain('<x-services.links');-- expect($serviceLinksComponent)- ->toContain('public bool $compact = false');-- expect($serviceLinks)- ->toContain("'static' => \$compact")- ->toContain("'inline-flex h-6 shrink-0 items-center gap-1.5 rounded-full border border-neutral-200 bg-neutral-100 px-2 text-xs font-medium leading-none text-neutral-700 dark:border-white/[0.12] dark:bg-white/[0.07] dark:text-white' => \$compact")- ->toContain('@unless ($compact)')- ->toContain("'left-1/2! right-auto! w-[calc(100vw-2rem)]! max-w-md! min-w-0! -translate-x-1/2' => \$compact")- ->toContain('<x-reicon name="chevron-down"')- ->toContain('No links available');-- expect(substr_count($service, '<x-services.links'))->toBe(2);-});--it('uses overflow scroll arrows on resource heading navbars', function () {- $files = [- resource_path('views/livewire/server/navbar.blade.php'),- ];-- foreach ($files as $path) {- expect(file_get_contents($path))->toContain('<x-resource-heading-tabs');- }-});--it('renders dropdown chevrons smaller than regular button icons', function () {- $icons = file_get_contents(resource_path('views/components/reicon.blade.php'));-- expect($icons)- ->toContain("'chevron-down' => '<polyline points=\"5 9 12 16 19 9\"")- ->not->toContain('chevron-down\' => \'<g transform="scale(1.33333)"');-});diff --git a/tests/Feature/ResourceIndexDescriptionSubtitleTest.php b/tests/Feature/ResourceIndexDescriptionSubtitleTest.phpdeleted file mode 100644index eec80be0a2..0000000000--- a/tests/Feature/ResourceIndexDescriptionSubtitleTest.php+++ /dev/null@@ -1,20 +0,0 @@-<?php--test('resource table subtitle shows description only and never falls back to uuid', function () {- $view = file_get_contents(resource_path('views/livewire/project/resource/index.blade.php'));-- expect($view)- ->toContain('x-show="item.description"')- ->toContain('x-text="item.description"')- ->not->toContain('item.description || item.fqdn || item.uuid')- ->not->toContain('item.fqdn || item.uuid');-});--test('resource grid does not show a placeholder when a domain is missing', function () {- $view = file_get_contents(resource_path('views/livewire/project/resource/index.blade.php'));- $gridView = explode('x-show="viewMode === \'grid\'"', $view, 2)[1];-- expect($gridView)- ->not->toContain('x-show="!item.fqdn"')- ->not->toContain('>-</span>');-});diff --git a/tests/Feature/ResourceIndexFiltersTest.php b/tests/Feature/ResourceIndexFiltersTest.phpdeleted file mode 100644index de6375465f..0000000000--- a/tests/Feature/ResourceIndexFiltersTest.php+++ /dev/null@@ -1,38 +0,0 @@-<?php--it('provides dynamic multi-select resource filters', function () {- $view = file_get_contents(resource_path('views/livewire/project/resource/index.blade.php'));-- expect($view)- ->toContain('typeFilters: []')- ->toContain('tagFilters: []')- ->toContain('serverFilters: []')- ->toContain('statusFilters: []')- ->toContain('get filterGroups()')- ->toContain("label: 'Tags'")- ->toContain("label: 'Servers'")- ->toContain("label: 'Statuses'")- ->toContain('toggleFilter(group.key, option.value)')- ->toContain('clearFilters()')- ->toContain('Clear filters')- ->not->toContain("typeFilter: 'all'");-});--it('uses stable classes to hide resource table columns on mobile', function () {- $view = file_get_contents(resource_path('views/livewire/project/resource/index.blade.php'));- $css = file_get_contents(resource_path('css/app.css'));-- expect($view)- ->toContain('class="resource-type"')- ->toContain('class="resource-server"')- ->toContain('class="resource-type truncate')- ->toContain('class="resource-server truncate')- ->toContain('class="mobile-resource-domain min-w-0"');-- expect($css)- ->toContain('.environment-resource-grid .resource-type,')- ->toContain('.environment-resource-grid .resource-server')- ->toContain('.environment-resource-grid .mobile-resource-domain')- ->not->toContain('.environment-resource-grid > :nth-child(2),')- ->not->toContain('.environment-resource-grid > :nth-child(5)');-});diff --git a/tests/Feature/ResourceLimitsCpuDocsHeaderTest.php b/tests/Feature/ResourceLimitsCpuDocsHeaderTest.phpdeleted file mode 100644index cfa95e897d..0000000000--- a/tests/Feature/ResourceLimitsCpuDocsHeaderTest.php+++ /dev/null@@ -1,16 +0,0 @@-<?php--/**- * Docker CPU constraints docs link belongs in the CPU section header as a button.- */-test('resource limits cpu docs link is a header action button', function () {- $view = file_get_contents(resource_path('views/livewire/project/shared/resource-limits.blade.php'));-- expect($view)- ->toContain('<x-slot:actions>')- ->toContain('Docker CPU constraints')- ->toContain('https://docs.docker.com/engine/containers/resource_constraints/#cpu')- ->toContain('class="button"')- ->toContain('name="external-link"')- ->not->toContain('mt-4 inline-flex items-center gap-1 text-xs text-neutral-500');-});diff --git a/tests/Feature/ResourceLimitsIconTest.php b/tests/Feature/ResourceLimitsIconTest.phpdeleted file mode 100644index f8dfa89ee2..0000000000--- a/tests/Feature/ResourceLimitsIconTest.php+++ /dev/null@@ -1,21 +0,0 @@-<?php--/**- * Resource Limits nav must use the reicon "cpu" glyph (not subscription card).- */-test('application and database resource limits menus use the cpu icon', function () {- $application = file_get_contents(resource_path('views/livewire/project/application/configuration.blade.php'));- $database = file_get_contents(resource_path('views/livewire/project/database/configuration.blade.php'));- $reicon = file_get_contents(resource_path('views/components/reicon.blade.php'));-- expect($application)- ->toMatch("/'Resource Limits'\\s*=>\\s*'cpu'/")- ->not->toMatch("/'Resource Limits'\\s*=>\\s*'subscription'/");-- expect($database)- ->toMatch("/'label'\\s*=>\\s*'Resource Limits'[\\s\\S]{0,120}?'icon'\\s*=>\\s*'cpu'/")- ->not->toMatch("/'label'\\s*=>\\s*'Resource Limits'[\\s\\S]{0,120}?'icon'\\s*=>\\s*'subscription'/");-- expect($reicon)- ->toContain("'cpu' =>");-});diff --git a/tests/Feature/SecuritySettingsIconsTest.php b/tests/Feature/SecuritySettingsIconsTest.phpdeleted file mode 100644index 6bf9da201c..0000000000--- a/tests/Feature/SecuritySettingsIconsTest.php+++ /dev/null@@ -1,15 +0,0 @@-<?php--it('uses distinct icons for each keys and tokens navigation item', function () {- $layout = file_get_contents(resource_path('views/components/security/settings-layout.blade.php'));- $icons = file_get_contents(resource_path('views/components/reicon.blade.php'));-- expect($layout)- ->toContain("'label' => 'Private Keys'", "'icon' => 'keys'")- ->toContain("'label' => 'Cloud Tokens'", "'icon' => 'cloud'")- ->toContain("'label' => 'Cloud-Init Scripts'", "'icon' => 'file-content'")- ->toContain("'label' => 'API Tokens'", "'icon' => 'code'")- ->and($icons)- ->toContain("'cloud' =>")- ->toContain("'code' =>");-});diff --git a/tests/Feature/SecuritySettingsNavigationTest.php b/tests/Feature/SecuritySettingsNavigationTest.phpdeleted file mode 100644index 9eab92cc28..0000000000--- a/tests/Feature/SecuritySettingsNavigationTest.php+++ /dev/null@@ -1,33 +0,0 @@-<?php--it('uses shared sidebar navigation for keys and tokens pages', function () {- $sidebar = file_get_contents(resource_path('views/components/security/settings-layout.blade.php'));- $navbar = file_get_contents(resource_path('views/components/dashboard/navbar.blade.php'));-- foreach ([- 'security/private-key/index.blade.php',- 'security/private-key/show.blade.php',- 'security/cloud-tokens.blade.php',- 'security/integration-tokens.blade.php',- 'security/cloud-provider-token/show.blade.php',- 'security/cloud-init-scripts.blade.php',- 'security/cloud-init-script/show.blade.php',- 'security/api-tokens.blade.php',- ] as $viewPath) {- expect(file_get_contents(resource_path("views/livewire/{$viewPath}")))- ->toContain('<x-security.settings-layout>')- ->not->toContain('<x-security.navbar');- }-- expect($sidebar)- ->toContain('application-settings-navigation')- ->toContain("'label' => 'Private Keys'")- ->toContain("'label' => 'Cloud Tokens'")- ->toContain("'label' => 'Integration Tokens'")- ->toContain("'label' => 'Cloud-Init Scripts'")- ->toContain("'label' => 'API Tokens'");-- expect($navbar)- ->toContain("request()->routeIs('security.*')")- ->not->toContain("['label' => 'API Tokens', 'route' => 'security.api-tokens'");-});diff --git a/tests/Feature/SelectControlStyleTest.php b/tests/Feature/SelectControlStyleTest.phpdeleted file mode 100644index 1bd3d6f0fd..0000000000--- a/tests/Feature/SelectControlStyleTest.php+++ /dev/null@@ -1,9 +0,0 @@-<?php--test('native select values stay clear of the dropdown icon on mobile', function () {- $styles = file_get_contents(resource_path('css/app.css'));-- expect($styles)- ->toMatch('/\.application-settings-workspace \.select,\s*\.application-settings-form \.select \{\s*padding-right: 2\.5rem;/')- ->toMatch('/@media \(max-width: 767px\) \{\s*\.application-settings-workspace \.select,\s*\.application-settings-form \.select \{\s*font-size: 0\.75rem !important;/');-});diff --git a/tests/Feature/SentinelUnsavedBarFlashTest.php b/tests/Feature/SentinelUnsavedBarFlashTest.phpdeleted file mode 100644index 937d7cad5c..0000000000--- a/tests/Feature/SentinelUnsavedBarFlashTest.php+++ /dev/null@@ -1,207 +0,0 @@-<?php--/**- * The Sentinel page previously flashed the floating unsaved bar on open because:- * 1) wire:dirty compared the entire Livewire snapshot, and- * 2) dev-only x-init always called $wire.set('sentinelCustomDockerImage', …),- * mutating reactive state (null → '') until the round-trip cleared dirty.- */-test('sentinel unsaved bar scopes dirty tracking to savable form fields', function () {- $path = resource_path('views/livewire/server/sentinel.blade.php');- $contents = file_get_contents($path);-- expect($contents)- ->toContain('x-unsaved-bar')- ->toContain('targets="sentinelCustomUrl,sentinelToken"')- ->not->toContain('trafficTopn')- ->not->toContain('sentinelMetricsRefreshRateSeconds')- ->not->toContain('sentinelMetricsHistoryDays')- ->not->toContain('sentinelPushIntervalSeconds')- ->not->toMatch('/x-unsaved-bar\s+action="submit"\s*\/>/');-});--test('metrics unsaved bar scopes dirty tracking to metrics collection fields', function () {- $contents = file_get_contents(resource_path('views/livewire/server/charts.blade.php'));-- expect($contents)- ->toContain('x-unsaved-bar action="saveMetricsSettings"')- ->toContain('targets="sentinelMetricsRefreshRateSeconds,sentinelMetricsHistoryDays,sentinelPushIntervalSeconds"');-});--test('unsaved bar component accepts optional wire:target list', function () {- $path = resource_path('views/components/unsaved-bar.blade.php');- $contents = file_get_contents($path);-- expect($contents)- ->toContain("'targets' => null")- ->toContain('wire:target="{{ $targets }}"');-});--test('unsaved bar delays show and hides while loading to avoid instant-save flash', function () {- $path = resource_path('views/components/unsaved-bar.blade.php');- $contents = file_get_contents($path);-- expect($contents)- ->toContain('wire:dirty.class="is-dirty"')- ->toContain('wire:loading.class="is-saving"')- ->toContain('[&.is-dirty]:delay-300')- ->toContain('delay-0');-});--test('unsaved bar uses a stable transition for its entrance', function () {- $contents = file_get_contents(resource_path('views/components/unsaved-bar.blade.php'));-- expect($contents)- ->toContain('scale-95')- ->toContain('transition-[opacity,transform,scale]')- ->toContain('duration-300')- ->toContain('ease-[cubic-bezier(0.16,1,0.3,1)]')- ->toContain('[&.is-dirty]:scale-100')- ->not->toContain('[&.is-dirty]:animate-in');-});--test('unsaved bar transitions out without restarting its entrance animation', function () {- $contents = file_get_contents(resource_path('views/components/unsaved-bar.blade.php'));-- expect($contents)- ->toContain('[&.is-saving]:translate-y-6')- ->toContain('[&.is-saving]:scale-95')- ->toContain('[&.is-saving]:opacity-0')- ->toContain('[&.is-saving]:duration-200')- ->toContain('[&.is-saving]:ease-in')- ->toContain('[&.is-saving]:pointer-events-none')- ->not->toContain('[&.is-saving]:animate-out');-});--test('unsaved bar saves with enter and shows the shortcut on the save button', function () {- $contents = file_get_contents(resource_path('views/components/unsaved-bar.blade.php'));-- expect($contents)- ->toContain('@keydown.enter.window')- ->toContain("classList.contains('is-dirty')")- ->toContain('$wire.{{ $action }}()')- ->toContain('<kbd')- ->toContain('Enter</kbd>');-});--test('unsaved bar keyboard shortcut remains visible in light mode', function () {- $contents = file_get_contents(resource_path('views/components/unsaved-bar.blade.php'));-- expect($contents)- ->toContain('border-current/20 bg-current/10')- ->toContain('text-current')- ->not->toContain('text-coollabs-200');-});--test('unsaved bar uses a light surface in light mode', function () {- $contents = file_get_contents(resource_path('views/components/unsaved-bar.blade.php'));-- expect($contents)- ->toContain('border-neutral-200 bg-white')- ->toContain('text-neutral-800 dark:text-fg')- ->toContain('bg-neutral-100')- ->toContain('dark:bg-white/[0.07]');-});--test('unsaved bar stays above floating notifications so save actions remain accessible', function () {- $unsavedBar = file_get_contents(resource_path('views/components/unsaved-bar.blade.php'));- $popup = file_get_contents(resource_path('views/components/popup-small.blade.php'));-- expect($unsavedBar)- ->toContain('z-[1000]')- ->and($popup)->toContain('z-999');-});--test('unsaved bar stays above the mobile keyboard', function () {- $contents = file_get_contents(resource_path('views/components/unsaved-bar.blade.php'));-- expect($contents)- ->toContain('window.visualViewport')- ->toContain('keyboardInset')- ->toContain('--keyboard-inset')- ->toContain('removeEventListener');-});--test('settings general unsaved bar excludes auto-saving instance timezone', function () {- $path = resource_path('views/livewire/settings/index.blade.php');- $contents = file_get_contents($path);-- expect($contents)- ->toContain('targets="fqdn,instance_name,public_ipv4,public_ipv6,dev_helper_version"')- ->toContain('id="instance_timezone"')- ->toContain('onChange="submit"')- ->toContain('x-forms.searchable-listbox')- ->not->toMatch('/x-unsaved-bar\s+action="submit"\s*\/>/');-});--test('settings general instance timezone uses searchable listbox for label alignment with name', function () {- $path = resource_path('views/livewire/settings/index.blade.php');- $contents = file_get_contents($path);-- expect($contents)- ->toContain('x-forms.searchable-listbox id="instance_timezone"')- ->toContain('id="instance_name"')- ->not->toContain('selectTimezone(timezone)');-});--test('sentinel custom docker image x-init only sets wire when a value exists', function () {- $path = resource_path('views/livewire/server/sentinel.blade.php');- $contents = file_get_contents($path);-- expect($contents)- ->toContain("x-init=\"if (customImage) { \$wire.set('sentinelCustomDockerImage', customImage) }\"")- ->not->toContain("x-init=\"\$wire.set('sentinelCustomDockerImage', customImage)\"");-});--test('sentinel custom docker image does not rerender while typing and has an explicit apply action', function () {- $contents = file_get_contents(resource_path('views/livewire/server/sentinel.blade.php'));-- expect($contents)- ->toContain('async applyCustomImage()')- ->toContain("await \$wire.set('sentinelCustomDockerImage', this.customImage || null)")- ->toContain('await $wire.restartSentinel()')- ->toContain('Apply and restart')- ->not->toContain('@input.debounce.500ms="saveCustomImage()"');-});--/**- * Instant-save listboxes (e.g. MCP server) entangle + call instantSave. Until the- * round-trip finishes, the component is dirty — so an unscoped unsaved bar flashes.- * Pages that mix instantSave and explicit-save fields must pass targets.- */-test('settings advanced unsaved bar scopes dirty tracking away from instantSave fields', function () {- $path = resource_path('views/livewire/settings/advanced.blade.php');- $contents = file_get_contents($path);-- expect($contents)- ->toContain('x-unsaved-bar')- ->toContain('targets="custom_dns_servers,allowed_ips,webhook_allowed_internal_hosts,webhook_allow_localhost,domain_connect_private_key"')- ->toContain('onChange="instantSave"')- ->not->toMatch('/x-unsaved-bar\s+action="submit"\s*\/>/');-});--test('settings updates unsaved bar scopes dirty tracking away from instantSave fields', function () {- $path = resource_path('views/livewire/settings/updates.blade.php');- $contents = file_get_contents($path);-- expect($contents)- ->toContain('targets="update_check_frequency,auto_update_frequency"')- ->not->toMatch('/x-unsaved-bar\s+action="submit"\s*\/>/');-});--test('docker cleanup unsaved bar scopes dirty tracking away from instantSave fields', function () {- $path = resource_path('views/livewire/server/docker-cleanup.blade.php');- $contents = file_get_contents($path);-- expect($contents)- ->toContain('targets="dockerCleanupFrequency,dockerCleanupThreshold"')- ->not->toMatch('/x-unsaved-bar\s+action="submit"\s*\/>/');-});--test('application advanced gpu unsaved bar scopes dirty tracking to gpu fields only', function () {- $path = resource_path('views/livewire/project/application/advanced.blade.php');- $contents = file_get_contents($path);-- expect($contents)- ->toContain('targets="gpuDriver,gpuCount,gpuDeviceIds,gpuOptions"');-});diff --git a/tests/Feature/ServerCreatePageLayoutTest.php b/tests/Feature/ServerCreatePageLayoutTest.phpdeleted file mode 100644index 3e8a8b48b3..0000000000--- a/tests/Feature/ServerCreatePageLayoutTest.php+++ /dev/null@@ -1,59 +0,0 @@-<?php--test('server creation uses the standard page title without redundant navigation', function () {- $view = file_get_contents(resource_path('views/livewire/server/create.blade.php'));-- expect($view)- ->toContain('<h1 class="min-w-0 text-[24px]! leading-7! font-semibold! tracking-tight!">New server</h1>')- ->toContain('class="mb-5 flex min-h-9 flex-col gap-3 sm:flex-row sm:items-center sm:justify-between"')- ->not->toContain('Back to servers')- ->not->toContain('title="Add a server"');-});--test('provider pages only show the token action in the account panel', function () {- $view = file_get_contents(resource_path('views/livewire/server/create.blade.php'));-- expect($view)- ->not->toContain('New token')- ->not->toContain('new-server-token-')- ->not->toContain('tokenProviderName');-});--test('server selection separates existing servers from cloud provisioning', function (string $viewPath) {- $view = file_get_contents(resource_path($viewPath));-- expect($view)- ->toContain('Add a server')- ->toContain('IP address or domain')- ->toContain('Provision a server')- ->and(strpos($view, 'Add a server'))->toBeLessThan(strpos($view, 'Provision a server'));-})->with([- 'new server page' => 'views/livewire/server/create.blade.php',- 'onboarding' => 'views/livewire/boarding/index.blade.php',-]);--test('new server sections have vertical spacing', function () {- $view = file_get_contents(resource_path('views/livewire/server/create.blade.php'));-- expect($view)->toContain('<div class="application-settings-form flex flex-col gap-6">');-});--test('server selection uses the provider logos', function () {- $newServerView = file_get_contents(resource_path('views/livewire/server/create.blade.php'));- $onboardingView = file_get_contents(resource_path('views/livewire/boarding/index.blade.php'));-- expect($newServerView)- ->toContain('src="https://www.vultr.com/media/logo_ondark.svg"')- ->toContain("src=\"{{ asset('svgs/hetzner.svg') }}\"")- ->and($onboardingView)- ->toContain('src="https://www.vultr.com/media/logo_ondark.svg"')- ->toContain("src=\"{{ asset('svgs/hetzner.svg') }}\"");-});--test('new server cards do not show method badges', function () {- $view = file_get_contents(resource_path('views/livewire/server/create.blade.php'));-- expect($view)- ->not->toContain("\n Manual\n")- ->not->toContain("\n Provider\n");-});diff --git a/tests/Feature/ServerCreationBuildRoleLayoutTest.php b/tests/Feature/ServerCreationBuildRoleLayoutTest.phpdeleted file mode 100644index 2f813196e6..0000000000--- a/tests/Feature/ServerCreationBuildRoleLayoutTest.php+++ /dev/null@@ -1,24 +0,0 @@-<?php--test('server creation keeps private key actions together and advanced options collapsed', function () {- $view = file_get_contents(resource_path('views/livewire/server/new/by-ip.blade.php'));-- expect($view)- ->toContain('class="flex items-end gap-3"')- ->toContain('<x-forms.collapsible class="mt-5 border-t border-neutral-200 pt-4 dark:border-white/[0.08]"')- ->toContain('<x-forms.listbox id="server_role"')- ->toContain('label="Server role"')- ->toContain("['value' => 'deployment', 'label' => 'Deployments only']")- ->toContain("['value' => 'build', 'label' => 'Builds only']")- ->toContain("['value' => 'both', 'label' => 'Deployments and builds']")- ->not->toContain('<x-forms.checkbox id="is_build_server"');-});--test('server creation places the IP address and private key before optional details', function () {- $view = file_get_contents(resource_path('views/livewire/server/new/by-ip.blade.php'));-- expect($view)- ->toContain('class="mb-5"')- ->and(strpos($view, 'id="ip"'))->toBeLessThan(strpos($view, 'id="private_key_id"'))- ->and(strpos($view, 'id="private_key_id"'))->toBeLessThan(strpos($view, 'id="name"'));-});diff --git a/tests/Feature/ServerIndexViewSwitcherTest.php b/tests/Feature/ServerIndexViewSwitcherTest.phpdeleted file mode 100644index 6edcbe6efa..0000000000--- a/tests/Feature/ServerIndexViewSwitcherTest.php+++ /dev/null@@ -1,36 +0,0 @@-<?php--test('view switchers use the shared coollabs selected state on every page', function () {- $views = collect([- resource_path('views/livewire/server/index.blade.php'),- resource_path('views/livewire/project/index.blade.php'),- resource_path('views/livewire/project/show.blade.php'),- resource_path('views/livewire/project/resource/index.blade.php'),- resource_path('views/livewire/project/service/configuration.blade.php'),- resource_path('views/livewire/tags/show.blade.php'),- resource_path('views/livewire/shared/list-search-controls.blade.php'),- resource_path('views/components/shared-variables/view-controls.blade.php'),- ])->map(fn (string $path): string => file_get_contents($path));- $utilities = file_get_contents(resource_path('css/utilities.css'));-- expect($views->every(fn (string $view): bool => (str_contains($view, "viewMode === 'table'") || str_contains($view, "viewMode === 'list'"))- && str_contains($view, "viewMode === 'grid'")- && str_contains($view, 'control-selected')))- ->toBeTrue()- ->and($views->every(fn (string $view): bool => str_contains($view, 'flex h-9')- && str_contains($view, 'size-7.5')))->toBeTrue()- ->and($views->implode("\n"))->not->toContain('dark:bg-warning/15 dark:text-warning')- ->and($utilities)- ->toContain('@utility control-selected')- ->toContain('@apply bg-linear-to-b from-coollabs-100 to-coollabs-200 text-white;');-});--test('server index does not expose server IP addresses', function () {- $view = file_get_contents(resource_path('views/livewire/server/index.blade.php'));-- expect($view)- ->not->toContain("'address' => \$server->ip")- ->not->toContain('<div>Address</div>')- ->not->toContain('x-text="server.address"')- ->not->toContain('server.address,');-});diff --git a/tests/Feature/ServerMetricsEmptyStateTest.php b/tests/Feature/ServerMetricsEmptyStateTest.phpdeleted file mode 100644index b96dc4b4b5..0000000000--- a/tests/Feature/ServerMetricsEmptyStateTest.php+++ /dev/null@@ -1,22 +0,0 @@-<?php--test('sentinel-required metrics state does not repeat an unavailable badge', function () {- $view = file_get_contents(resource_path('views/livewire/server/charts.blade.php'));- $sentinelRequiredState = str($view)->after('@else')->before('@endif')->toString();-- expect($sentinelRequiredState)- ->toContain('title="Sentinel is required"')- ->not->toContain('status="Unavailable"');-});--test('disabled metrics state does not repeat a disabled badge', function () {- $view = file_get_contents(resource_path('views/livewire/server/charts.blade.php'));- $disabledState = str($view)- ->after('@elseif ($server->isSentinelEnabled())')- ->before('@else')- ->toString();-- expect($disabledState)- ->toContain('title="Metrics are disabled"')- ->not->toContain('status="Disabled"');-});diff --git a/tests/Feature/ServerNavbarStatusLayoutTest.php b/tests/Feature/ServerNavbarStatusLayoutTest.phpdeleted file mode 100644index c7b1315544..0000000000--- a/tests/Feature/ServerNavbarStatusLayoutTest.php+++ /dev/null@@ -1,83 +0,0 @@-<?php--it('collapses server subsystem badges into one status summary', function () {- $navbarView = file_get_contents(resource_path('views/livewire/server/navbar.blade.php'));- $summaryView = file_get_contents(resource_path('views/components/server/status-summary.blade.php'));- $badgeView = file_get_contents(resource_path('views/components/status-badge.blade.php'));-- expect($navbarView)- ->toContain('<x-server.status-summary')- ->not->toContain('label="Proxy" status="Running"')- ->not->toContain('label="Sentinel"')- ->and($summaryView)- ->toContain("['Attention required', 'warning']")- ->toContain("['Ready', 'success']")- ->toContain('System status')- ->toContain('aria-label="Refresh status"')- ->toContain('<x-reicon name="chevron-down"')- ->toContain(":class=\"open && 'rotate-180'\"")- ->toContain('wire:click="checkProxyStatus"')- ->toContain('wire:loading.class="animate-spin" wire:target="checkProxyStatus"')- ->toContain('name="refresh" class="size-3"')- ->not->toContain('Refreshing status')- ->not->toContain('<x-loading compact />')- ->toContain("href=\"{{ route('server.proxy', ['server_uuid' => \$server->uuid]) }}\"")- ->toContain("href=\"{{ route('server.sentinel', ['server_uuid' => \$server->uuid]) }}\"")- ->toContain('@click="open = false" role="menuitem"');-- expect($badgeView)- ->not->toContain('text-neutral-500')- ->not->toContain('dark:text-neutral-400')- ->toContain('<button')- ->toContain("merge(['type' => 'button'])");-});--it('uses the branded input focus state for the server filter', function () {- $navbarView = file_get_contents(resource_path('views/livewire/server/navbar.blade.php'));-- expect($navbarView)- ->toContain('placeholder="Filter servers…"')- ->toContain('class="input h-7!')- ->toContain('M8 9l4-4 4 4M8 15l4 4 4-4')- ->not->toContain('<x-reicon name="chevron-down" class="size-3 shrink-0 text-neutral-400 dark:text-fg-faint" />')- ->toContain('<x-reicon name="check-circle"')- ->not->toContain('<x-reicon name="check"');-});--it('lists desktop proxy controls in one split action and links Traefik beside it', function () {- $navbar = file_get_contents(resource_path('views/livewire/server/navbar.blade.php'));- $overflow = file_get_contents(resource_path('views/components/resource-heading-overflow.blade.php'));- $desktopActions = str($navbar)->after("@teleport('#resource-action-hud-slot')")->before('@endteleport')->toString();- $splitAction = str($desktopActions)->after('id="server-desktop-actions"')->before('</x-split-action>')->toString();- $traefikLink = str($desktopActions)->before('<x-split-action id="server-desktop-actions"')->toString();-- expect($desktopActions)- ->toContain('Restart Proxy')- ->toContain('Stop Proxy')- ->toContain('Start Proxy')- ->toContain('<x-split-action id="server-desktop-actions"')- ->toContain('Traefik Dashboard')- ->not->toContain('<x-server.advanced')- ->not->toContain('resource-heading-overflow-separator')- ->not->toContain('<x-modal-confirmation');-- expect(strpos($desktopActions, 'Traefik Dashboard'))- ->toBeLessThan(strpos($desktopActions, 'id="server-desktop-actions"'));-- expect($traefikLink)- ->toContain('@if ($traefikDashboardAvailable)')- ->toContain('target="_blank"')- ->toContain('href="http://{{ $serverIp }}:8080"')- ->toContain('name="external-link" class="size-3.5 shrink-0 opacity-70"');-- expect($splitAction)- ->toContain('<x-slot:main')- ->toContain('listbox-option')- ->toContain('wire:click="checkProxyStatus"')- ->toContain('Refresh Proxy Status')- ->not->toContain('Traefik');-- expect($overflow)- ->toContain('Actions')- ->toContain('listbox-panel');-});diff --git a/tests/Feature/ServerResourcesTableMobileLayoutTest.php b/tests/Feature/ServerResourcesTableMobileLayoutTest.phpdeleted file mode 100644index 7d35c7f101..0000000000--- a/tests/Feature/ServerResourcesTableMobileLayoutTest.php+++ /dev/null@@ -1,67 +0,0 @@-<?php--test('server resources managed table collapses to name and status on mobile', function () {- $css = file_get_contents(resource_path('css/app.css'));-- expect($css)- ->toContain('.server-resources-managed-table-grid')- ->toContain('.server-resources-unmanaged-table-grid');-- // Isolate the ≤640px mobile block so we assert the correct breakpoint rules.- expect(preg_match(- '/@media \(max-width: 640px\)\s*\{(?P<body>.*)\n\}/s',- $css,- $matches- ))->toBe(1);-- $mobileCss = $matches['body'] ?? '';-- // Managed: hide Project, Environment, and Type — Name + Status only.- expect($mobileCss)- ->toMatch('/\.server-resources-managed-table-grid\s*\{\s*grid-template-columns:\s*minmax\(0,\s*1fr\)\s+auto;/')- ->toContain('.server-resources-managed-table-grid > :nth-child(2)')- ->toContain('.server-resources-managed-table-grid > :nth-child(3)')- ->toContain('.server-resources-managed-table-grid > :nth-child(4)');-- // Unmanaged: hide Image and Status — Name + Actions only.- expect($mobileCss)- ->toMatch('/\.server-resources-unmanaged-table-grid\s*\{\s*grid-template-columns:\s*minmax\(0,\s*1fr\)\s+auto;/')- ->toContain('.server-resources-unmanaged-table-grid > :nth-child(2)')- ->toContain('.server-resources-unmanaged-table-grid > :nth-child(3)');-});--test('server resources table markup keeps five managed columns for progressive disclosure', function () {- $view = file_get_contents(resource_path('views/livewire/server/resources.blade.php'));-- expect($view)- ->toContain('server-resources-managed-table-grid')- ->toContain('server-resources-unmanaged-table-grid')- ->toContain('<span>Name</span>')- ->toContain('<span>Project</span>')- ->toContain('<span>Environment</span>')- ->toContain('<span>Type</span>')- ->toContain('<span>Status</span>');-});--test('unmanaged container names use the same typeface as managed resource names', function () {- $view = file_get_contents(resource_path('views/livewire/server/resources.blade.php'));-- // Managed names: sans + medium weight (linked).- expect($view)- ->toContain('block max-w-full truncate text-[12px] font-medium text-neutral-950 hover:underline dark:text-fg');-- // Unmanaged names must match size/weight/color and not use mono.- expect($view)- ->toContain('min-w-0 truncate text-[12px] font-medium text-neutral-950 dark:text-fg')- ->not->toContain('truncate font-mono text-[12px] text-neutral-950 dark:text-fg');-});--test('server resource tabs show a loading state while switching', function () {- $view = file_get_contents(resource_path('views/livewire/server/resources.blade.php'));-- expect(substr_count($view, 'wire:loading.attr="disabled" wire:target="loadManagedContainers,loadUnmanagedContainers"'))- ->toBe(2)- ->and($view)- ->toContain('<x-loading-on-button wire:loading wire:target="loadManagedContainers" />')- ->toContain('<x-loading-on-button wire:loading wire:target="loadUnmanagedContainers" />');-});diff --git a/tests/Feature/ServerSecuritySidebarIconsTest.php b/tests/Feature/ServerSecuritySidebarIconsTest.phpdeleted file mode 100644index bab54a3c28..0000000000--- a/tests/Feature/ServerSecuritySidebarIconsTest.php+++ /dev/null@@ -1,27 +0,0 @@-<?php--/**- * Server security nav icons: patching uses bandage; terminal uses browser-terminal.- */-test('server security sidebar uses bandage and browser-terminal icons', function () {- $sidebar = file_get_contents(resource_path('views/components/server/sidebar-security.blade.php'));- $reicon = file_get_contents(resource_path('views/components/reicon.blade.php'));-- expect($sidebar)- ->toMatch("/'label'\\s*=>\\s*'Server Patching'[\\s\\S]{0,200}?'icon'\\s*=>\\s*'bandage'/")- ->toMatch("/'label'\\s*=>\\s*'Terminal Access'[\\s\\S]{0,200}?'icon'\\s*=>\\s*'browser-terminal'/")- ->not->toMatch("/'label'\\s*=>\\s*'Server Patching'[\\s\\S]{0,200}?'icon'\\s*=>\\s*'admin'/")- ->not->toMatch("/'label'\\s*=>\\s*'Terminal Access'[\\s\\S]{0,200}?'icon'\\s*=>\\s*'terminal'/");-- expect($reicon)- ->toContain("'bandage' =>")- ->toContain("'browser-terminal' =>");-});--test('terminal access page status tile uses browser-terminal icon', function () {- $contents = file_get_contents(resource_path('views/livewire/server/security/terminal-access.blade.php'));-- expect($contents)- ->toContain('name="browser-terminal"')- ->not->toContain('name="terminal"');-});diff --git a/tests/Feature/ServerSidebarIconsTest.php b/tests/Feature/ServerSidebarIconsTest.phpdeleted file mode 100644index 9592105ef2..0000000000--- a/tests/Feature/ServerSidebarIconsTest.php+++ /dev/null@@ -1,76 +0,0 @@-<?php--use Illuminate\Support\Facades\Blade;--it('registers broom, shield-star, and network reicons for server sidebar items', function (string $name) {- $contents = file_get_contents(resource_path('views/components/reicon.blade.php'));-- expect($contents)->toContain("'{$name}' => ");-- $html = Blade::render("<x-reicon name=\"{$name}\" class=\"menu-item-icon\" />");-- expect($html)- ->toContain('viewBox="0 0 24 24"')- ->toContain('fill="currentColor"')- ->toContain('menu-item-icon')- ->not->toBe('<svg class="menu-item-icon size-4" viewBox="0 0 24 24" fill="none"- xmlns="http://www.w3.org/2000/svg" aria-hidden="true">--</svg>');-})->with(['broom', 'shield-star', 'network']);--it('uses the broom reicon for docker cleanup in the server sidebar', function () {- $contents = file_get_contents(resource_path('views/components/server/sidebar.blade.php'));-- expect($contents)- ->toContain("'label' => 'Docker Cleanup'")- ->toContain("'icon' => 'broom'")- ->not->toMatch("/'label' => 'Docker Cleanup',\s*'route' => 'server\.docker-cleanup',\s*'active' => \$activeMenu === 'docker-cleanup',\s*'icon' => 'storages'/s");-});--it('uses the shield-star reicon for sentinel in the server sidebar', function () {- $contents = file_get_contents(resource_path('views/components/server/sidebar.blade.php'));-- expect($contents)- ->toContain("'label' => 'Sentinel'")- ->toMatch("/'label' => 'Sentinel',\s*'route' => 'server\.sentinel',\s*'active' => request\(\)->routeIs\('server\.sentinel', 'server\.sentinel\.\*'\),\s*'icon' => 'shield-star'/s");-});--it('shows a warning icon when sentinel is enabled but not working', function () {- $contents = file_get_contents(resource_path('views/components/server/sidebar.blade.php'));-- expect($contents)- ->toContain("'warning' => \$server->isSentinelEnabled() && \$sentinelStatus === 'out_of_sync'");-});--it('uses the network reicon for proxy in the server sidebar', function () {- $contents = file_get_contents(resource_path('views/components/server/sidebar.blade.php'));-- expect($contents)- ->toContain("'label' => 'Proxy'")- ->toContain("'route' => 'server.proxy'")- ->toContain("'icon' => 'network'")- ->toMatch("/'label' => 'Proxy'[\s\S]*?'icon' => 'network'/")- ->not->toMatch("/'label' => 'Proxy'[\s\S]*?'icon' => 'settings',\s*'group' => 'Platform'/");-});--it('shows a warning icon when a server menu item requires attention', function () {- $contents = file_get_contents(resource_path('views/components/server/sidebar.blade.php'));-- expect($contents)- ->toContain('proxyConfigurationPending: @js($server->hasPendingProxyConfiguration())')- ->toContain('proxyConfigurationPending: @js($server->hasPendingProxyConfiguration()),')- ->toContain('traefikOutdated: @js($server->hasCurrentTraefikOutdatedInfo())')- ->toContain('@proxy-configuration-state-changed.window')- ->toContain('proxyNotRunning: @js($proxyNotRunning)')- ->toContain('proxyNotRunning = $event.detail.proxyNotRunning')- ->toContain('x-show="proxyConfigurationPending || traefikOutdated || proxyNotRunning"')- ->toContain('@sentinel-status-changed.window')- ->toContain('sentinelOutOfSync = $event.detail.outOfSync')- ->toContain('scheduleSentinelExpiry($event.detail.expiresInMilliseconds)')- ->toContain('setTimeout(() => this.sentinelOutOfSync = true, delay)')- ->toContain("\$menuItem['warning'] ?? false")- ->toContain('name="alert-triangle"');-- expect(substr_count($contents, 'traefikOutdated: @js($server->hasCurrentTraefikOutdatedInfo())'))->toBe(1);-});diff --git a/tests/Feature/ServerStatusIndicatorDesignTest.php b/tests/Feature/ServerStatusIndicatorDesignTest.phpdeleted file mode 100644index d9b35bd344..0000000000--- a/tests/Feature/ServerStatusIndicatorDesignTest.php+++ /dev/null@@ -1,70 +0,0 @@-<?php--test('server cards use warning icons instead of colored icon borders', function () {- $dashboard = file_get_contents(resource_path('views/livewire/dashboard.blade.php'));- $serverIndex = file_get_contents(resource_path('views/livewire/server/index.blade.php'));-- expect($dashboard)- ->not->toContain('<x-status-badge :status="$serverStatus"')- ->not->toContain("'border-amber-500/70' => \$serverStatusType === 'warning'")- ->toContain('@if ($serverStatusType !== \'success\')')- ->toContain('data-tooltip="{{ $serverStatus }}"')- ->toContain('<x-reicon name="alert-triangle"');-- expect(substr_count($serverIndex, '<x-status-badge'))->toBe(1)- ->and($serverIndex)- ->toContain("&& (\$server->proxy->status !== 'running' || \$server->hasCurrentTraefikOutdatedInfo())")- ->toContain("\$sentinelNeedsAttention = \$isReady && \$server->isSentinelEnabled() && \$server->sentinelStatus() === 'out_of_sync'")- ->toContain("\$proxyNeedsAttention || \$sentinelNeedsAttention => 'warning'")- ->toContain("\$isReady => 'success'")- ->toContain("\$isTransferredAway || \$server->settings->force_disabled => 'error'")- ->toContain("default => 'error'")- ->not->toContain("server.statusType === 'warning' ? 'border-amber-500/70'")- ->toContain('x-show="server.statusType !== \'success\'"')- ->toContain(':data-tooltip="server.status"')- ->toContain(':aria-label="`Server status: ${server.status}`"');-});--test('dashboard server cards warn when proxy or sentinel needs attention', function () {- $dashboard = file_get_contents(resource_path('views/livewire/dashboard.blade.php'));-- expect($dashboard)- ->toContain("\$proxyNeedsAttention = \$server->proxySet() && (\$server->proxy->status !== 'running' || \$server->hasCurrentTraefikOutdatedInfo())")- ->toContain("\$sentinelNeedsAttention = \$server->isSentinelEnabled() && \$server->sentinelStatus() === 'out_of_sync'")- ->toContain("\$proxyNeedsAttention || \$sentinelNeedsAttention => ['Attention required', 'warning']");-});--test('server status summary uses warning indicators for proxy updates and sentinel outages', function () {- $summary = file_get_contents(resource_path('views/components/server/status-summary.blade.php'));-- expect($summary)- ->toContain('$server->hasCurrentTraefikOutdatedInfo()')- ->toContain('$sentinelStatus = $server->sentinelStatus()')- ->toContain("'waiting' => 'Waiting for first report'")- ->toContain('$proxyStatusLabel = match (true)')- ->toContain("\$proxyConfigurationPending => 'Restart required'")- ->toContain("\$traefikUpdateAvailable => 'Update available'")- ->toContain('{{ $proxyStatusLabel }}')- ->toContain("'bg-warning' => \$proxyNeedsAttention && (\$proxyUpdateAvailable")- ->toContain("'bg-warning' => \$sentinelStatus === 'out_of_sync'")- ->not->toContain("\$server->isSentinelLive() ? 'bg-success' : 'bg-error'");-});--test('Sentinel logs show the pending first report state without an out-of-sync warning', function () {- $logs = file_get_contents(resource_path('views/livewire/server/sentinel/logs.blade.php'));-- expect($logs)- ->toContain("'waiting' => ['Waiting for first report', 'neutral']")- ->toContain("'in_sync' => ['In sync', 'success']")- ->toContain("default => ['Out of sync', 'warning']")- ->not->toContain("\$server->isSentinelLive() ? 'In sync' : 'Out of sync'");-});--test('server table keeps status text without a badge', function () {- $serverIndex = file_get_contents(resource_path('views/livewire/server/index.blade.php'));-- expect($serverIndex)- ->toContain('<span x-text="server.status"></span>')- ->toContain('text-[11px] font-medium')- ->not->toContain('<x-status-badge dynamic>');-});diff --git a/tests/Feature/ServerValidationDialogTest.php b/tests/Feature/ServerValidationDialogTest.phpdeleted file mode 100644index e1c75e14af..0000000000--- a/tests/Feature/ServerValidationDialogTest.php+++ /dev/null@@ -1,91 +0,0 @@-<?php--test('server revalidation opens in the centered process dialog', function () {- $view = file_get_contents(resource_path('views/livewire/server/show.blade.php'));-- expect($view)- ->toContain('<x-process-dialog closeWithX mobileFullscreen size="xl" :open="$isValidating">')- ->toContain(':isHighlighted="! $server->isFunctional()"')- ->toContain('@click="processDialogOpen = true" wire:click.prevent="validateServer"')- ->not->toContain('<x-slide-over');-});--test('server revalidation uses the full mobile viewport', function () {- $view = file_get_contents(resource_path('views/livewire/server/show.blade.php'));- $dialog = file_get_contents(resource_path('views/components/process-dialog.blade.php'));- $styles = file_get_contents(resource_path('css/app.css'));-- expect($view)- ->toContain('<x-process-dialog closeWithX mobileFullscreen size="xl" :open="$isValidating">')- ->and($dialog)- ->toContain("'mobileFullscreen' => false")- ->toContain("'process-dialog-mobile-fullscreen' => \$mobileFullscreen")- ->and($styles)- ->toContain('@media (max-width: 639px)')- ->toContain('.process-dialog-mobile-fullscreen')- ->toContain('height: 100dvh !important')- ->toContain('box-shadow: inset 0 0 0 1px var(--coollabs-hairline) !important');-});--test('completed server validation shows a close action instead of empty logs', function () {- $view = file_get_contents(resource_path('views/livewire/server/validate-and-install.blade.php'));-- expect($view)- ->toContain('$validationComplete')- ->toContain('mt-auto')- ->toContain('<x-forms.button type="button" @click="processDialogOpen = false">')- ->toContain('@click="processDialogOpen = false"')- ->toContain('Validation complete')- ->toContain('Close');-});--test('installation logs are only shown after an installation starts', function () {- $view = file_get_contents(resource_path('views/livewire/server/validate-and-install.blade.php'));- $component = file_get_contents(app_path('Livewire/Server/ValidateAndInstall.php'));- $styles = file_get_contents(resource_path('css/app.css'));-- expect($view)- ->toContain('@elseif ($isInstalling)')- ->toContain('application-settings-section validation-installation-logs')- ->and($component)- ->toContain('public bool $isInstalling = false;')- ->toContain('$this->isInstalling = true;')- ->and($styles)- ->toContain('.validation-installation-logs')- ->toContain('border: 1px solid var(--coollabs-fill)');-});--test('server validation content scrolls within the dialog', function () {- $view = file_get_contents(resource_path('views/livewire/server/validate-and-install.blade.php'));- $activityMonitor = file_get_contents(resource_path('views/livewire/activity-monitor.blade.php'));-- expect($view)->toContain('class="flex h-full min-h-0 flex-col gap-4 overflow-y-auto scrollbar"')- ->and($activityMonitor)->toContain("'overflow-hidden' => !\$fullHeight")- ->and($activityMonitor)->not->toContain("'h-full overflow-hidden' => !\$fullHeight");-});--test('validation checkpoints use the standard bordered list treatment', function () {- $view = file_get_contents(resource_path('views/livewire/server/validate-and-install.blade.php'));- $styles = file_get_contents(resource_path('css/app.css'));-- expect($view)- ->toContain('data-validation-checkpoints')- ->toContain('shrink-0 overflow-hidden rounded-[10px] border border-neutral-200 dark:border-white/[0.08]')- ->toContain('checkpoint-scroll-fade')- ->toContain('snap-x snap-mandatory overflow-x-auto overscroll-x-contain scroll-smooth scrollbar')- ->toContain('data-checkpoint-status="{{ $checkpoint[\'status\'] }}"')- ->toContain('basis-[88%] shrink-0 snap-start sm:basis-72 lg:basis-80')- ->toContain("querySelector('[data-checkpoint-status=running]')")- ->toContain("scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'center' })")- ->toContain('new MutationObserver')- ->toContain("attributeFilter: ['data-checkpoint-status']")- ->toContain('x-destroy="observer?.disconnect()"')- ->and($styles)- ->toContain('.checkpoint-scroll-fade::after');-});--test('all validation checkpoints remain visible while only the current phase runs', function () {- $view = file_get_contents(resource_path('views/livewire/server/validate-and-install.blade.php'));-- expect($view)->not->toContain("@continue(! \$checkpoint['visible'])");-});diff --git a/tests/Feature/ServiceComposeResourcesViewSwitcherTest.php b/tests/Feature/ServiceComposeResourcesViewSwitcherTest.phpdeleted file mode 100644index c281b330ce..0000000000--- a/tests/Feature/ServiceComposeResourcesViewSwitcherTest.php+++ /dev/null@@ -1,65 +0,0 @@-<?php--it('provides grid and table views for compose resources without sorting controls', function () {- $configuration = file_get_contents(resource_path('views/livewire/project/service/configuration.blade.php'));- $resourceCard = file_get_contents(resource_path('views/livewire/project/service/resource-card.blade.php'));-- expect($configuration)- ->toContain("localStorage.getItem('service-compose-resources-view') || 'table'")- ->toContain("setViewMode('table')")- ->toContain("setViewMode('grid')")- ->toContain('aria-label="Table view"')- ->toContain('aria-label="Grid view"')- ->toContain('mb-3 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between')- ->toContain('flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-start')- ->toContain('class="view-toggle"')- ->not->toContain('flex h-9 items-center rounded-lg border border-neutral-200 bg-white')- ->toContain("localStorage.setItem('service-compose-resources-view', mode)")- ->not->toContain('>Sort</button>')- ->and($resourceCard)- ->toContain("x-show=\"viewMode === 'grid'\"")- ->toContain("x-show=\"viewMode === 'table'\"");-});--it('directs compose application domain management to the parent service', function () {- $resourceSettings = file_get_contents(resource_path('views/livewire/project/service/index.blade.php'));-- expect($resourceSettings)- ->toContain('Manage domains, DNS checks, and redirects on the parent service')- ->toContain("route('project.service.domains', \$parameters)")- ->toContain('Manage domains')- ->not->toContain('<x-forms.domain-chips model="fqdn" label="Domains"');-});--it('aligns compose resource columns and uses icon actions', function () {- $configuration = file_get_contents(resource_path('views/livewire/project/service/configuration.blade.php'));- $resourceCard = file_get_contents(resource_path('views/livewire/project/service/resource-card.blade.php'));- $columns = 'sm:grid-cols-[minmax(0,1fr)_minmax(0,1fr)_8rem_5rem]';-- expect($configuration)->toContain($columns)- ->and($resourceCard)->toContain($columns)- ->toContain('flex flex-wrap items-center justify-end gap-1 sm:contents')- ->toContain('aria-label="Resource settings"')- ->toContain('aria-label="Service backups"')- ->toContain("route('project.service.volume-backups.index', \$parameters)")- ->not->toContain("route('project.service.database.backups'")- ->not->toContain('>Settings</a>')- ->not->toContain('>Backups</a>');-});--it('distinguishes domain management from resource settings', function () {- $resourceCard = file_get_contents(resource_path('views/livewire/project/service/resource-card.blade.php'));-- expect($resourceCard)- ->toContain('title="Manage domains" aria-label="Manage domains"')- ->toContain('<x-reicon name="globe" class="size-4" />')- ->toContain('title="Resource settings" aria-label="Resource settings"')- ->not->toContain('title="Edit domains" aria-label="Edit domains"');-});--it('does not display application domains on compose resource cards', function () {- $resourceCard = file_get_contents(resource_path('views/livewire/project/service/resource-card.blade.php'));-- expect($resourceCard)- ->not->toContain('{{ $resource->fqdn }}');-});diff --git a/tests/Feature/SettingsNavigationTest.php b/tests/Feature/SettingsNavigationTest.phpdeleted file mode 100644index badda427a5..0000000000--- a/tests/Feature/SettingsNavigationTest.php+++ /dev/null@@ -1,51 +0,0 @@-<?php--it('does not show scheduled jobs in instance settings navigation', function () {- $layout = file_get_contents(resource_path('views/components/settings/layout.blade.php'));-- expect($layout)- ->not->toContain('Scheduled Jobs')- ->not->toContain('settings.scheduled-jobs');-});--it('shows backup and transactional email in the settings configuration sidebar', function () {- $view = $this->blade('<x-settings.sidebar activeMenu="backup" />')- ->assertSeeTextInOrder([- 'General',- 'Advanced',- 'Instance Backup',- 'Transactional Email',- 'Updates',- ]);-- expect((string) $view)- ->toContain(route('settings.backup'))- ->toContain(route('settings.email'))- ->and(substr_count((string) $view, 'menu-item-active'))->toBe(1);-});--it('renders backup and transactional email pages with the settings configuration sidebar', function () {- expect(file_get_contents(resource_path('views/livewire/settings-backup.blade.php')))- ->toContain('<x-settings.sidebar activeMenu="backup" />')- ->and(file_get_contents(resource_path('views/livewire/settings-email.blade.php')))- ->toContain('<x-settings.sidebar activeMenu="email" />');-});--it('uses the same title and description spacing on backup and transactional email settings pages', function () {- expect(file_get_contents(resource_path('views/livewire/settings-backup.blade.php')))- ->not->toContain('class="flex items-center gap-2 pb-2"')- ->toContain('<div class="pb-4">Instance backup configuration for Coolify instance.</div>')- ->and(file_get_contents(resource_path('views/livewire/settings-email.blade.php')))- ->not->toContain('class="flex flex-col gap-2 pb-4"')- ->toContain('<div class="pb-4">Instance wide email settings for password resets, invitations, etc.</div>');-});--it('uses instance backup as the backup settings label', function () {- expect(file_get_contents(resource_path('views/components/settings/sidebar.blade.php')))- ->toContain('<span class="menu-item-label">Instance Backup</span>')- ->not->toContain('<span class="menu-item-label">Backup</span>')- ->and(file_get_contents(resource_path('views/livewire/settings-backup.blade.php')))- ->toContain('<h2>Instance Backup</h2>')- ->toContain('Instance backup configuration for Coolify instance.')- ->not->toContain('<h2>Backup</h2>');-});diff --git a/tests/Feature/SettingsScheduledJobsRemovalTest.php b/tests/Feature/SettingsScheduledJobsRemovalTest.phpdeleted file mode 100644index f529823913..0000000000--- a/tests/Feature/SettingsScheduledJobsRemovalTest.php+++ /dev/null@@ -1,11 +0,0 @@-<?php--use Illuminate\Support\Facades\Route;--test('instance settings no longer expose scheduled jobs monitoring', function () {- $settingsLayout = file_get_contents(resource_path('views/components/settings/layout.blade.php'));-- expect(Route::has('settings.scheduled-jobs'))->toBeFalse()- ->and($settingsLayout)->not->toContain('Scheduled Jobs')- ->and($settingsLayout)->not->toContain('settings.scheduled-jobs');-});diff --git a/tests/Feature/SettingsSectionHighlightTest.php b/tests/Feature/SettingsSectionHighlightTest.phpdeleted file mode 100644index 438f20192e..0000000000--- a/tests/Feature/SettingsSectionHighlightTest.php+++ /dev/null@@ -1,86 +0,0 @@-<?php--/**- * Settings nav sub-items scroll a section into view and flash its border- * for 500ms so the user can see which card was targeted.- */-test('settings section highlight animation is defined for 500ms', function () {- $appCss = file_get_contents(resource_path('css/app.css'));-- expect($appCss)- ->toContain('@keyframes application-settings-section-highlight')- ->toContain('.application-settings-section.is-section-highlight')- ->toContain('.application-settings-section.is-section-highlight::after')- ->toContain('animation: application-settings-section-highlight 500ms ease-out forwards')- ->toContain('border: 0.5px solid var(--color-accent)')- ->toContain('var(--color-accent)');-});--test('settings navigation leaves room for the default tab focus ring', function () {- $appCss = file_get_contents(resource_path('css/app.css'));-- preg_match('/\.application-settings-navigation\s*\{[^}]*\}/s', $appCss, $nav);-- // Tab focus keeps the global ring-2 + ring-offset-2; do not thin it.- expect($appCss)- ->not->toContain('.menu-item:focus-visible')- ->not->toContain('box-shadow: inset 0 0 0 0.5px var(--color-accent)')- ->and($nav[0] ?? '')- ->toContain('padding-right: 0.375rem');-});--test('configuration sidebar subitems trigger section highlight on scroll', function () {- $blade = file_get_contents(resource_path('views/livewire/project/application/configuration.blade.php'));- $appJs = file_get_contents(resource_path('js/app.js'));-- expect($blade)- ->toContain('scrollToSection(id)')- ->toContain('window.scrollToSettingsSection?.(id)')- ->toContain("scrollToSection('{{ \$section['id'] }}')")- ->and($appJs)- ->toContain('window.scrollToSettingsSection')- ->toContain("el.classList.add('is-section-highlight')")- ->toContain("behavior: 'smooth'")- ->toContain("addEventListener('scrollend'")- ->toContain('stableFrames');-});--test('application configuration subitems scroll without navigating the active page', function () {- $sidebar = file_get_contents(resource_path('views/components/application/configuration-sidebar.blade.php'));-- expect($sidebar)- ->toContain("@if (\$menuItem['active'])")- ->toContain('<button type="button" class="menu-subitem"')- ->toContain("window.scrollToSettingsSection?.('{{ \$section['id'] }}')")- ->toContain('@else')- ->toContain("href=\"{{ route(\$menuItem['route'], \$applicationRouteParameters) }}#{{ \$section['id'] }}\"")- ->not->toContain("if (document.getElementById('{{ \$section['id'] }}'))");-});--test('postgresql general navigation lists each in-page settings section', function () {- $sidebar = file_get_contents(resource_path('views/components/database/configuration-sidebar.blade.php'));- $general = file_get_contents(resource_path('views/livewire/project/database/postgresql/general.blade.php'));-- $sections = [- 'database-details-section' => 'Database details',- 'credentials-section' => 'Credentials',- 'initialization-section' => 'Initialization',- 'runtime-network-section' => 'Runtime and network',- 'public-access-section' => 'Public access',- 'configuration-section' => 'Configuration',- 'log-delivery-section' => 'Log delivery',- 'initialization-scripts-section' => 'Initialization scripts',- ];-- foreach ($sections as $id => $label) {- expect($sidebar)- ->toContain("['id' => '{$id}', 'label' => '{$label}']")- ->and($general)->toContain("id=\"{$id}\"");- }-- expect($sidebar)- ->toContain("\$database->type() === 'standalone-postgresql'")- ->toContain('window.scrollToSettingsSection?.(id)')- ->toContain("activeSection === '{{ \$section['id'] }}'")- ->toContain("scrollToSection('{{ \$section['id'] }}')");-});diff --git a/tests/Feature/SettingsSidebarAccordionTest.php b/tests/Feature/SettingsSidebarAccordionTest.phpdeleted file mode 100644index 52348bcae5..0000000000--- a/tests/Feature/SettingsSidebarAccordionTest.php+++ /dev/null@@ -1,78 +0,0 @@-<?php--// Each grouped resource settings sidebar wires up the shared accordion. Every group-// is expanded by default; a group the user collapsed stays collapsed (client-side,-// via localStorage), except the group containing the active page.--$groupedSidebars = [- 'application' => 'resources/views/components/application/configuration-sidebar.blade.php',- 'database' => 'resources/views/components/database/configuration-sidebar.blade.php',- 'service' => 'resources/views/components/service/configuration-sidebar.blade.php',- 'service-page' => 'resources/views/livewire/project/service/configuration.blade.php',- 'server' => 'resources/views/components/server/sidebar.blade.php',-];--it('wires the collapsible accordion into every grouped settings sidebar', function (string $file) {- $contents = file_get_contents(base_path($file));-- expect($contents)- ->toContain('settingsSidebarAccordion(') // shared Alpine data provider- ->toContain('$activeGroup') // the active group is always open- ->toContain('nav-section-toggle') // group header is a toggle button- ->toContain('toggle(') // header collapses/expands the group- ->toContain("? 'xl:block' : 'xl:hidden'"); // desktop-only collapse wrapper-})->with($groupedSidebars);--it('only expands in-page sub-sections for the active page', function () {- // Regression: the application sidebar used to render every item's sub-sections- // (Advanced's Build/Container/… showed while you were on General).- $contents = file_get_contents(base_path('resources/views/components/application/configuration-sidebar.blade.php'));-- expect($contents)- ->toContain("\$menuItem['active'] && filled(\$sections)")- ->not->toContain('@if (filled($sections))');-});--it('adds a client-side search to the application settings sidebar', function () {- $sidebar = file_get_contents(base_path('resources/views/components/application/configuration-sidebar.blade.php'));-- expect($sidebar)- ->toContain('Filter settings')- ->toContain('x-model.debounce.100ms="search"')- ->toContain('matches(')- // Results are built from a flat index that also covers in-page sub-sections,- // each carrying a breadcrumb (category + parent page).- ->toContain('$searchIndex')- ->toContain("'breadcrumb'")- ->toContain('$pageSections[$item[\'route\']]');-- expect(file_get_contents(base_path('resources/js/settings-sidebar-accordion.js')))- ->toContain('matches(label)')- ->toContain('hasResults');-});--it('registers the accordion Alpine provider', function () {- expect(file_get_contents(base_path('resources/js/app.js')))- ->toContain('initializeSettingsSidebarAccordionComponent');-- expect(file_get_contents(base_path('resources/js/settings-sidebar-accordion.js')))- ->toContain("Alpine.data('settingsSidebarAccordion'");-});--it('keeps the group for the active page open', function () {- $accordion = file_get_contents(base_path('resources/js/settings-sidebar-accordion.js'));-- expect($accordion)- ->toContain('if (group === this.activeGroup)')- ->toContain('return true;');-});--it('expands every group by default when the user has not collapsed it', function () {- $accordion = file_get_contents(base_path('resources/js/settings-sidebar-accordion.js'));-- $isOpen = str($accordion)->after('isOpen(group) {')->before('toggle(group)')->toString();-- expect($isOpen)- ->toContain('return this.groups[group];')- ->not->toContain('return false;');-});diff --git a/tests/Feature/SettingsSidebarStickyTest.php b/tests/Feature/SettingsSidebarStickyTest.phpdeleted file mode 100644index 7675ea4cdc..0000000000--- a/tests/Feature/SettingsSidebarStickyTest.php+++ /dev/null@@ -1,35 +0,0 @@-<?php--use Illuminate\Support\Facades\File;--it('uses one aligned sticky rule for all settings sidebars', function () {- $appCss = file_get_contents(resource_path('css/app.css'));- preg_match('/\.application-settings-navigation\s*\{([^}]+)\}/', $appCss, $matches);- $navigationCss = $matches[1] ?? '';-- expect($navigationCss)- ->toContain('align-self: start')- ->toContain('position: sticky')- ->toContain('top: calc(3rem + 1.75rem)')- ->toContain('max-height: calc(100dvh - 5.5rem)')- ->toContain('overflow-y: auto');-});--it('aligns every settings sidebar with its content without per-view top offsets', function () {- $navigationViews = collect(File::allFiles(resource_path('views')))- ->filter(fn (SplFileInfo $file): bool => str_contains($file->getContents(), 'application-settings-navigation'));-- expect($navigationViews)->not->toBeEmpty();-- foreach ($navigationViews as $file) {- expect($file->getContents())- ->not->toContain('xl:sticky')- ->not->toContain('xl:top-26');- }-});--it('keeps settings card headers the same height with or without actions', function () {- $appCss = file_get_contents(resource_path('css/app.css'));-- expect($appCss)->toMatch('/\.application-settings-section > :is\(header, \.application-settings-section-header\)\s*\{[^}]*min-height:\s*3rem/s');-});diff --git a/tests/Feature/SettingsTitleSidebarAlignmentTest.php b/tests/Feature/SettingsTitleSidebarAlignmentTest.phpdeleted file mode 100644index 78772c34dc..0000000000--- a/tests/Feature/SettingsTitleSidebarAlignmentTest.php+++ /dev/null@@ -1,50 +0,0 @@-<?php--/**- * Settings title sits above the workspace; sidebar is below it. Title shell and- * workspace share max-w-[1180px] so their left edges align.- */-test('instance settings pages use one shared sidebar workspace', function () {- $layout = file_get_contents(resource_path('views/components/settings/layout.blade.php'));-- expect($layout)- ->toContain('max-w-[1180px]')- ->toContain('application-settings-navigation')- ->toContain("'Configuration' =>")- ->toContain("'Instance' =>");-- $pages = [- resource_path('views/livewire/settings/index.blade.php'),- resource_path('views/livewire/settings/advanced.blade.php'),- resource_path('views/livewire/settings/updates.blade.php'),- resource_path('views/livewire/settings-oauth.blade.php'),- resource_path('views/livewire/settings-backup.blade.php'),- resource_path('views/livewire/settings-email.blade.php'),- ];-- foreach ($pages as $path) {- $blade = file_get_contents($path);-- expect($blade)- ->toContain('<x-settings.layout>')- ->not->toContain('<x-settings.navbar')- ->not->toContain('x-settings.page-header');- }-- $oauth = file_get_contents(resource_path('views/livewire/settings-oauth.blade.php'));- expect($oauth)- ->toContain('<x-slot:submenu>')- ->toContain('aria-label="OAuth providers"')- ->toContain('window.scrollToSettingsSection?.')- ->toContain('history.replaceState')- ->not->toContain('xl:grid-cols-[210px_minmax(0,1fr)]');-});--test('dashboard navbar hides family titles at lg by default', function () {- $dashboardNavbar = file_get_contents(resource_path('views/components/dashboard/navbar.blade.php'));-- expect($dashboardNavbar)- ->toContain("'titleOnDesktop' => false")- ->toContain("'lg:hidden' => \$mobileTitleOnly || (! \$titleOnDesktop && \$showNav)");--});diff --git a/tests/Feature/SettingsUpdatesIconTest.php b/tests/Feature/SettingsUpdatesIconTest.phpdeleted file mode 100644index 3178c57f3f..0000000000--- a/tests/Feature/SettingsUpdatesIconTest.php+++ /dev/null@@ -1,17 +0,0 @@-<?php--/**- * Instance settings Updates nav must use the reicon "refresh3" glyph.- */-test('settings updates sidebar uses the refresh3 icon', function () {- $sidebar = file_get_contents(resource_path('views/components/settings/layout.blade.php'));- $reicon = file_get_contents(resource_path('views/components/reicon.blade.php'));-- expect($sidebar)- ->toMatch("/'label'\\s*=>\\s*'Updates'[\\s\\S]{0,200}?'icon'\\s*=>\\s*'refresh3'/")- ->not->toMatch("/'label'\\s*=>\\s*'Updates'[\\s\\S]{0,200}?'icon'\\s*=>\\s*'dashboard'/");-- expect($reicon)- ->toContain("'refresh3' =>")- ->toContain('stroke-dasharray="3 3"');-});diff --git a/tests/Feature/SharedVariablesTitleOnDesktopTest.php b/tests/Feature/SharedVariablesTitleOnDesktopTest.phpdeleted file mode 100644index be2fd3a59f..0000000000--- a/tests/Feature/SharedVariablesTitleOnDesktopTest.php+++ /dev/null@@ -1,95 +0,0 @@-<?php--test('shared variables pages use the shared variables submenu instead of horizontal tabs', function () {- $paths = [- resource_path('views/livewire/shared-variables/index.blade.php'),- resource_path('views/livewire/shared-variables/project/index.blade.php'),- resource_path('views/livewire/shared-variables/environment/index.blade.php'),- resource_path('views/livewire/shared-variables/server/index.blade.php'),- resource_path('views/components/shared-variables/editor.blade.php'),- ];-- foreach ($paths as $path) {- expect(file_get_contents($path))- ->toContain('<x-shared-variables.layout')- ->not->toContain('section="shared-variables"');- }-- $layout = file_get_contents(resource_path('views/components/shared-variables/layout.blade.php'));-- expect($layout)- ->toContain("'Overview'")- ->toContain("'Team'")- ->toContain("'Projects'")- ->toContain("'Environments'")- ->toContain("'Servers'")- ->toContain("request()->routeIs('shared-variables.project.*')")- ->toContain('xl:grid-cols-[210px_minmax(0,1fr)]')- ->toContain("'menu-item-active' => \$menuItem['active']");-});--test('shared variables are not registered as dashboard tabs', function () {- $navbar = file_get_contents(resource_path('views/components/dashboard/navbar.blade.php'));-- expect($navbar)- ->not->toContain("'shared-variables' => [")- ->not->toContain('$stackTabsOnMobile')- ->not->toContain('$sharedVariableIcons');-});--test('shared variable collection pages provide search and persistent grid and list views', function () {- $paths = [- resource_path('views/livewire/shared-variables/project/index.blade.php'),- resource_path('views/livewire/shared-variables/environment/index.blade.php'),- resource_path('views/livewire/shared-variables/server/index.blade.php'),- ];-- foreach ($paths as $path) {- expect(file_get_contents($path))- ->toContain('<x-shared-variables.view-controls')- ->toContain("x-show=\"viewMode === 'grid'\"")- ->toContain("x-show=\"viewMode === 'list'\"")- ->toContain('matches(');- }-- $controls = file_get_contents(resource_path('views/components/shared-variables/view-controls.blade.php'));-- expect($controls)- ->toContain('placeholder="Search {{ strtolower($label) }}"')- ->toContain('aria-label="List view"')- ->toContain('aria-label="Grid view"')- ->toContain("localStorage.setItem('{{ \$storageKey }}'");-});--test('shared variables editor places the view toggle in the variables section title', function () {- $editor = file_get_contents(resource_path('views/components/shared-variables/editor.blade.php'));-- expect($editor)- ->toContain('<x-application.settings-section :title="$title" flush>')- ->toContain('<x-slot:actions>')- ->toContain('wire:click="switch"')- ->toContain('Developer view')- ->toContain('Normal view')- ->toMatch('/settings-section[\s\S]{0,300}<x-slot:actions>[\s\S]{0,300}wire:click="switch"/')- ->not->toContain('actionsInTitle');-});--test('shared variables table omits resource-only flag columns', function () {- $editor = file_get_contents(resource_path('views/components/shared-variables/editor.blade.php'));- $show = file_get_contents(resource_path('views/livewire/project/shared/environment-variable/show.blade.php'));- $css = file_get_contents(resource_path('css/app.css'));-- // Shared table: Name / Scope / Comment / Multiline only (no Literal, Buildtime, Runtime).- expect($editor)- ->toContain('env-table-grid-shared')- ->toContain('>Multiline</span>')- ->not->toContain('>Literal</span>')- ->not->toContain('>Buildtime</span>')- ->not->toContain('>Runtime</span>');-- expect($show)- ->toContain('env-table-grid-shared')- ->toContain('$isSharedVariable');-- expect($css)->toContain('.env-table-grid-shared');-});diff --git a/tests/Feature/SidebarNavigationMarkupTest.php b/tests/Feature/SidebarNavigationMarkupTest.phpdeleted file mode 100644index eafb93bb00..0000000000--- a/tests/Feature/SidebarNavigationMarkupTest.php+++ /dev/null@@ -1,181 +0,0 @@-<?php--it('keeps server submenu state independent from the Livewire update route', function () {- $sidebar = file_get_contents(resource_path('views/components/server/sidebar.blade.php'));- $dynamicConfigurations = file_get_contents(resource_path('views/livewire/server/proxy/dynamic-configurations.blade.php'));- $proxyConfiguration = file_get_contents(resource_path('views/livewire/server/proxy/show.blade.php'));- $proxyLogs = file_get_contents(resource_path('views/livewire/server/proxy/logs.blade.php'));-- expect($sidebar)- ->toContain("'active' => \$activeMenu === 'proxy'")- ->toContain("'active' => \$activeSubMenu === 'dynamic-confs'")- ->not->toContain("'active' => request()->routeIs('server.proxy.dynamic-confs')")- ->and($dynamicConfigurations)->toContain('activeSubMenu="dynamic-confs"')- ->and($proxyConfiguration)->toContain('activeSubMenu="configuration"')- ->and($proxyLogs)->toContain('activeSubMenu="logs"');-});--it('keeps the server resources menu active during Livewire updates', function () {- $sidebar = file_get_contents(resource_path('views/components/server/sidebar.blade.php'));-- expect($sidebar)- ->toContain("'label' => 'Resources',\n 'route' => 'server.resources',\n 'active' => \$activeMenu === 'resources'")- ->not->toContain("'active' => request()->routeIs('server.resources')");-});--it('initializes persisted sidebar state before enabling layout transitions', function () {- $layout = file_get_contents(resource_path('views/layouts/app.blade.php'));-- expect($layout)- ->toContain("hasSidebarPreference: localStorage.getItem('sidebarCollapsed') !== null")- ->toContain("userCollapsed: localStorage.getItem('sidebarCollapsed') === 'true'")- ->toContain('return this.hasSidebarPreference ? this.userCollapsed : (this.autoCollapse && this.hasSecondBar);')- ->toContain('this.hasSidebarPreference = true;')- ->toContain('this.userCollapsed = this.collapsed;')- ->toContain("localStorage.setItem('sidebarCollapsed', this.userCollapsed);")- ->toContain('sidebarReady: false')- ->toContain(":class=\"[collapsed ? 'lg:w-16' : 'lg:w-56', sidebarReady ? 'transition-[width] duration-200' : '']\"")- ->toContain(":class=\"[collapsed ? 'lg:ml-16' : 'lg:ml-56', sidebarReady ? 'transition-[margin] duration-200' : '']\"");-});--it('shows the coolify icon in the collapsed desktop brand slot', function () {- $layout = file_get_contents(resource_path('views/layouts/app.blade.php'));-- expect($layout)- ->toContain('x-show="collapsed" x-cloak src="/coolify-logo.svg" alt="Coolify"')- ->not->toContain('>C</span>');-});--it('does not animate navbar padding when restoring collapsed state', function () {- $navbar = file_get_contents(resource_path('views/components/navbar.blade.php'));-- expect($navbar)- ->not->toContain('items-start gap-3 motion-safe:transition-all')- ->not->toContain('overflow-hidden motion-safe:transition-all');-});--it('draws a single border between the desktop sidebar and main content', function () {- $layout = file_get_contents(resource_path('views/layouts/app.blade.php'));- $navbar = file_get_contents(resource_path('views/components/navbar.blade.php'));-- expect($navbar)->toContain('border-r border-neutral-200')- ->and($layout)->not->toContain('lg:border-l border-neutral-200');-});--it('does not separate the desktop sidebar controls with a top border', function () {- $navbar = file_get_contents(resource_path('views/components/navbar.blade.php'));-- expect($navbar)- ->toContain('sticky bottom-0 mt-auto -mx-2 hidden items-center gap-1 bg-white')- ->not->toContain('sticky bottom-0 mt-auto -mx-2 hidden items-center gap-1 border-t');-});--it('draws the desktop header border only above the main content', function () {- $layout = file_get_contents(resource_path('views/layouts/app.blade.php'));-- expect($layout)- ->toContain('flex items-center gap-2 h-full shrink-0 border-r border-neutral-200')- ->toContain('flex h-full items-center gap-0.5 min-w-0 flex-1 border-b border-neutral-200 pl-3 pr-4 dark:border-white/[0.06]')- ->not->toContain('backdrop-blur border-b border-neutral-200 dark:border-white/[0.06]');-});--it('separates the mobile sidebar from the page with a visible border', function () {- $layout = file_get_contents(resource_path('views/layouts/app.blade.php'));-- expect($layout)->toContain('max-w-56 min-w-0 flex-col border-l border-neutral-200 bg-white shadow-xl dark:border-white/[0.12] dark:bg-panel');-});--it('keeps the mobile navbar above floating configuration warnings', function () {- $layout = file_get_contents(resource_path('views/layouts/app.blade.php'));- $popup = file_get_contents(resource_path('views/components/popup-small.blade.php'));-- expect($layout)- ->toContain('class="relative z-[1000] lg:hidden"')- ->and($popup)->toContain('z-999');-});--it('keeps compact configuration warnings the same width as their expanded state', function () {- $popup = file_get_contents(resource_path('views/components/popup-small.blade.php'));-- expect($popup)- ->toContain("? 'w-[calc(100vw-2rem)] max-w-sm cursor-pointer'")- ->toContain(": 'w-[calc(100vw-2rem)] max-w-sm'")- ->not->toContain('sm:w-auto');-});--it('provides configuration warning slots in both desktop and mobile navbars', function () {- $layout = file_get_contents(resource_path('views/layouts/app.blade.php'));-- expect($layout)- ->toContain('id="configuration-warning-hud-slot"')- ->toContain('id="configuration-warning-hud-slot-mobile"');-});--it('shows the full team name in the header', function () {- $layout = file_get_contents(resource_path('views/layouts/app.blade.php'));- $switcher = file_get_contents(resource_path('views/livewire/switch-team.blade.php'));-- expect($layout)- ->toContain('flex min-w-0 flex-1 items-center gap-2.5')- ->toContain('size-8 shrink-0 items-center justify-center rounded-lg')- ->toContain('flex shrink-0 items-center gap-1')- ->and($switcher)- ->toContain('group/team flex h-8 items-center')- ->toContain('whitespace-nowrap text-[13px]')- ->not->toContain('max-w-56 truncate text-[13px]');-});--it('allows more of the team name to display in the desktop breadcrumb', function () {- $breadcrumb = file_get_contents(resource_path('views/components/top-breadcrumb.blade.php'));-- expect($breadcrumb)- ->toContain('class="shrink-0" x-data="{ collapsed: false }"')- ->toContain('<div class="flex min-w-0 items-center gap-0.5 text-[13px]">')- ->not->toContain('<div class="flex w-full min-w-0 items-center gap-0.5 text-[13px]">');-- $switcher = file_get_contents(resource_path('views/livewire/switch-team.blade.php'));-- expect($switcher)->toContain('whitespace-nowrap text-[13px]');-});--it('shows section titles and descriptions above settings navigation on smaller screens', function (string $view, string $title, string $description) {- $layout = file_get_contents(resource_path("views/components/{$view}"));- $css = file_get_contents(resource_path('css/app.css'));-- expect($layout)- ->toContain('<header class="settings-mobile-header xl:hidden">')- ->toContain("<h1 class=\"settings-mobile-title\">{$title}</h1>")- ->toContain("<p class=\"settings-mobile-description\">{$description}</p>")- ->toContain('<section class="application-settings-workspace w-full max-w-[1180px]">')- ->and($css)- ->toContain('.settings-mobile-title')- ->toContain('.settings-mobile-description')- ->toContain('color: #000000;')- ->toContain('.dark .settings-mobile-title')- ->toContain('color: #ffffff;');-})->with([- ['notification/settings-layout.blade.php', 'Notifications', 'Configure how your team receives deployment and system alerts.'],- ['security/settings-layout.blade.php', 'Keys & Tokens', 'Manage SSH keys, cloud credentials, and API access tokens.'],- ['settings/layout.blade.php', 'Instance Settings', 'Configure global settings for this Coolify instance.'],- ['team/settings-layout.blade.php', 'Team', 'Manage your team, members, and access settings.'],-]);--it('uses the structured sidebar and action HUD for server navigation', function () {- $navbar = file_get_contents(resource_path('views/livewire/server/navbar.blade.php'));- $sidebar = file_get_contents(resource_path('views/components/server/sidebar.blade.php'));- $resources = file_get_contents(resource_path('views/livewire/server/resources.blade.php'));- $terminal = file_get_contents(resource_path('views/livewire/project/shared/execute-container-command.blade.php'));-- expect($navbar)- ->toContain('class="hidden xl:fixed xl:top-14 xl:right-4 xl:z-30 xl:flex')- ->toContain('<x-resource-heading-tabs class="hidden" aria-hidden="true">')- ->toContain('dark:bg-coolgray-100! dark:text-white!')- ->and($sidebar)- ->toContain("'label' => 'Proxy'")- ->toContain("'label' => 'Sentinel'")- ->toContain("'label' => 'Resources'")- ->toContain("'label' => 'Terminal'")- ->toContain("'label' => 'Security'")- ->and($resources)->toContain('<x-server.sidebar :server="$server" activeMenu="resources" />')- ->and($terminal)->toContain('<x-server.sidebar :server="$resource" activeMenu="terminal" />');-});diff --git a/tests/Feature/SimpleDockerfileCreateViewTest.php b/tests/Feature/SimpleDockerfileCreateViewTest.phpdeleted file mode 100644index 25c2b1f091..0000000000--- a/tests/Feature/SimpleDockerfileCreateViewTest.php+++ /dev/null@@ -1,7 +0,0 @@-<?php--it('shows a loading indicator while creating the application', function () {- $view = file_get_contents(resource_path('views/livewire/project/new/simple-dockerfile.blade.php'));-- expect($view)->toContain('<x-forms.button type="submit" wire:target="submit" isHighlighted>');-});diff --git a/tests/Feature/SplitUrlInputTest.php b/tests/Feature/SplitUrlInputTest.phpdeleted file mode 100644index 2f317c7974..0000000000--- a/tests/Feature/SplitUrlInputTest.php+++ /dev/null@@ -1,31 +0,0 @@-<?php--it('renders configurable host copy for S3 endpoints', function () {- $html = file_get_contents(resource_path('views/components/forms/domain-input.blade.php'));-- expect($html)- ->toContain('{{ $hostLabel }}')- ->toContain('{{ $hostPlaceholder }}')- ->toContain('wire:model="{{ $id }}.host"')- ->toContain('wire:model="{{ $id }}.port"')- ->toContain('wire:model="{{ $id }}.path"');-});--it('binds URL parts directly to Livewire without Alpine synchronization', function () {- $view = file_get_contents(resource_path('views/components/forms/domain-input.blade.php'));-- expect($view)- ->toContain('wire:model="{{ $id }}.host"')- ->toContain('wire:model="{{ $id }}.port"')- ->not->toContain('x-data=')- ->not->toContain('$watch');-});--it('keeps validation errors attached to the composed endpoint', function () {- $html = file_get_contents(resource_path('views/components/forms/domain-input.blade.php'));-- expect($html)- ->toContain('@error($errorId ?? "{$id}.host")')- ->toContain('href="{{ $validationLink }}"')- ->toContain('Set them here.');-});diff --git a/tests/Feature/StatusBadgeComponentsTest.php b/tests/Feature/StatusBadgeComponentsTest.phpdeleted file mode 100644index 70324034ae..0000000000--- a/tests/Feature/StatusBadgeComponentsTest.php+++ /dev/null@@ -1,146 +0,0 @@-<?php--it('renders application and database statuses as shared status badges', function (string $status, string $expectedText) {- $resource = new class($status)- {- public function __construct(public string $status) {}- };-- $html = view('components.status.index', [- 'resource' => $resource,- 'showRefreshButton' => false,- ])->render();-- expect($html)- ->toContain('inline-flex h-6 max-w-full items-center gap-1.5 whitespace-nowrap rounded-full border')- ->toContain($expectedText)- ->not->toContain('badge-success')- ->not->toContain('badge-warning')- ->not->toContain('badge-error');-})->with([- 'running healthy' => ['running:healthy', 'Running (healthy)'],- 'starting unknown' => ['starting:unknown', 'Starting (unknown)'],- 'degraded unhealthy' => ['degraded:unhealthy', 'Degraded (unhealthy)'],- 'exited unhealthy' => ['exited:unhealthy', 'Stopped'],-]);--it('renders service container statuses as shared status badges', function () {- $html = view('components.status.services', [- 'complexStatus' => 'running:healthy',- 'showRefreshButton' => false,- ])->render();-- expect($html)- ->toContain('inline-flex h-6 max-w-full items-center gap-1.5 whitespace-nowrap rounded-full border')- ->toContain('Running (healthy)')- ->not->toContain('badge-success');-});--it('uses bordered status badges in the top breadcrumb', function () {- $breadcrumb = file_get_contents(resource_path('views/components/top-breadcrumb.blade.php'));- $applicationStatus = file_get_contents(resource_path('views/livewire/project/application/status.blade.php'));- $borderedBadgeClasses = 'rounded-full border border-neutral-200 bg-neutral-100';-- expect(substr_count($breadcrumb.$applicationStatus, $borderedBadgeClasses))->toBe(3)- ->and($applicationStatus)->toContain('<x-status-summary')- ->and(substr_count($breadcrumb, 'rounded-full bg-neutral-100'))->toBe(0);-});--it('keeps compound resource statuses on one line in the top breadcrumb', function () {- foreach (['application', 'database', 'service'] as $resourceType) {- $status = file_get_contents(resource_path("views/livewire/project/{$resourceType}/status.blade.php"));-- expect($status)->toContain('class="flex items-center gap-1"');- }-});--it('renders resource statuses through reactive livewire components', function () {- $breadcrumb = file_get_contents(resource_path('views/components/top-breadcrumb.blade.php'));-- expect($breadcrumb)- ->toContain('<livewire:project.application.status')- ->toContain('<livewire:project.database.status')- ->toContain('<livewire:project.service.status')- ->not->toContain('$applicationStatus = str($currentApplication->status');-});--it('uses a shared refresh badge for resource status refresh actions', function () {- $statusIndex = file_get_contents(resource_path('views/components/status/index.blade.php'));- $serviceStatus = file_get_contents(resource_path('views/components/status/services.blade.php'));-- expect($statusIndex)- ->toContain('<x-status-badge as="button"')- ->toContain("wire:click='manualCheckStatus'")- ->toContain('wire:loading.attr="disabled"')- ->not->toContain('status="Refreshing..."')- ->toContain('wire:loading.attr="disabled"')- ->not->toContain('status="Refreshing..."')- ->not->toContain('<svg');-- expect(file_get_contents(resource_path('views/livewire/project/service/resource-card.blade.php')))- ->toContain('<x-status-badge')- ->toContain('formatContainerStatus($resource->status)');-- expect($serviceStatus)- ->toContain('<x-status-badge as="button"')- ->toContain("wire:click='manualCheckStatus'")- ->not->toContain('<svg');-});--it('renders health warning helpers without increasing the badge row height', function (string $status, string $expectedText) {- $html = view('components.status.running', [- 'status' => $status,- ])->render();- $runningStatus = file_get_contents(resource_path('views/components/status/running.blade.php'));-- expect($html)- ->toContain($expectedText)- ->toContain('class="flex items-center gap-1 leading-none"')- ->toContain('inline-flex h-6 max-w-full items-center gap-1.5 whitespace-nowrap rounded-full border')- ->not->toContain('<svg');-- expect($runningStatus)- ->toContain('<x-status-badge')- ->toContain('class="flex items-center gap-1 leading-none"')- ->not->toContain('class="px-2"')- ->not->toContain('viewBox="0 0 256 256"');-})->with([- 'unknown health' => ['running:unknown', 'No health check'],- 'unhealthy' => ['running:unhealthy', 'Unhealthy'],-]);--it('renders restart counts as warning badges', function () {- $resource = new class- {- public string $status = 'running:unknown';-- public int $restart_count = 9;-- public ?int $max_restart_count = null;-- public ?string $last_restart_type = null;-- public $last_restart_at;-- public function __construct()- {- $this->last_restart_at = now();- }- };-- $html = view('components.status.index', [- 'resource' => $resource,- 'showRefreshButton' => false,- ])->render();- $statusIndex = file_get_contents(resource_path('views/components/status/index.blade.php'));-- expect($html)- ->toContain('9x restarts')- ->toContain('bg-warning')- ->not->toContain('(9x restarts)');-- expect($statusIndex)- ->toContain('<x-status-badge')- ->toContain('restart_count')- ->not->toContain('class="text-xs dark:text-warning"');-});diff --git a/tests/Feature/TeamCreateButtonAccentTest.php b/tests/Feature/TeamCreateButtonAccentTest.phpdeleted file mode 100644index 9136935b42..0000000000--- a/tests/Feature/TeamCreateButtonAccentTest.php+++ /dev/null@@ -1,18 +0,0 @@-<?php--/**- * Create team primary action must use the theme-aware purple/yellow accent,- * not the legacy solid coollabs purple fill.- */-test('create team button uses theme-aware primary accent classes', function () {- $view = file_get_contents(resource_path('views/livewire/team/create.blade.php'));-- expect($view)- ->toContain('Create team')- ->toContain('bg-coollabs/10!')- ->toContain('text-coollabs!')- ->toContain('dark:bg-warning/15!')- ->toContain('dark:text-warning!')- ->not->toContain('bg-coollabs! text-white!')- ->not->toContain('hover:bg-coollabs-100!');-});diff --git a/tests/Feature/TeamSettingsNavigationTest.php b/tests/Feature/TeamSettingsNavigationTest.phpdeleted file mode 100644index 1b0c52a10b..0000000000--- a/tests/Feature/TeamSettingsNavigationTest.php+++ /dev/null@@ -1,45 +0,0 @@-<?php--it('uses shared sidebar navigation for every team settings page', function () {- $sidebar = file_get_contents(resource_path('views/components/team/settings-layout.blade.php'));- $navbar = file_get_contents(resource_path('views/components/dashboard/navbar.blade.php'));-- foreach ([- resource_path('views/livewire/team/index.blade.php'),- resource_path('views/livewire/team/member/index.blade.php'),- resource_path('views/livewire/team/admin-view.blade.php'),- resource_path('views/livewire/team/danger-zone.blade.php'),- ] as $view) {- expect(file_get_contents($view))- ->toContain('<x-team.settings-layout>')- ->not->toContain('<x-team.navbar');- }-- expect($sidebar)- ->toContain("'label' => 'General'")- ->toContain("'label' => 'Members'")- ->toContain("'label' => 'Admin View'")- ->toContain("'label' => 'Danger Zone'")- ->toContain('application-settings-navigation')- ->not->toContain('New team');- expect(file_get_contents(resource_path('views/livewire/team/index.blade.php')))- ->toContain('buttonTitle="New team"')- ->not->toContain('Delete team');- expect(file_get_contents(resource_path('views/livewire/team/danger-zone.blade.php')))- ->toContain('Delete team')- ->toContain('<x-danger-zone title="Delete team">')- ->toContain('<table class="w-full text-left text-sm">')- ->toContain('wire:click="refreshResources"')- ->not->toContain('wire:loading.class="animate-spin"')- ->toContain("route('project.show', ['project_uuid' => \$project->uuid])")- ->toContain("route('server.show', ['server_uuid' => \$server->uuid])")- ->toContain('target="_blank" rel="noopener noreferrer"')- ->not->toContain('currentTeam()->isEmpty()');- expect(file_get_contents(resource_path('views/livewire/switch-team.blade.php')))- ->toContain('New team')- ->toContain('team-switcher-create-expanded')- ->toContain('team-switcher-create-collapsed');- expect($navbar)- ->toContain("request()->routeIs('team.index', 'team.member.index', 'team.admin-view', 'team.danger-zone')")- ->not->toContain("['label' => 'Members', 'route' => 'team.member.index'");-});diff --git a/tests/Feature/TooltipStackingTest.php b/tests/Feature/TooltipStackingTest.phpdeleted file mode 100644index 5875323b15..0000000000--- a/tests/Feature/TooltipStackingTest.php+++ /dev/null@@ -1,14 +0,0 @@-<?php--test('shared tooltips render above toasts and notification banners', function () {- $iconTooltip = file_get_contents(resource_path('views/components/icon-tooltip.blade.php'));- $helper = file_get_contents(resource_path('views/components/helper.blade.php'));- $navbar = file_get_contents(resource_path('views/components/navbar.blade.php'));- $utilities = file_get_contents(resource_path('css/utilities.css'));-- expect($iconTooltip)->toContain('z-[10000]')- ->and($helper)->toContain('z-[10000]')- ->and($navbar)->toContain('z-[10000]')- ->and($utilities)->toContain('@utility auth-tooltip')- ->and($utilities)->toContain('@apply fixed z-[10000]');-});diff --git a/tests/Feature/TopUserMenuTest.php b/tests/Feature/TopUserMenuTest.phpdeleted file mode 100644index 6dff0a9d74..0000000000--- a/tests/Feature/TopUserMenuTest.php+++ /dev/null@@ -1,81 +0,0 @@-<?php--it('renders the same compact profile trigger on all breakpoints', function () {- $menu = file_get_contents(resource_path('views/components/top-user-menu.blade.php'));-- expect($menu)- ->toContain('{{ $userInitial }}')- ->toContain('aria-label="Account menu for {{ $userName }}"')- ->not->toContain('sm:hidden')- ->not->toContain('hidden sm:block max-w-[9rem]')- ->not->toContain('sm:px-3');-});--it('still shows the user name and email inside the dropdown panel', function () {- $menu = file_get_contents(resource_path('views/components/top-user-menu.blade.php'));-- expect($menu)- ->toContain('truncate text-[13px] font-semibold text-black dark:text-fg">{{ $userName }}</div>')- ->toContain('{{ $userEmail }}');-});--it('animates the dropdown panel when the user menu opens', function () {- $menu = file_get_contents(resource_path('views/components/top-user-menu.blade.php'));- $stylesheet = file_get_contents(resource_path('css/app.css'));-- expect($menu)- ->toContain('animate-in fade-in zoom-in-95 duration-150')- ->toContain("'origin-bottom-left' => \$sidebar")- ->toContain("'origin-top-right' => ! \$sidebar");-- expect($stylesheet)->toContain('@import "tw-animate-css";');-});--it('positions the account menu below the mobile trigger', function () {- $menu = file_get_contents(resource_path('views/components/top-user-menu.blade.php'));- $stylesheet = file_get_contents(resource_path('css/app.css'));-- expect($menu)->toContain('top-user-menu-panel');- expect($stylesheet)- ->toContain('.listbox-panel.top-user-menu-panel')- ->toContain('top: calc(100% + 0.25rem) !important;')- ->toContain('transform: none !important;')- ->toContain('max-height: calc(100dvh - 4.5rem) !important;');-});--it('changes appearance from a submenu instead of navigating to a separate page', function () {- $menu = file_get_contents(resource_path('views/components/top-user-menu.blade.php'));-- expect($menu)- ->toContain('appearanceOpen: false')- ->toContain('@click.outside="open = false; appearanceOpen = false"')- ->toContain("theme: localStorage.getItem('theme') === 'purple' ? 'custom' : (localStorage.getItem('theme') || 'dark')")- ->toContain('setTheme(type, closeMenu = true)')- ->toContain("this.setTheme('custom', false)")- ->not->toContain('@change="appearanceOpen = false; open = false"')- ->toContain('this.appearanceOpen = false;')- ->toContain('this.open = false;')- ->toContain('<div x-show="open" x-cloak @class([')- ->not->toContain('<template x-if="open">')- ->not->toContain('x-show.important="open"')- ->not->toContain('<div x-show="open" x-cloak x-transition.opacity.duration.120ms')- ->toContain("['value' => 'light', 'label' => 'Light'")- ->toContain("['value' => 'system', 'label' => 'System'")- ->toContain("['value' => 'dark', 'label' => 'Dark'")- ->toContain('hover:bg-neutral-200 hover:text-neutral-950')- ->not->toContain("route('profile.appearance')");-});--it('offers page width controls inside the appearance menu', function () {- $menu = file_get_contents(resource_path('views/components/top-user-menu.blade.php'));-- expect($menu)- ->toContain("pageWidth: localStorage.getItem('pageWidth') || 'full'")- ->toContain("['value' => 'full', 'label' => 'Full width']")- ->toContain("['value' => 'centered', 'label' => 'Centered']")- ->toContain("@click=\"setWidth('{{ \$option['value'] }}')\"")- ->toContain('Full width')- ->toContain('Centered')- ->toContain("localStorage.setItem('pageWidth', width)")- ->toContain("new CustomEvent('page-width-changed', { detail: width })");-});diff --git a/tests/Feature/TrafficAnalytics/ChartTokensTest.php b/tests/Feature/TrafficAnalytics/ChartTokensTest.phpdeleted file mode 100644index fa6ad02aa2..0000000000--- a/tests/Feature/TrafficAnalytics/ChartTokensTest.php+++ /dev/null@@ -1,209 +0,0 @@-<?php--// Guards the section-C tokenization: the analytics charts must read their colors-// from the shared --chart-* design tokens, not from inlined hex arrays.--it('defines the chart design tokens in the app stylesheet', function () {- $css = file_get_contents(base_path('resources/css/app.css'));-- foreach ([- '--chart-status-2xx',- '--chart-status-3xx',- '--chart-status-4xx',- '--chart-status-5xx',- '--chart-geo-1',- '--chart-geo-2',- '--chart-geo-3',- '--chart-geo-4',- '--chart-geo-5',- '--chart-geo-empty',- ] as $token) {- expect($css)->toContain($token);- }-- // Dark overrides must exist so the palette is a selected dark theme, not a flip.- expect($css)->toContain('.dark {');-});--it('no longer hardcodes status color hex arrays in the analytics views', function () {- $views = [- base_path('resources/views/livewire/analytics.blade.php'),- base_path('resources/views/livewire/project/application/analytics.blade.php'),- ];-- foreach ($views as $view) {- $contents = file_get_contents($view);-- expect($contents)->not->toContain('statusColorsLight');- expect($contents)->not->toContain('statusColorsDark');- // The chart lives in the shared partial; the views just pull it in.- expect($contents)->toContain("@include('livewire.traffic._requests-chart')");- }-});--it('reads its accent color from a design token in the shared requests-chart partial', function () {- $partial = file_get_contents(base_path('resources/views/livewire/traffic/_requests-chart.blade.php'));-- expect($partial)->not->toContain('statusColorsLight');- expect($partial)->not->toContain('statusColorsDark');- expect($partial)->toContain('--chart-status-3xx');-});--it('keeps request values in a compact y-axis outside the plot', function () {- $partial = file_get_contents(base_path('resources/views/livewire/traffic/_requests-chart.blade.php'));-- expect($partial)- ->toContain('minWidth: 28')- ->toContain('maxWidth: 28')- ->toContain('padding: { left: 6, right: 12, top: 12, bottom: 0 }')- ->not->toContain('floating: true')- ->not->toContain('offsetX: 32');-});--it('renders request charts full bleed inside their analytics sections', function () {- foreach ([- base_path('resources/views/livewire/analytics.blade.php'),- base_path('resources/views/livewire/project/application/analytics.blade.php'),- ] as $viewPath) {- $view = file_get_contents($viewPath);-- expect($view)->toContain('id="analytics-requests-section" title="Requests" flush');- }-});--it('blends KPI rows into their analytics section surface', function () {- foreach ([- base_path('resources/views/livewire/analytics.blade.php'),- base_path('resources/views/livewire/project/application/analytics.blade.php'),- ] as $viewPath) {- $view = file_get_contents($viewPath);-- expect($view)- ->toContain('bg-[var(--coollabs-base)]')- ->not->toContain('bg-white px-4 py-3 dark:bg-base');- }-});--it('keeps the analytics KPI skeleton the same height and surface as loaded tiles', function () {- $view = file_get_contents(base_path('resources/views/components/skeleton/tiles.blade.php'));-- expect($view)- ->toContain('bg-[var(--coollabs-base)]')- ->toContain("'Requests', 'Unique visitors', 'Bandwidth', 'Error rate', 'p95 latency'")- ->toContain('tracking-wide text-neutral-500 uppercase dark:text-fg-dim')- ->not->toContain('h-3 w-16')- ->toContain('h-9 w-full rounded')- ->not->toContain('dark:bg-base');-});--it('seeds the requests chart with the server-rendered series', function () {- $partial = file_get_contents(base_path('resources/views/livewire/traffic/_requests-chart.blade.php'));-- expect($partial)- ->toContain("'initialCategories' => array_column(\$series, 'bucket')")- ->toContain("'initialRequests' => \$this->requestsSpark()")- ->toContain('series: [{ name: \'Requests\', data: initialPoints }]');-});--it('waits for lazy Livewire chart elements before initializing ApexCharts', function () {- foreach ([- base_path('resources/views/livewire/traffic/_requests-chart.blade.php'),- base_path('resources/views/livewire/traffic/_device-chart.blade.php'),- ] as $partialPath) {- $partial = file_get_contents($partialPath);-- expect($partial)- ->toContain('requestAnimationFrame(() => {')- ->toContain('if (!el) { return; }');- }-});--it('treats an all-zero device series as no data', function () {- $partial = file_get_contents(base_path('resources/views/livewire/traffic/_device-chart.blade.php'));-- expect($partial)- ->toContain("\$hasDeviceData = array_sum(array_map('intval', \$series)) > 0")- ->toContain('@if (! $hasDeviceData)');-});--it('renders the device chart tooltip with the shared opaque background', function () {- $partial = file_get_contents(base_path('resources/views/livewire/traffic/_device-chart.blade.php'));-- expect($partial)- ->toContain('apexcharts-tooltip-custom')- ->toContain('apexcharts-tooltip-custom-value');-});--it('keeps KPI sparklines axisless after live updates', function () {- $partial = file_get_contents(base_path('resources/views/livewire/traffic/_sparkline.blade.php'));-- expect($partial)- ->toContain('yaxis: { labels: { show: false }')- ->toContain("xaxis: { type: 'datetime', labels: { show: false }, axisBorder: { show: false }, axisTicks: { show: false } }")- ->toContain('grid: { padding: { left: 4, right: 4, top: 0, bottom: 0 } }');-});--it('shows values with local and UTC timestamps in analytics chart tooltips', function () {- $sparkline = file_get_contents(base_path('resources/views/livewire/traffic/_sparkline.blade.php'));- $requestsChart = file_get_contents(base_path('resources/views/livewire/traffic/_requests-chart.blade.php'));-- expect($sparkline)- ->toContain('sparkCategories')- ->toContain('apexcharts-tooltip-custom-value')- ->toContain('formatLocalTimestamp(timestamp)')- ->toContain('formatUtcTimestamp(timestamp)')- ->toContain('Your time:')- ->toContain('UTC:')- ->toContain("timeZoneName: 'short'")- ->toContain("timeZone: 'UTC'");-- expect($requestsChart)- ->toContain('apexcharts-tooltip-custom-value')- ->toContain('formatLocalTimestamp(timestamp)')- ->toContain('formatUtcTimestamp(timestamp)')- ->toContain('Your time:')- ->toContain('UTC:')- ->toContain("timeZoneName: 'short'")- ->toContain("timeZone: 'UTC'");-- foreach ([- app_path('Livewire/Analytics.php'),- // Shared by the application and service analytics tabs.- app_path('Livewire/Project/Shared/ResourceTrafficAnalytics.php'),- app_path('Livewire/Dashboard/TrafficAnalytics.php'),- ] as $component) {- expect(file_get_contents($component))->toContain("'sparkCategories' => array_column(\$this->series, 'bucket')");- }-});--it('registers sparkline refresh listeners without Blade control-flow inside Alpine data', function () {- $partial = file_get_contents(base_path('resources/views/livewire/traffic/_sparkline.blade.php'));-- expect($partial)- ->not->toContain('@if ($event && $key)')- ->toContain('if (event && key)')- ->toContain('this.refreshCleanup = Livewire.on(event')- ->toContain('destroy()');-});--it('lets KPI hover markers overflow without shrinking the chart scale', function () {- $partial = file_get_contents(base_path('resources/views/livewire/traffic/_sparkline.blade.php'));-- expect($partial)- ->toContain('[&_.apexcharts-svg]:overflow-visible!')- ->not->toContain('headroom')- ->toContain('markers: { size: 0, hover: { size: 5, sizeOffset: 2 } }');-});--it('uses the standard page title styling in the analytics view and placeholder', function () {- foreach ([- base_path('resources/views/livewire/analytics.blade.php'),- base_path('resources/views/livewire/analytics-placeholder.blade.php'),- ] as $view) {- $contents = file_get_contents($view);-- expect($contents)- ->toContain('<h1 class="min-w-0 text-[24px]! leading-7! font-semibold! tracking-tight!">Analytics</h1>')- ->not->toContain('<x-reicon name="analytics"');- }-});diff --git a/tests/Feature/ViewToggleSizingTest.php b/tests/Feature/ViewToggleSizingTest.phpdeleted file mode 100644index 1fe5146009..0000000000--- a/tests/Feature/ViewToggleSizingTest.php+++ /dev/null@@ -1,28 +0,0 @@-<?php--it('uses the shared button-height view toggle on every list and grid page', function () {- $paths = [- 'views/components/shared-variables/view-controls.blade.php',- 'views/livewire/project/index.blade.php',- 'views/livewire/project/resource/index.blade.php',- 'views/livewire/project/service/configuration.blade.php',- 'views/livewire/project/show.blade.php',- 'views/livewire/server/index.blade.php',- 'views/livewire/shared/list-search-controls.blade.php',- 'views/livewire/tags/show.blade.php',- ];-- foreach ($paths as $path) {- $contents = file_get_contents(resource_path($path));-- expect($contents)- ->toContain('class="view-toggle')- ->not->toContain('class="flex h-9 items-center rounded-lg border');- }-- $utilities = file_get_contents(resource_path('css/utilities.css'));-- expect($utilities)- ->toContain('@utility view-toggle')- ->toContain('h-8');-});diff --git a/tests/Unit/BodyScrollbarLayoutTest.php b/tests/Unit/BodyScrollbarLayoutTest.phpdeleted file mode 100644index 5a8f961f5c..0000000000--- a/tests/Unit/BodyScrollbarLayoutTest.php+++ /dev/null@@ -1,19 +0,0 @@-<?php--test('app layouts let the root element own vertical scrolling', function (string $layout) {- $contents = file_get_contents(dirname(__DIR__, 2).'/'.$layout);-- expect($contents)->not->toMatch('/<body(?:\s+[^>]*)?class="[^"]*overflow-y-scroll[^"]*"[^>]*>/');-})->with(['resources/views/layouts/base.blade.php']);--test('scroll locking is left to Alpine scrollbar compensation', function () {- $styles = file_get_contents(dirname(__DIR__, 2).'/resources/css/app.css');-- expect($styles)->not->toMatch('/html\s*\{[^}]*scrollbar-gutter:\s*stable;/s');-});--test('desktop navbar uses the document width', function () {- $layout = file_get_contents(dirname(__DIR__, 2).'/resources/views/layouts/app.blade.php');-- expect($layout)->not->toMatch('/class="[^"]*hidden lg:flex fixed top-0 inset-x-0[^"]*w-screen[^"]*"/');-});diff --git a/tests/Unit/DarkModeFocusRingTest.php b/tests/Unit/DarkModeFocusRingTest.phpdeleted file mode 100644index 92929113d3..0000000000--- a/tests/Unit/DarkModeFocusRingTest.php+++ /dev/null@@ -1,7 +0,0 @@-<?php--it('uses a thin warning yellow focus ring in dark mode', function () {- $appStyles = file_get_contents(dirname(__DIR__, 2).'/resources/css/app.css');- expect($appStyles)- ->toContain('ring-2 ring-coollabs dark:ring-1 dark:ring-warning');-});diff --git a/tests/Unit/DescriptionPlaceholderViewTest.php b/tests/Unit/DescriptionPlaceholderViewTest.phpdeleted file mode 100644index 6dc733c0fc..0000000000--- a/tests/Unit/DescriptionPlaceholderViewTest.php+++ /dev/null@@ -1,16 +0,0 @@-<?php--it('does not show placeholder copy when a description is empty', function () {- $views = new RecursiveIteratorIterator(- new RecursiveDirectoryIterator(__DIR__.'/../../resources/views')- );- $viewContents = '';-- foreach ($views as $view) {- if ($view->isFile() && $view->getExtension() === 'php') {- $viewContents .= file_get_contents($view->getPathname());- }- }-- expect($viewContents)->not->toContain('No description');-});diff --git a/tests/Unit/DigitalOceanIconTest.php b/tests/Unit/DigitalOceanIconTest.phpdeleted file mode 100644index ed809c6996..0000000000--- a/tests/Unit/DigitalOceanIconTest.php+++ /dev/null@@ -1,34 +0,0 @@-<?php--it('renders the official DigitalOcean logo path', function () {- $contents = file_get_contents(__DIR__.'/../../resources/views/components/digital-ocean-icon.blade.php');-- expect($contents)- ->toContain('viewBox="0 0 24 24"')- ->toContain('M12.04 0C5.408-.02.005 5.37.005 11.992h4.638')- ->toContain('DigitalOcean');-});--it('does not use the old custom DigitalOcean icon in Blade views', function () {- $oldIconPaths = [- 'M100 42c31.5 0 57 25.5 57 57s-25.5 57-57 57H72v-36h28c11.6 0 21-9.4 21-21s-9.4-21-21-21-21 9.4-21 21H43c0-31.5 25.5-57 57-57z',- 'M43 120h36v36H43zM79 156h28v28H79zM43 156h28v28H43z',- ];-- $bladeFiles = new RecursiveIteratorIterator(- new RecursiveDirectoryIterator(__DIR__.'/../../resources/views')- );-- foreach ($bladeFiles as $bladeFile) {- if (! $bladeFile->isFile() || $bladeFile->getExtension() !== 'php') {- continue;- }-- $contents = file_get_contents($bladeFile->getPathname());-- foreach ($oldIconPaths as $oldIconPath) {- expect($contents)- ->not->toContain($oldIconPath, $bladeFile->getPathname().' contains the old DigitalOcean icon.');- }- }-});diff --git a/tests/Unit/GlobalSearchOsAwareShortcutsTest.php b/tests/Unit/GlobalSearchOsAwareShortcutsTest.phpdeleted file mode 100644index e1362ddb2d..0000000000--- a/tests/Unit/GlobalSearchOsAwareShortcutsTest.php+++ /dev/null@@ -1,23 +0,0 @@-<?php--it('uses OS-aware modifier key labels in the global search palette', function () {- $bladeFile = file_get_contents(__DIR__.'/../../resources/views/livewire/global-search.blade.php');-- expect($bladeFile)- ->toContain('modKeyLabel')- ->toContain("return /Mac|iPhone|iPad|iPod/i.test(platform) || /Mac OS X|Macintosh/i.test(ua) ? '⌘' : 'Ctrl+';")- ->toContain("x-text=\"modKeyLabel + 'K'\"")- ->not->toContain('>⌘K</span>');-});--it('uses OS-aware modifier key labels in the sidebar search trigger', function () {- $bladeFile = file_get_contents(__DIR__.'/../../resources/views/components/navbar.blade.php');-- expect($bladeFile)- ->toContain('modKeyLabel')- ->toContain("return /Mac|iPhone|iPad|iPod/i.test(platform) || /Mac OS X|Macintosh/i.test(ua) ? '⌘' : 'Ctrl+';")- ->toContain(":title=\"'Search (Press / or ' + modKeyLabel + 'K)'\"")- ->toContain("x-text=\"modKeyLabel + 'K'\"")- ->not->toContain('>⌘K</kbd>')- ->not->toContain('title="Search (Press / or ⌘K)"');-});diff --git a/tests/Unit/MobileInputZoomPreventionTest.php b/tests/Unit/MobileInputZoomPreventionTest.phpdeleted file mode 100644index 1122777a80..0000000000--- a/tests/Unit/MobileInputZoomPreventionTest.php+++ /dev/null@@ -1,26 +0,0 @@-<?php--it('uses at least sixteen pixel form controls on mobile to prevent input focus zoom', function (string $stylesheet) {- $css = file_get_contents(dirname(__DIR__, 2).'/'.$stylesheet);- $baseLayerStart = strpos($css, '@layer base {');- $mobileRuleStart = strpos($css, '@media (max-width: 767px)');-- expect($baseLayerStart)->not->toBeFalse()- ->and($mobileRuleStart)->toBeGreaterThan($baseLayerStart)- ->and(substr_count(substr($css, $baseLayerStart, $mobileRuleStart - $baseLayerStart), '{'))- ->toBeGreaterThan(substr_count(substr($css, $baseLayerStart, $mobileRuleStart - $baseLayerStart), '}'))- ->and($css)->toContain(':root input,')- ->and($css)->toContain(':root textarea,')- ->and($css)->toContain(':root select')- ->and($css)->toContain('font-size: 16px !important;');-})->with(['resources/css/app.css']);--it('keeps user zoom enabled in the viewport meta tags', function () {- $layouts = ['resources/views/layouts/base.blade.php'];-- foreach ($layouts as $layout) {- expect(file_get_contents(dirname(__DIR__, 2).'/'.$layout))- ->not->toContain('maximum-scale')- ->not->toContain('user-scalable=no');- }-});diff --git a/tests/Unit/NavbarThemeSwitcherTest.php b/tests/Unit/NavbarThemeSwitcherTest.phpdeleted file mode 100644index 7c3caffbbe..0000000000--- a/tests/Unit/NavbarThemeSwitcherTest.php+++ /dev/null@@ -1,12 +0,0 @@-<?php--test('navbar does not render the removed theme switcher', function () {- $navbar = file_get_contents(__DIR__.'/../../resources/views/components/navbar.blade.php');-- expect($navbar)->not->toContain('cycleTheme()')- ->and($navbar)->not->toContain('aria-label="Theme switcher"')- ->and($navbar)->not->toContain('@click.stop="setTheme(\'light\')"')- ->and($navbar)->not->toContain('@click.stop="setTheme(\'system\')"')- ->and($navbar)->not->toContain('@click.stop="setTheme(\'dark\')"')- ->and($navbar)->not->toContain('<span class="text-left menu-item-label">Theme</span>');-});diff --git a/tests/Unit/RemovedContainerStoppedNotificationTest.php b/tests/Unit/RemovedContainerStoppedNotificationTest.phpdeleted file mode 100644index 016801c69d..0000000000--- a/tests/Unit/RemovedContainerStoppedNotificationTest.php+++ /dev/null@@ -1,11 +0,0 @@-<?php--it('does not keep the unreliable generic stopped container notification path', function () {- $statusAction = file_get_contents(__DIR__.'/../../app/Actions/Docker/GetContainersStatus.php');- $telegramChannel = file_get_contents(__DIR__.'/../../app/Notifications/Channels/TelegramChannel.php');-- expect($statusAction)->not->toContain('ContainerStopped')- ->and($telegramChannel)->not->toContain('ContainerStopped')- ->and(file_exists(__DIR__.'/../../app/Notifications/Container/ContainerStopped.php'))->toBeFalse()- ->and(file_exists(__DIR__.'/../../resources/views/emails/container-stopped.blade.php'))->toBeFalse();-});diff --git a/tests/Unit/ScrollbarColorTest.php b/tests/Unit/ScrollbarColorTest.phpdeleted file mode 100644index 816bdab2ce..0000000000--- a/tests/Unit/ScrollbarColorTest.php+++ /dev/null@@ -1,9 +0,0 @@-<?php--it('uses coollabs purple for scrollbars in dark mode', function () {- $utilities = file_get_contents(dirname(__DIR__, 2).'/resources/css/utilities.css');-- expect($utilities)- ->toContain('dark:scrollbar-thumb-coollabs-100')- ->not->toContain('dark:scrollbar-thumb-warning');-});diff --git a/tests/Unit/SecretManagerLayoutConsistencyTest.php b/tests/Unit/SecretManagerLayoutConsistencyTest.phpdeleted file mode 100644index 82d7f82c34..0000000000--- a/tests/Unit/SecretManagerLayoutConsistencyTest.php+++ /dev/null@@ -1,15 +0,0 @@-<?php--it('shows environment variables before the optional secret manager for every resource type', function (string $view, string $resource) {- $source = file_get_contents(__DIR__."/../../resources/views/livewire/project/{$view}/configuration.blade.php");- $environmentVariables = '<livewire:project.shared.environment-variable.all :resource="$'.$resource.'" />';- $secretManager = '<livewire:project.shared.secret-manager-links :resource="$'.$resource.'" />';-- expect($source)- ->toContain($environmentVariables, $secretManager)- ->and(strpos($source, $environmentVariables))->toBeLessThan(strpos($source, $secretManager));-})->with([- 'application' => ['application', 'application'],- 'database' => ['database', 'database'],- 'service' => ['service', 'service'],-]);diff --git a/tests/Unit/ServerHeaderLayoutTest.php b/tests/Unit/ServerHeaderLayoutTest.phpdeleted file mode 100644index 879d6bb887..0000000000--- a/tests/Unit/ServerHeaderLayoutTest.php+++ /dev/null@@ -1,19 +0,0 @@-<?php--test('server header renders subtitle before status badges', function () {- $navbar = file_get_contents(__DIR__.'/../../resources/views/livewire/server/navbar.blade.php');-- $titlePosition = strpos($navbar, '<h1>Server</h1>');- $subtitlePosition = strpos($navbar, 'data-testid="server-subtitle"');- $statusPosition = strpos($navbar, 'data-testid="server-status-summary"');-- expect($navbar)->not->toContain('class="subtitle"')- ->not->toContain('text-neutral-300')- ->toContain('text-neutral-600 dark:text-neutral-400');-- expect($titlePosition)->not->toBeFalse()- ->and($subtitlePosition)->not->toBeFalse()- ->and($statusPosition)->not->toBeFalse()- ->and($titlePosition)->toBeLessThan($subtitlePosition)- ->and($subtitlePosition)->toBeLessThan($statusPosition);-});diff --git a/tests/Unit/ShadowConsistencyTest.php b/tests/Unit/ShadowConsistencyTest.phpdeleted file mode 100644index 5469915006..0000000000--- a/tests/Unit/ShadowConsistencyTest.php+++ /dev/null@@ -1,57 +0,0 @@-<?php--function cssSource(string $file): string-{- return file_get_contents(__DIR__.'/../../resources/css/'.$file);-}--function bladeSource(string $path): string-{- return file_get_contents(__DIR__.'/../../resources/views/'.$path);-}--it('gives the shared popover surface the dropdown lift, not the modal lift', function () {- $utilities = cssSource('utilities.css');-- expect($utilities)- ->toContain('@utility surface-popover')- ->toContain('var(--shadow-dropdown)');-- // The surface-popover block itself must not fall back to the heavy modal shadow.- preg_match('/@utility surface-popover\s*\{(.*?)\}/s', $utilities, $match);- expect($match[1] ?? '')- ->toContain('var(--shadow-dropdown)')- ->not->toContain('var(--shadow-modal)');-});--it('renders toasts and change-pending popovers with the shared dropdown-level surface', function (string $path) {- $source = bladeSource($path);-- expect($source)- ->toContain('surface-popover')- ->not->toContain('--shadow-modal');-})->with([- 'components/toast.blade.php',- 'components/configuration-warning.blade.php',- 'components/proxy-configuration-warning.blade.php',- 'components/popup-small.blade.php',- 'livewire/deployments-indicator.blade.php',-]);--it('uses the dropdown shadow on floating menus instead of the modal shadow', function (string $path) {- expect(bladeSource($path))- ->toContain('shadow-dropdown')- ->not->toContain('shadow-modal');-})->with([- 'livewire/server/show.blade.php',- 'livewire/project/application/deployment/show.blade.php',-]);--it('gives the command palette the shared dropdown lift', function () {- $app = cssSource('app.css');-- preg_match('/\.command-palette\s*\{(.*?)\}/s', $app, $match);- expect($match[1] ?? '')- ->toContain('var(--shadow-dropdown)')- ->not->toContain('var(--shadow-modal)');-});