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.
This commit is contained in:
Brückner
2026-06-05 10:02:01 +02:00
parent 7758bcaa02
commit de4aef3d19
2 changed files with 1 additions and 2 deletions

View File

@ -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}`;

View File

@ -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 }) => (
<button
key={key}