[refactor](trx-frontend-http): rename rig_id API fields to remote

Rename HTTP query params, JSON fields, and scheduler payloads to
use remote names consistently while still accepting legacy `rig_id`
inputs through serde aliases.

Co-authored-by: OpenAI Codex <noreply@openai.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-23 21:54:45 +01:00
parent 2db13da706
commit d8444f35f6
6 changed files with 237 additions and 216 deletions
@@ -511,7 +511,7 @@
const extraBmIds = pendingExtraBmIds.slice();
if (!currentConfig) {
currentConfig = { rig_id: currentRigId, mode: "time_span", entries: [] };
currentConfig = { remote: currentRigId, mode: "time_span", entries: [] };
}
if (!currentConfig.entries) currentConfig.entries = [];
@@ -666,7 +666,7 @@
const mode = modeEl ? modeEl.value : "disabled";
const config = {
rig_id: rig,
remote: rig,
mode,
grayline: null,
entries: [],
@@ -722,7 +722,7 @@
apiDeleteScheduler(rig)
.then(function () {
currentConfig = {
rig_id: rig,
remote: rig,
mode: "disabled",
grayline: null,
entries: [],
@@ -756,7 +756,7 @@
const modeEl = document.getElementById("scheduler-mode-select");
if (modeEl) {
modeEl.addEventListener("change", function () {
if (!currentConfig) currentConfig = { rig_id: currentRigId, mode: modeEl.value, entries: [] };
if (!currentConfig) currentConfig = { remote: currentRigId, mode: modeEl.value, entries: [] };
currentConfig.mode = modeEl.value;
renderScheduler();
});