Skip to content

feat(sdr): wire native Kiwi waterfall UI into the Kiwi dialog (ROADMAP #158 / SDR-3B) - #182

Merged
SamoTech merged 4 commits into
mainfrom
feat/kiwi-waterfall-ui-v3
Nov 22, 2026
Merged

SamoTech merged 4 commits into
mainfrom
feat/kiwi-waterfall-ui-v3

Conversation

@SamoTech

Copy link
Copy Markdown
Owner

Supersedes #181 (same change set, clean history): GitGuardian scans all commits in a PR, and #181 contains the original commit 7cba264 that introduced a fake-UUID test fixture, so a fix commit on top can never clear it. This branch was rebuilt from main with the same 9 files, fake-UUID-free.

Implements ROADMAP #158 / SDR-3B: the native Kiwi waterfall UI.

  • Kiwi dialog now shows a waterfall canvas (#kiwi-waterfall, 900x140) + status line (#kiwi-waterfall-status) under the audio player, following the OpenWebRX waterfall pattern (paint throttled to ~10fps, hidden until the first real row, cleared on close), with 5 new STR keys (kiwi_waterfall, kiwi_wf_waiting, kiwi_wf_live, kiwi_wf_unavailable, kiwi_wf_direct) in ar + en.
  • When an SND session becomes ready (auth + audio rate) the client sends SET wf_lease once, on relay-mediated sessions only (http receivers, 832 of 834 catalog rows). A live probe on 22 Nov 2026 against EA8BFK v1.902 proved a real KiwiSDR server ignores the unknown SET wf_lease and keeps the SND session alive for 40 s, so the request is safe for audio even on the currently deployed (pre-WF) Worker, which forwards it upstream verbatim.
  • MSG wf_lease= opens one KiwiWaterfallSession (bridge = relay origin, single-use lease); a malformed token is ignored with no session. Direct (https) receivers have no lease at all and show the direct-connection note.
  • Graceful, honest degradation: any waterfall failure (no /kiwi/wf route on the deployed Worker yet, closed connection, first-row timeout) shows only a localized note (Waterfall not available yet - audio keeps working) and never touches audio; no automatic retry, and no live waterfall is claimed before the owner deploys /kiwi/wf. Closing audio closes the waterfall session and clears the canvas.
  • SW v100 -> v101 (index.html, sdr.mjs, css/styles.css are in SHELL). README + ROADMAP + docs/PROJECT_STATUS.md synced in the same PR.

Tests (local gates green): Node 231/231 (incl. 10 new tests in tests/kiwi-waterfall-ui.test.cjs: i18n keys both languages, SET wf_lease once for relay / never for direct, session start from a valid token, malformed tokens ignored, first-row paint + 95 ms throttle, WF failure leaves audio running, direct note, close cleanup; one assertion in tests/kiwi-native.test.cjs updated for the trailing SET wf_lease), Python 129 OK, node --check on changed JS.

Not run (test-driven only): slow-3G / audible checks. Live waterfall verification is impossible until the owner deploys /kiwi/wf on the Cloudflare Worker (owner-only).

@SamoTech
SamoTech merged commit b394601 into main Nov 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant