Files
Nextcue/source/dist/config.js
T
christianandClaude Opus 5.5 0327d6a9f8 Companion module 0.1.5: settings save even before Resi answers
While the connection wasn't connected, nothing in its settings could be
saved. The saved decoder showed as "??" because the list only fills once
Resi answers, and a cue refresh that had never been saved showed as 0, below
its minimum. Either blocks Save, including the login change that would have
fixed the connection. That's how North Attleboro's connection stayed on a
locked login.

- The saved decoder is always a choice, "(not connected to Resi yet)" until
  Resi answers.
- An upgrade script fills settings an older connection never saved with
  their defaults (and leaves a complete one alone).
- Event details are read once per event instead of on every cue refresh:
  one Resi request fewer every few seconds on a shared account.
- Cue requests share the login/rate-limit hold-off; "Loaded N cues" and
  repeated cue-refresh failures are logged once, not every few seconds.
- "inf0" in the decoder info poll label.

source/config_test.js covers all of it (6 tests; the first fails on 0.1.4).
backoff_test.js 5/5 and the estimator matrix still pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 17:27:34 -04:00

65 lines
1.7 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetConfigFields = GetConfigFields;
function GetConfigFields() {
return [
{
type: 'textinput',
id: 'username',
label: 'Username / Email',
width: 12,
},
{
type: 'dropdown',
id: 'defaultPlayerHardwareId',
label: 'Default decoder/player on startup',
width: 12,
default: '',
choices: [{ id: '', label: '(none)' }],
},
// NEW: polling intervals
{
type: 'number',
id: 'playerPollMs',
label: 'Player position poll (ms)',
width: 6,
min: 250,
max: 30000,
default: 1000,
},
{
type: 'number',
id: 'positionTrimMs',
label: 'Position trim (ms) - only if it still reads behind',
width: 6,
min: -30000,
max: 30000,
default: 0,
},
{
type: 'number',
id: 'cuePollMs',
label: 'Cue list refresh (ms)',
width: 6,
min: 1000,
max: 60000,
default: 5000,
},
{
type: 'number',
id: 'listPollMs',
label: 'User & decoder info poll (ms)',
width: 6,
min: 10000,
max: 3600000,
default: 120000,
},
{
type: 'secret-text',
id: 'password',
label: 'Password',
width: 12,
}
];
}
//# sourceMappingURL=config.js.map