Commit Graph

33 Commits

Author SHA1 Message Date
7afb4829bc refactor(ui): comprehensive light mode fixes and dashboard cleanup
- Light mode: fix 40+ missing CSS overrides (solid emerald/cyan bg-950,
  300-level text colours, border opacity variants, hover states, violet
  accent, bg-slate-900/30 and /90, bg-rose-950/30, red-950/50)
- Light mode: fix broad bg-gradient-to-br override to only target dark
  banner cards (from-[#1E293B]), preserving coloured user avatar gradients
- Light mode: BookingDetailsModal JSON panel switched to GitHub-Light style
  (bg #f6f8fa) including <pre> override so the general 'pre' rule cannot
  darken it back
- Dashboard: simplify banner (flat card, no gradient/watermark/time-widget)
- Dashboard: reduce visual noise (shorter titles, remove LIVE animated badge,
  remove italic notes quote, neutral checklist items, no footer jargon)
- Dashboard: normalise section-icon colours to slate-400 except Active (emerald)
- Dashboard: replace non-standard Tailwind classes (slate-101/350/905/1000,
  indigo-405, emerald-990) with valid equivalents
- Dashboard: standardise button style to rounded-lg + text-xs across
  Active Reservations and Upcoming cards; add visible borders on Cancel/Purge
2026-06-05 11:08:34 +02:00
33c7b2ba65 fix(light-mode): JSON panel header dark, orange Ansible card overrides
- JSON panel header (bg-slate-900) no longer flips to light gray inside
  the dark terminal block — scoped override keeps it #161b22
- Title text and copy button styled consistently for dark context
- Orange Ansible status card gets proper light-mode colors (orange-50 bg,
  orange-200 border, orange-600 text)
- application/json badge tweaked to text-indigo-400 for consistency
2026-06-05 10:09:52 +02:00
aa5c2332e8 fix(ui): use semi-transparent indigo badge for application/json label 2026-06-05 10:03:46 +02:00
de4aef3d19 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.
2026-06-05 10:02:01 +02:00
7758bcaa02 refactor(ui): remove mock Ansible panel, settings in 3-column grid
BookingDetailsModal: remove static playbook template and fake simulator,
keep only the JSON REST response panel. Settings: drop max-w-2xl,
wrap integration cards in lg:grid-cols-3 so Azure, CheckMK and
Semaphore sit side by side on wide screens.
2026-06-05 09:54:54 +02:00
c428b12352 fix(semaphore): update modal status immediately after manual trigger
Local state tracks in-session triggers so the UI flips to 'Triggered'
without waiting for the parent to re-fetch bookings.
2026-06-05 09:44:33 +02:00
70399a00ec feat(semaphore): trigger Ansible tasks at booking start/end via Semaphore
- Background scheduler checks every 30s for bookings that need setup or teardown
- Per-lab Semaphore template IDs stored on the labs table
- Booking flags track which jobs have been triggered and their Semaphore job IDs
- Immediate teardown triggered when an active booking is cancelled
- Settings UI section for Semaphore API URL, token, and project ID
- Lab template form fields for setup/teardown template IDs
- BookingDetailsModal shows live Ansible job status with manual trigger buttons
2026-06-05 09:39:58 +02:00
11eb06c5ad fix(logbook): system filter as proper type button, default hides system entries 2026-06-05 09:20:52 +02:00
ea9e6c1d46 feat: CheckMK host link in inventory, system logs hidden by default in logbook 2026-06-05 09:16:08 +02:00
20308b53d6 fix(checkmk): correct columns query param format for /objects/host endpoint 2026-06-05 08:57:52 +02:00
744468c13d debug(checkmk): log full host response, add columns param to get state 2026-06-04 15:32:10 +02:00
985178ea84 fix(checkmk): per-host state lookup via /objects/host/{name}, remove batch collection call 2026-06-04 15:27:21 +02:00
15c4e3f6ac debug(checkmk): log raw monitoring response, remove query param, try multiple container keys 2026-06-04 15:22:00 +02:00
7731a1a9af fix(checkmk): add query filter to monitoring endpoint, precise permission guidance in log 2026-06-04 15:17:28 +02:00
9fba11ccd6 fix(checkmk): detect empty monitoring collection, log permission hint + host_config probe 2026-06-04 15:04:19 +02:00
789fe1f8e0 fix(checkmk): add diagnostic log to compare config vs monitoring host IDs 2026-06-04 14:57:19 +02:00
a58b321a50 fix: replace dynamic auth import with static import to silence Vite warning 2026-06-04 14:49:25 +02:00
626871213d fix(checkmk): use monitoring collection endpoint, batch state fetch, clearer Settings hints 2026-06-04 14:48:15 +02:00
59f11356ec fix(checkmk): readable error messages in Logbook, strip HTML from API errors 2026-06-04 14:30:25 +02:00
b223e6dfe9 fix: red error banner readable in light mode 2026-06-04 14:26:32 +02:00
e13e11ce6a feat: log login events in logbook; improve CheckMK error reporting
Successful logins now write a system-type logbook entry.
CheckMK sync reports configuration errors, host-fetch failures,
and per-device sync failures as logbook entries instead of silently
dropping them; inherits effective_attributes IP fallback.
2026-06-04 14:21:05 +02:00
1289e2476c fix: restore configurable redirect URI field – required when APP_URL is not set 2026-06-04 14:09:55 +02:00
f12f92aea8 feat: CheckMK global IP-based integration with enable toggle
Replace per-device CheckMK URL field with a global, IP-based lookup.
The sync job fetches all host configs from CheckMK once per cycle,
matches each device by IP address, and updates its status accordingly.
Devices not found in CheckMK are reset to 'unknown'.

- Add checkmk_enabled / checkmk_api_user settings; toggle in Settings
  mirrors the Entra ID pattern (fields dim when disabled)
- Sync job uses self-scheduling setTimeout so interval changes apply
  without a server restart; POST /api/checkmk/sync for manual triggers
- Status changes and a per-cycle summary are written to the Logbook
- Remove checkMkUrl from Device type, form, list view, and detail panel;
  status badge and CheckMK panel only render when CheckMK is enabled
- Booking offline warning suppressed when CheckMK is disabled
- Topology status dot color driven purely by device.status
2026-06-04 14:07:54 +02:00
e9fb79041e feat: inline label editing for topology links 2026-06-04 13:51:30 +02:00
5769b38f74 feat: env badge in header, inline desc edit, clean up deps
- Header now shows Production/Development with color-coded dot via import.meta.env.PROD
- LinkDashboard: click-to-edit description inline (blur/Enter to save, Escape to cancel)
- LoginPage: fix Azure button label to English
- Remove unused motion and autoprefixer dependencies
2026-06-04 13:42:13 +02:00
b7a3d2086d feat: allow booking offline devices, keep reachability warning 2026-06-04 13:40:32 +02:00
97e1b1a665 feat: Entra ID group restriction, remove redirect URI field, user delete + email edit 2026-06-04 13:10:56 +02:00
c879f84843 fix: lighter input styles in Settings, show required redirect URI for Azure 2026-06-03 16:35:21 +02:00
550acd27b2 fix(light-mode): add blue token overrides for Settings page 2026-06-03 16:21:40 +02:00
34c9822e42 style(settings): polish Settings page – accent gradients, status badges, better field layout 2026-06-03 16:18:36 +02:00
f7999cbe55 fix: remove role gate from Settings, all strings in English 2026-06-03 16:08:05 +02:00
d364aea4c1 feat: Entra ID login + settings page for integrations
- Add SQLite settings table with getSetting/setSetting/getAllSettings helpers
- Implement Azure OAuth2 authorization code flow via @azure/msal-node
- Add public GET /api/auth/config endpoint for frontend activation check
- Add admin-only GET/PUT /api/settings API with masked secret fields
- CheckMK sync reads credentials from DB settings (env vars as fallback)
- New Settings.tsx: Entra ID and CheckMK configuration cards
- LoginPage: "Sign in with Microsoft" button, shown only when Azure is active
- App.tsx: OAuth callback handling (?token=/?auth_error=), Settings tab for admins
2026-06-03 16:02:47 +02:00
eed01b9665 Initial commit 2026-06-03 15:20:06 +02:00