Skip to content

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

Closed
SamoTech wants to merge 5 commits into
mainfrom
feat/kiwi-waterfall-ui-v2
Closed

SamoTech wants to merge 5 commits into
mainfrom
feat/kiwi-waterfall-ui-v2

Conversation

@SamoTech

Copy link
Copy Markdown
Owner

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).

@gitguardian

gitguardian Bot commented Nov 22, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
40869457 Triggered Generic High Entropy Secret 7cba264 tests/kiwi-waterfall-ui.test.cjs View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Copy link
Copy Markdown
Owner Author

Superseded by #182 (merged b394601). Same change set rebuilt on a clean history from main: GitGuardian scans all commits in a PR, and this PR history contains commit 7cba264 which introduced the fake-UUID test fixture, so it could never go green here. The v3 branch carries the identical 9 files, fake-UUID-free, and is now on main. Closing as superseded.

@SamoTech SamoTech closed this Nov 22, 2026
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