+
{{ $result['project'] }} /
{{ $result['environment'] }}
@endif
@if (!empty($result['description']))
-
+
{{ Str::limit($result['description'], 80) }}
@endif
@@ -651,8 +677,8 @@ class="px-2 py-0.5 text-xs rounded-full bg-neutral-100 dark:bg-coolgray-300 text
@@ -682,15 +708,16 @@ class="search-result-item w-full text-left block px-4 py-3 hover:bg-yellow-50 da
-
+
{{ $item['name'] }}
@if (isset($item['quickcommand']))
@@ -698,7 +725,8 @@ class="h-5 w-5 text-yellow-600 dark:text-yellow-400" fill="none"
class="text-xs text-neutral-500 dark:text-neutral-400 shrink-0">{{ $item['quickcommand'] }}
@endif
-
+
{{ $item['description'] }}
@@ -706,8 +734,8 @@ class="text-xs text-neutral-500 dark:text-neutral-400 shrink-0">{{ $item['quickc
@@ -792,7 +820,8 @@ class="search-result-item w-full text-left block px-4 py-3 hover:bg-yellow-50 da
class="flex-shrink-0 w-10 h-10 rounded-lg bg-yellow-100 dark:bg-yellow-900/40 flex items-center justify-center">
@@ -860,10 +889,12 @@ class="shrink-0 h-5 w-5 text-yellow-500 dark:text-yellow-400 self-center"
if (firstInput) firstInput.focus();
}, 200);
}
- })" class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
-
+
New Project
@@ -900,10 +931,12 @@ class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5
if (firstInput) firstInput.focus();
}, 200);
}
- })" class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
-
+
New Server
@@ -940,10 +973,12 @@ class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5
if (firstInput) firstInput.focus();
}, 200);
}
- })" class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
-
+
New Team
@@ -980,10 +1015,12 @@ class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5
if (firstInput) firstInput.focus();
}, 200);
}
- })" class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
-
+
New S3 Storage
@@ -1020,10 +1057,12 @@ class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5
if (firstInput) firstInput.focus();
}, 200);
}
- })" class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
-
+
New Private Key
@@ -1060,10 +1099,12 @@ class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5
if (firstInput) firstInput.focus();
}, 200);
}
- })" class="fixed top-0 left-0 lg:px-0 px-4 z-99 flex items-center justify-center w-screen h-screen">
-
+
New GitHub App
@@ -1090,4 +1131,4 @@ class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5
-
\ No newline at end of file
+
diff --git a/tests/Unit/GlobalSearchNewImageQuickActionTest.php b/tests/Unit/GlobalSearchNewImageQuickActionTest.php
new file mode 100644
index 000000000..4ef566ab3
--- /dev/null
+++ b/tests/Unit/GlobalSearchNewImageQuickActionTest.php
@@ -0,0 +1,44 @@
+toContain('item.quickcommand')
+ ->toContain('quickcommand.toLowerCase().includes(trimmed)');
+});
+
+it('ensures GlobalSearch clears search query when starting resource creation', function () {
+ $globalSearchFile = file_get_contents(__DIR__.'/../../app/Livewire/GlobalSearch.php');
+
+ // Check that navigateToResourceCreation clears the search query
+ expect($globalSearchFile)
+ ->toContain('$this->searchQuery = \'\'');
+});
+
+it('ensures GlobalSearch uses Livewire redirect method', function () {
+ $globalSearchFile = file_get_contents(__DIR__.'/../../app/Livewire/GlobalSearch.php');
+
+ // Check that completeResourceCreation uses $this->redirect()
+ expect($globalSearchFile)
+ ->toContain('$this->redirect(route(\'project.resource.create\'');
+});
+
+it('ensures docker-image item has quickcommand with new image', function () {
+ $globalSearchFile = file_get_contents(__DIR__.'/../../app/Livewire/GlobalSearch.php');
+
+ // Check that Docker Image has the correct quickcommand
+ expect($globalSearchFile)
+ ->toContain("'name' => 'Docker Image'")
+ ->toContain("'quickcommand' => '(type: new image)'")
+ ->toContain("'type' => 'docker-image'");
+});