From de4aef3d1908110555ea4ffeba843707509aed6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Br=C3=BCckner?= Date: Fri, 5 Jun 2026 10:02:01 +0200 Subject: [PATCH] fix(logbook): remove 'All incl. System' filter, Ansible triggers as booking logs Ansible trigger successes now logged as type 'booking' so they appear in the default filter view. Removed the redundant 'All incl. System' filter button. --- server.ts | 2 +- src/components/Logbook.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server.ts b/server.ts index d85ae4a..f327a0c 100644 --- a/server.ts +++ b/server.ts @@ -874,7 +874,7 @@ async function startServer() { const data = await res.json() as { id?: number }; const jobId = data?.id ?? null; db.prepare('INSERT INTO logs (id, timestamp, type, message) VALUES (?, ?, ?, ?)') - .run(uid('log'), now, 'system', `Semaphore: triggered template #${templateId} → job #${jobId} (booking ${extraVars.booking_id}).`); + .run(uid('log'), now, 'booking', `Semaphore: triggered template #${templateId} → job #${jobId} (booking ${extraVars.booking_id}).`); return jobId; } catch (err: any) { const msg = `Semaphore trigger failed for template #${templateId} — ${err?.message ?? err}`; diff --git a/src/components/Logbook.tsx b/src/components/Logbook.tsx index 3a2a6d6..b6e9e19 100644 --- a/src/components/Logbook.tsx +++ b/src/components/Logbook.tsx @@ -131,7 +131,6 @@ export default function Logbook({ logs, devices, users, currentUser, onAddLog }: { key: 'maintenance',label: 'Maintenance' }, { key: 'status', label: 'Status' }, { key: 'system', label: 'System' }, - { key: 'all', label: 'All incl. System' }, ].map(({ key, label }) => (