feat(ui): make git repository dropdown searchable (#7064)

Co-authored-by: 🏔️ Peak <122374094+peaklabs-dev@users.noreply.github.com>
This commit is contained in:
Favour Chukwuedo
2026-01-04 10:28:15 -08:00
committed by GitHub
parent 787468f73c
commit 571bbe235d

View File

@@ -45,18 +45,11 @@
@if ($repositories->count() > 0) @if ($repositories->count() > 0)
<div class="flex flex-col gap-2 pb-6"> <div class="flex flex-col gap-2 pb-6">
<div class="flex gap-2"> <div class="flex gap-2">
<x-forms.select class="w-full" label="Repository" wire:model="selected_repository_id"> <x-forms.datalist class="w-full" label="Repository" placeholder="Search repositories..." wire:model.live="selected_repository_id">
@foreach ($repositories as $repo) @foreach ($repositories as $repo)
@if ($loop->first) <option value="{{ data_get($repo, 'id') }}">{{ data_get($repo, 'name') }}</option>
<option selected value="{{ data_get($repo, 'id') }}">
{{ data_get($repo, 'name') }}
</option>
@else
<option value="{{ data_get($repo, 'id') }}">{{ data_get($repo, 'name') }}
</option>
@endif
@endforeach @endforeach
</x-forms.select> </x-forms.datalist>
</div> </div>
<x-forms.button wire:click.prevent="loadBranches"> Load Repository </x-forms.button> <x-forms.button wire:click.prevent="loadBranches"> Load Repository </x-forms.button>
</div> </div>