- Load events with a serial lists the shared EventRef shape as a table: index,
time, type, PVS and the three peaks (or —), each row with its own Download.
- Download POSTs the row's event_id; SFM checks and stores it. The status bar
says what was stored (or that it already was), and the stored event opens
in the viewer. A refusal shows the server's detail verbatim.
- eventView() (device-routing block, Node-tested) reads both event shapes for
the table, the chips and the peaks bar.
- A list loaded without a serial keeps the chips and the per-index Load /
Save / Download buttons, unchanged; for a serial-loaded list those buttons
are off with a tooltip pointing at the rows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
- A Serial field beside host/port. With one, the Live tabs use the serial-based
endpoints (both series); without, every read behaves as before.
- The series badge, Hang up (Series 4), Diagnostics (Series 3), call-home read and
the disabled config/call-home writes all follow applyControls() <- controlsFor()
on the unit's own /device/info answer; editing the serial, host or port drops
the confirmation. Erase additionally needs a confirmed Series 3.
- Every /device/ request goes through deviceRequest/deviceFetch <- deviceUrl
(a static test enforces it); the legacy per-event routes joined deviceUrl
(event_waveform / event_file, index in the path).
- The status panel and Device tab read both shapes (shared and legacy).
- In serial mode the connect skips the legacy storage_range read (one connection
fewer; a Micromate has no such route). Start/stop without a serial behave as
before; with one, only for a confirmed series.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
One block of sfm_webapp.html (/* <device-routing> */) holds every rule that
decides where a /device/ request goes or whether a series-specific control is
live: seriesFromSerial, unitQuery, deviceUrl, confirmedSeries, controlsFor,
changeSummary, downloadSummary. No DOM, no fetch, so the tests run it in Node.
The safety rules it pins: a control follows the unit's own /device/info answer,
never a typed serial alone, and stops counting when the serial is edited;
Diagnostics only for a confirmed Series 3, Hang up only for Series 4; config and
call-home writes off for both series until phases 4-5. Also a test that the
page's inline scripts parse together (shared global scope).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44