mirror of
https://github.com/tiennm99/coolify.git
synced 2026-05-13 16:58:10 +00:00
refactor: improve cloud-init script management UI and cache control
- Add manual cache clearing command (search:clear) for testing - Integrate cloud-init scripts into global search navigation - Improve form UX by preventing field reset during edit operations 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -79,6 +79,7 @@ class GlobalSearch extends Component
|
||||
|
||||
public function openSearchModal()
|
||||
{
|
||||
sleep(4);
|
||||
$this->isModalOpen = true;
|
||||
$this->loadSearchableItems();
|
||||
$this->loadCreatableItems();
|
||||
|
||||
@@ -290,22 +290,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Debug: Show data loaded (temporary) -->
|
||||
{{-- <div x-show="!isLoadingInitialData && searchQuery === '' && allSearchableItems.length > 0" x-cloak
|
||||
class="mt-2 bg-white dark:bg-coolgray-100 rounded-lg shadow-xl ring-1 ring-neutral-200 dark:ring-coolgray-300 overflow-hidden p-6">
|
||||
<div class="text-center">
|
||||
<p class="text-sm font-semibold text-green-600 dark:text-green-400">
|
||||
✓ Data loaded successfully!
|
||||
</p>
|
||||
<p class="text-xs text-neutral-500 dark:text-neutral-400 mt-2">
|
||||
<span x-text="allSearchableItems.length"></span> searchable items available
|
||||
</p>
|
||||
<p class="text-xs text-neutral-400 dark:text-neutral-500 mt-1">
|
||||
Start typing to search...
|
||||
</p>
|
||||
</div>
|
||||
</div> --}}
|
||||
|
||||
<!-- Search results (with background) -->
|
||||
<div x-show="searchQuery.length >= 1" x-cloak
|
||||
class="mt-2 bg-white dark:bg-coolgray-100 rounded-lg shadow-xl ring-1 ring-neutral-200 dark:ring-coolgray-300 overflow-hidden">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<form wire:submit='save' class="flex flex-col gap-4">
|
||||
<form wire:submit='save' class="flex flex-col gap-4 w-full">
|
||||
<x-forms.input id="name" label="Script Name" helper="A descriptive name for this cloud-init script." required />
|
||||
|
||||
<x-forms.textarea id="script" label="Script Content" rows="12"
|
||||
@@ -14,4 +14,4 @@
|
||||
{{ $scriptId ? 'Update Script' : 'Create Script' }}
|
||||
</x-forms.button>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
Reference in New Issue
Block a user