Add bot logs
All checks were successful
Deploy App / deploy (push) Successful in 11s

This commit is contained in:
2025-08-31 21:54:18 +02:00
parent 77ebc6bce1
commit 378355ad5b
16 changed files with 355 additions and 20 deletions

View File

@@ -1,13 +1,27 @@
<div>
<table class="table w-full">
<div class="flex gap-2 my-auto mb-4">
<input
type="text"
wire:model="query"
wire:keydown.debounce.500ms="search"
class="border p-2 rounded"
placeholder="Search bots"
/>
</div>
<div wire:loading wire:target.delay.longer="search">
Searching
<i class="fas fa-spinner fa-spin"></i>
</div>
<table class="table w-full" wire:loading.remove>
<thead>
<tr>
<th class="border px-4 py-2">Name</th>
<th class="border px-4 py-2">Schema</th>
<th class="border px-4 py-2">Schedule</th>
<th class="border px-4 py-2">Next due</th>
<th class="border px-4 py-2">Enabled</th>
<th class="border px-4 py-2">Actions</th>
<th class="px-4 py-2">Name</th>
<th class="px-4 py-2">Schema</th>
<th class="px-4 py-2">Schedule</th>
<th class="px-4 py-2">Next due</th>
<th class="px-4 py-2">Enabled</th>
<th class="px-4 py-2">Actions</th>
</tr>
</thead>
<tbody class="text-center">
@@ -16,7 +30,7 @@
<td class="px-4 py-2">
<a
wire:navigate
href="{{ route('bots.edit', $bot) }}"
href="{{ route('bots.show', $bot) }}"
class="text-blue-500"
>
{{ $bot->name }}
@@ -37,7 +51,7 @@
wire:click="toggleBot({{ $bot->id }})"
/>
</td>
<td>
<td class="text-xs">
<button
wire:click="runBot({{ $bot->id }})"
class="ml-4 cursor-pointer"