Bells, Clock and General tabs ran a silent "reconcile" on mount that read
the device config and wrote any drift straight to Firestore, with no user
action. Combined with oldest-first ack matching (backend health-check pongs
and other tabs' replies resolved bells.get_config), this wrote 16-item
bellOutputs on load and emptied them on tab switch.
- Remove the auto-write reconciles from Bells/Clock/General tabs
- useDeviceCommand: match acks to commands by payload.type (ping->pong,
playback.* -> playback), ignore health-check pongs, drop late replies,
register pending entries before the POST
- update_device: write nested maps as dotted field paths so only the sent
leaves are touched, never the whole parent map
- Clock modals: stop re-sending the whole clockSettings copy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Console side of the firmware 3.x TimeKeeper overhaul (project-vesper
F-079/F-081/F-083). The Clock tab's "Network & Time" card was read-only and
showed fields the firmware no longer reports, and both analog clocks drew
the browser's own time.
- Time & Timezone card: device local time, zone, mode, UTC offset, DST state
(incl. expired manual dates), next change, RTC synced. Read live from the
device (system.get_time, clock.get_timezone) - the device is the source of
truth for time settings; nothing about them is mirrored to Firestore.
- EditTimezoneModal: Automatic (country -> zone from the backend timezone
table, or a custom yearly rule built into a POSIX string), Manual DST (std
offset, amount, this season's start/end), Fixed, Local only.
- SetDeviceTimeModal: this computer's UTC time, or a typed local time.
- NTP Sync card + NtpSettingsModal: automatic on/off, nightly time, servers,
last result/drift; Sync Now queues clock.sync_ntp and polls clock.get_ntp.
- SyncClockModal (was a placeholder): pause, enter what the face shows,
clock.set_face + resume.
- EditClockSettingsModal: face sync policy force/smart + max wait; mirrored
as clockSettings.faceSyncMode / smartMaxWaitMin (added to the backend model,
which silently dropped unknown keys - the old gmtOffsetSec/ntpServer mirror
never persisted, so those dead drift checks are removed).
- Device Time / Clocktower clocks now show the device's wall clock and the
real face position (refreshed every 30 s while the clock runs).
Live reads are chained after the existing clock.get_config drift check and
face polling pauses while a modal or Sync Now is sending, because device
replies are matched FIFO without a request id.
Stage 5 of project-vesper docs/features/timekeeper-overhaul.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adopts useDeviceCommand across DeviceDetail and its tabs so config
changes (log levels, clock settings, bell outputs, alert thresholds,
backlight, attributes) are sent to the device immediately via
control commands and only persisted to Firestore once the device
acks success, instead of writing Firestore first and hoping the
device eventually picks it up.
- GeneralTab: log-level sliders now call log.set_serial/sd/mqtt
directly and revert on failure; a background log.get_config +
network.info pull reconciles Firestore against the device's actual
state once per mount
- ClockTab, BellsTab, ControlTab, and the Edit* modals: same
live-command-then-persist pattern
- EditLoggingModal is removed — its job (log level editing) moved
inline into GeneralTab's sliders, so a modal round-trip is no
longer needed
- DeviceDetail wires the shared useDeviceCommand connection through
to each tab and adds a Health tab entry
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>