new deployer command

This commit is contained in:
Mark Gregory
2026-09-16 11:53:35 +01:00
parent 5aeeb87b21
commit ce79962289
14 changed files with 31 additions and 43 deletions
-6
View File
@@ -774,12 +774,6 @@ final class TicketShow extends Component
/**
* Add a case-insensitive LIKE condition that works on PostgreSQL and SQLite tests.
*/
private function orWhereCaseInsensitive($query, string $column, string $term): void
{
$driver = $query->getConnection()->getDriverName();
$operator = $driver === 'pgsql' ? $this->gitCommitLikeOperator() : 'LIKE';
$query->orWhere($column, $operator, '%' . $term . '%');
}
/**
* Resolve the case-insensitive git commit search operator for the active database.
+2 -2
View File
@@ -9,7 +9,7 @@ use Modules\Helpdesk\Models\Ticket;
final class TicketPolicy
{
public function viewAny(User $user): bool
public function viewAny(User $_user): bool
{
return true;
}
@@ -21,7 +21,7 @@ final class TicketPolicy
|| (int) $ticket->user_id === (int) $user->id;
}
public function create(User $user): bool
public function create(User $_user): bool
{
return true;
}
@@ -53,11 +53,14 @@
<section class="overflow-hidden rounded-2xl border border-zinc-700 bg-zinc-950 shadow-sm">
<div class="overflow-auto">
<table class="min-w-full border-collapse font-mono text-xs leading-6">
<caption class="sr-only">Data table</caption>
<caption class="sr-only">Source code for {{ $attachmentName }}</caption>
<thead class="sr-only">
<tr><th scope="col">Line</th><th scope="col">Source</th></tr>
</thead>
<tbody>
@foreach ($lines as $index => $line)
<tr class="group hover:bg-zinc-900/80">
<td class="select-none border-r border-zinc-800 bg-zinc-900 px-4 text-right text-zinc-500">{{ $index + 1 }}</td>
<th scope="row" class="select-none border-r border-zinc-800 bg-zinc-900 px-4 text-right font-normal text-zinc-500">{{ $index + 1 }}</th>
<td class="whitespace-pre px-4 text-zinc-100"><code>{{ $line }}</code></td>
</tr>
@endforeach
@@ -1657,7 +1657,7 @@
<style>
[data-helpdesk-sidebar-cards] details > summary::-webkit-details-marker {
display: none;
}
[data-helpdesk-sidebar-cards] details > summary {