1.5 KiB
1.5 KiB
Web Dashboard Implementation Plan
Execute inline. Reuse Tabler UI; preserve the existing extension bridge.
Goal: Deploy a shared authenticated LAN dashboard with persistent settings and export records.
Spec: docs/web-dashboard-design.md
Architecture: Separate dashboard HTTP server, local persistent store, existing loopback exporter with record callback; locally hosted Tabler assets.
- Write and run failing store tests: defaults, two times validation, optimistic concurrency, user roles and password hashing, persistent job records.
- Implement
src/dashboard-store.cjsandsrc/schedule.cjs; run store tests. - Write and run failing HTTP tests: loopback-only bootstrap, sessions, authorization, same-origin mutation, configuration restart persistence and PDF download containment.
- Implement
src/dashboard.cjs, connect export status callbacks insrc/server.cjs. - Install pinned
@tabler/core; adapt existing Tabler sidebar/cards/tables/forms inweb/, preserve license. - Add login/bootstrap, overview, export records, sending plan, templates/groups, users and audit pages with real API bindings.
- Verify full test suite, launch local dashboard, inspect desktop layout and actual save/reload via browser. Narrow viewport override did not change the IAB dimensions; mobile acceptance remains pending.
- Document LAN host/port, deployment-machine setup and pending table/template integration. Do not enable mail sending.