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

+25 -4
View File
@@ -8,9 +8,30 @@ Use the Italian / UK flag switch in the login screen or dashboard header to sele
Interface copy is maintained in `public/i18n.js`; add new UI phrases and parameterised status patterns there. Mark custom data widgets with `data-no-i18n` so their content is preserved.
## Sysop accounts
Every Telnet `USER=` account with the `SYSOP` flag in `BPQ32.cfg` can sign in with its own username and password. Usernames are case-insensitive; passwords are case-sensitive. Normal BPQ users cannot sign in. Each browser session has its own identity, cookie and CSRF token; signing out of one session leaves other sessions active. The profile shows the signed-in user's callsign.
`sysopUser` in `console.config.json` selects the station's service account. Terminal connections, the shared Chat, Monitor and native BBS operations continue to use that account. All authorised sysops administer the same station, BBS and Winlink mailbox; logging in with another callsign does not create a separate mailbox or change the station identity.
To restrict Console access to particular native sysops, add the optional `sysopUsers` allow-list:
```json
{
"sysopUser": "admin",
"sysopUsers": ["admin", "Marco"]
}
```
Use existing BPQ usernames, not callsigns. Every listed account must already have the native `SYSOP` flag. Entries are case-insensitive; credentials remain exclusively in `BPQ32.cfg`. Omitting `sysopUsers` allows all native sysops; an empty array allows nobody. Invalid lists stop startup/installation instead of being ignored. Restart BPQ Console after changing the list; BPQ does not need a restart. Reinstallation preserves the list for the same station folder and resets it when installing against another station.
## Bulletin comments and private replies
The BBS reader offers **Comment** for bulletins: it creates a new bulletin (`B`) addressed to the original category and distribution, for example `NEWS@WW`. **Reply** creates a personal message (`P`) addressed to the author. Personal messages only show Reply. Both actions open an editable draft with the original subject prefixed by `Re:` and the quoted text; nothing is published until Save and queue is selected. Comments use BPQ's normal bulletin forwarding rules and do not modify the original message.
## Message deletion
Deleting BBS or Winlink messages requires the configured Console sysop login and CSRF token. The Console opens a fresh BPQ WebMail session, issues the native delete action and verifies that the message disappeared or has status `K`. If WebMail rejects deleting another author’s bulletin, the authenticated sysop Console uses BPQ’s local administrative message action, preserving the other message fields and changing only status to `K`. BPQ updates its own database and forwarding flags. No account flags are changed. Already deleted messages are handled safely; failures are displayed inside the confirmation dialog.
Deleting BBS or Winlink messages requires an authorised Console sysop login and that session's CSRF token. The Console opens a fresh BPQ WebMail session, issues the native delete action and verifies that the message disappeared or has status `K`. If WebMail rejects deleting another author’s bulletin, the authenticated sysop Console uses BPQ’s local administrative message action, preserving the other message fields and changing only status to `K`. BPQ updates its own database and forwarding flags. No account flags are changed. Already deleted messages are handled safely; failures are displayed inside the confirmation dialog.
## Winlink attachments
@@ -27,7 +48,7 @@ Terminal and Chat read `LOGINPROMPT` and `PASSWORDPROMPT` from the Telnet port i
- Windows and Windows PowerShell 5.1 or later.
- Node.js 20 or later. A portable `node.exe` can be selected with `-NodeExe`.
- BPQ32 installed and running, with `HTTPPORT` configured in its Telnet driver.
- A Telnet `USER` with the `sysop` role. The panel accepts the selected sysop account; its password stays in `BPQ32.cfg`.
- A Telnet `USER` with the `sysop` role. The panel accepts native SYSOP accounts, subject to the optional `sysopUsers` allow-list; passwords stay in `BPQ32.cfg`.
- Optional: BPQMail for BBS/Winlink, BPQChat and `TCPPORT` for chat, `FBBPORT` for the monitor. The terminal only needs `TCPPORT`.
Service detection recognises the `BBS` and `CHAT` application command names, case-insensitively. Those applications must actually be running to use their pages. The installer does not install BPQ, configure a modem, change radio frequencies or create forwarding partners.
@@ -54,7 +75,7 @@ Install and start:
.\Install.ps1
```
Open **http://127.0.0.1:8090** and sign in with the selected BPQ Telnet sysop account. No `npm install` or build step is required.
Open **http://127.0.0.1:8090** and sign in with an authorised BPQ Telnet SYSOP account. No `npm install` or build step is required.
Detection uses an explicit `-BpqRoot`, `BPQ_ROOT`, the previously saved data folder, `%APPDATA%\BPQ32`, or the folders of running BPQ processes. The HTTP check must identify BPQ before any configuration is written. `-CheckOnly` never saves configuration, starts the panel, registers a task or changes the firewall, even if other switches are present.
@@ -70,7 +91,7 @@ Explicit settings:
| `-Port` | Web panel port, 1024–65535; default 8090 on first install. |
| `-HttpPort` | BPQ HTTP port; defaults to the Telnet driver setting. Must differ from the panel port. |
| `-RadioPort` | Existing BPQ radio port number. The first is selected initially; multiple modems produce a warning. |
| `-SysopUser` | Existing sysop user; defaults to the first on initial installation. |
| `-SysopUser` | Native sysop account used by Terminal, Chat and station services; defaults to the first on initial installation. Console logins are controlled separately by `sysopUsers`. |
| `-ForwardPeer` | Existing BBS forwarding partner for the dashboard shortcut. No partner is created automatically. |
| `-CmsPeer` | Existing CMS forwarding profile; defaults to `RMS`. |
| `-NodeExe` | Full path to a Node.js 20+ `node.exe`. Saved for future startup. |