Support multiple sysops and bulletin comments; complete UI translations

Allow native SYSOP accounts to sign in independently, with an optional sysopUsers allow-list and isolated browser sessions. Keep station services on the configured service account.

Add public bulletin comments that preserve category and distribution, alongside private replies to the author. Complete APRS and dynamic status translations and handle decorated button labels correctly.

Document configuration and reply behavior. Add authentication, installer, bulletin reply and translation regression coverage.
This commit is contained in:
alberto committed 2026-10-19 13:04:39 +02:00
1 parent 33f1294405
commit 2ef3c25eb3
16 files changed
+298 -23

No files matched your search

+10
View File
@@ -86,3 +86,13 @@ test('PowerShell startup confirms readiness, handles duplicate starts, restart a
test('installer language defaults can be selected, preserved and validated',async t=>{
const f=await fixture(t);const plan=await prepareInstall({...f.options,language:'en'},{probe});assert.equal(plan.config.language,'en');await saveInstall(plan);assert.equal((await prepareInstall(f.options,{probe})).config.language,'en');assert.equal((await prepareInstall({...f.options,language:'it'},{probe})).config.language,'it');await assert.rejects(prepareInstall({...f.options,language:'fr'},{probe}),/language/);assert.equal(parseArgs(['--language','en']).language,'en');
});
test('installer preserves the sysop allow-list for the same station, validates it and clears it for a different station',async t=>{
const f=await fixture(t),saved={bpqRoot:f.root,sysopUser:'admin',sysopUsers:['OPERATOR']};
await fs.writeFile(f.options.configPath,JSON.stringify(saved));
const plan=await prepareInstall(f.options,{probe});assert.deepEqual(plan.config.sysopUsers,['OPERATOR']);await saveInstall(plan);
assert.equal((await saveInstall(await prepareInstall(f.options,{probe}))).changed,false);
await fs.writeFile(f.options.configPath,JSON.stringify({...saved,sysopUsers:['missing']}));await assert.rejects(prepareInstall(f.options,{probe}),/sysopUsers/);
const other=path.join(f.dir,'other-station');await fs.mkdir(other);await fs.writeFile(path.join(other,'BPQ32.cfg'),cfg('ARDOP','N8OTHER'));
assert.equal((await prepareInstall({...f.options,bpqRoot:other},{probe})).config.sysopUsers,undefined);
});