[fix](trx-frontend-http): restore tabs and relocate peak hold

Co-authored-by: OpenAI Codex <codex@openai.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-02-28 01:08:56 +01:00
parent 7d9a00cc4e
commit 7258ea57b2
2 changed files with 12 additions and 14 deletions
@@ -328,7 +328,6 @@ const ownerSubtitle = document.getElementById("owner-subtitle");
const loadingTitle = document.getElementById("loading-title");
const loadingSub = document.getElementById("loading-sub");
const overviewCanvas = document.getElementById("overview-canvas");
const overviewLabel = document.getElementById("overview-label");
const overviewPeakHoldEl = document.getElementById("overview-peak-hold");
const themeToggleBtn = document.getElementById("theme-toggle");
const headerRigSwitchSelect = document.getElementById("header-rig-switch-select");
@@ -582,10 +581,8 @@ function drawHeaderSignalGraph() {
ctx.scale(dpr, dpr);
ctx.clearRect(0, 0, w, h);
if (lastSpectrumData && overviewWaterfallRows.length > 0) {
if (overviewLabel) overviewLabel.textContent = "Waterfall";
drawOverviewWaterfall(ctx, w, h, isLight);
} else {
if (overviewLabel) overviewLabel.textContent = "Signal History";
drawOverviewSignalHistory(ctx, w, h, isLight);
}
ctx.restore();
@@ -878,7 +875,9 @@ function updateFooterBuildInfo() {
}
function updateTitle() {
document.getElementById("rig-title").textContent = originalTitle;
const titleEl = document.getElementById("rig-title");
if (!titleEl) return;
titleEl.textContent = serverVersion ? `trx-rs v${serverVersion}` : "trx-rs";
}
function render(update) {
@@ -38,16 +38,6 @@
</div>
</div>
<div class="overview-strip">
<div class="overview-toolbar">
<label class="overview-control">Peak Hold
<select id="overview-peak-hold" class="status-input">
<option value="500">0.5 s</option>
<option value="1000">1 s</option>
<option value="2000" selected>2 s</option>
<option value="5000">5 s</option>
</select>
</label>
</div>
<canvas id="overview-canvas" aria-hidden="true"></canvas>
</div>
<!-- Auth gate (hidden by default, shown if auth is required) -->
@@ -82,6 +72,14 @@
<button id="spectrum-bw-set-btn" type="button">Set</button>
</div>
<div id="spectrum-level-row">
<label class="overview-control" id="spectrum-peak-hold-label">Peak Hold
<select id="overview-peak-hold" class="status-input">
<option value="500">0.5 s</option>
<option value="1000">1 s</option>
<option value="2000" selected>2 s</option>
<option value="5000">5 s</option>
</select>
</label>
<label id="spectrum-floor-label">Floor <input type="number" id="spectrum-floor-input" value="-115" step="5" /> dB</label>
<button id="spectrum-auto-btn" type="button">Auto</button>
</div>
@@ -210,6 +208,7 @@
</div>
</div>
</div>
</div>
<div id="tab-plugins" class="tab-panel" style="display:none;">
<div class="sub-tab-bar">
<button class="sub-tab active" data-subtab="overview">Overview</button>