"feat: Integrate database WAL for improved data consistency in admin guest requests overview"

This commit is contained in:
2025-05-29 20:23:00 +02:00
parent 351ad68e98
commit 20843c087f
2 changed files with 26 additions and 14 deletions

Binary file not shown.

View File

@@ -311,7 +311,11 @@
<div class="flex justify-between items-center mb-6"> <div class="flex justify-between items-center mb-6">
<div> <div>
<h1 class="text-3xl font-bold text-gray-900">Gastanträge Verwaltung</h1> <h1 class="text-3xl font-bold text-gray-900">Gastanträge Verwaltung</h1>
<p class="text-gray-600 mt-1">Verwalten Sie alle Gastanfragen für 3D-Druckaufträge</p> <p class="text-gray-600 mt-1">Verwalten Sie alle Gastanfragen für 3D-Druckaufträge mit direkter Genehmigung/Ablehnung</p>
<div class="flex items-center mt-2 text-sm text-blue-600">
<i class="fas fa-bolt mr-1"></i>
<span>Neue Funktionen: Direkte Aktionen in der Tabelle • Verbesserte Fehlerbehandlung</span>
</div>
</div> </div>
<div class="flex space-x-2"> <div class="flex space-x-2">
<button id="refreshBtn" class="bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-600 transition-colors"> <button id="refreshBtn" class="bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-600 transition-colors">
@@ -421,27 +425,27 @@
</div> </div>
<div class="overflow-x-auto"> <div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200"> <table class="min-w-full admin-table">
<thead class="bg-gray-50"> <thead>
<tr> <tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"> <th class="text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Antragsteller Antragsteller
</th> </th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"> <th class="text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Datei & Details Datei & Details
</th> </th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"> <th class="status-column text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Status Status & Aktionen
</th> </th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"> <th class="text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Erstellt Erstellt
</th> </th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"> <th class="text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Aktionen Verwaltung
</th> </th>
</tr> </tr>
</thead> </thead>
<tbody id="requestsTable" class="bg-white divide-y divide-gray-200"> <tbody id="requestsTable" class="divide-y divide-gray-200">
<!-- Wird dynamisch gefüllt --> <!-- Wird dynamisch gefüllt -->
</tbody> </tbody>
</table> </table>
@@ -712,9 +716,17 @@ function renderRequestsTable(requests) {
if (requests.length === 0) { if (requests.length === 0) {
const row = document.createElement('tr'); const row = document.createElement('tr');
row.innerHTML = ` row.innerHTML = `
<td colspan="5" class="px-6 py-8 text-center text-gray-500"> <td colspan="5" class="text-center py-12">
<i class="fas fa-inbox text-4xl mb-4"></i> <div class="flex flex-col items-center">
<p>Keine Gastanträge gefunden</p> <div class="w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mb-4">
<i class="fas fa-inbox text-2xl text-gray-400"></i>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-2">Keine Gastanträge gefunden</h3>
<p class="text-gray-500 max-w-sm">
Es gibt derzeit keine Anträge mit den ausgewählten Filterkriterien.
Versuchen Sie andere Filter oder warten Sie auf neue Anfragen.
</p>
</div>
</td> </td>
`; `;
tbody.appendChild(row); tbody.appendChild(row);