[fix](trx-frontend-http): show all rigs data on map panel regardless of active rig
Remove rig_id filtering from dispatchDecodeMessage and dispatchDecodeBatch so that decode data from all rigs (including remote/non-primary) flows into the map. Also remove the rig_filter query param from decode history fetch so all history is loaded. The existing map rig filter dropdown handles visibility filtering via marker.__trxRigIds. https://claude.ai/code/session_01GGvdXKdEbRBnJa2BjAQuVB Signed-off-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -8408,7 +8408,6 @@ function updateDecodeStatus(text) {
|
|||||||
if (ft2 && ft2.textContent !== "Receiving") ft2.textContent = text;
|
if (ft2 && ft2.textContent !== "Receiving") ft2.textContent = text;
|
||||||
}
|
}
|
||||||
function dispatchDecodeMessage(msg) {
|
function dispatchDecodeMessage(msg) {
|
||||||
if (lastActiveRigId && msg.rig_id && msg.rig_id !== lastActiveRigId) return;
|
|
||||||
if (msg.type === "ais" && window.onServerAis) window.onServerAis(msg);
|
if (msg.type === "ais" && window.onServerAis) window.onServerAis(msg);
|
||||||
if (msg.type === "vdes" && window.onServerVdes) window.onServerVdes(msg);
|
if (msg.type === "vdes" && window.onServerVdes) window.onServerVdes(msg);
|
||||||
if (msg.type === "aprs" && window.onServerAprs) window.onServerAprs(msg);
|
if (msg.type === "aprs" && window.onServerAprs) window.onServerAprs(msg);
|
||||||
@@ -8422,10 +8421,6 @@ function dispatchDecodeMessage(msg) {
|
|||||||
|
|
||||||
function dispatchDecodeBatch(batch) {
|
function dispatchDecodeBatch(batch) {
|
||||||
if (!Array.isArray(batch) || batch.length === 0) return;
|
if (!Array.isArray(batch) || batch.length === 0) return;
|
||||||
if (lastActiveRigId) {
|
|
||||||
batch = batch.filter((m) => !m.rig_id || m.rig_id === lastActiveRigId);
|
|
||||||
if (batch.length === 0) return;
|
|
||||||
}
|
|
||||||
const type = String(batch[0]?.type || "");
|
const type = String(batch[0]?.type || "");
|
||||||
const uniformType = batch.every((msg) => String(msg?.type || "") === type);
|
const uniformType = batch.every((msg) => String(msg?.type || "") === type);
|
||||||
if (uniformType) {
|
if (uniformType) {
|
||||||
@@ -8487,7 +8482,6 @@ function scheduleDecodeHistoryDrainStep(callback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function decodeHistoryUrl() {
|
function decodeHistoryUrl() {
|
||||||
if (lastActiveRigId) return "/decode/history?remote=" + encodeURIComponent(lastActiveRigId);
|
|
||||||
return "/decode/history";
|
return "/decode/history";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user