Connect a radio: one page with Bluetooth, USB and TCP tabs

Replace the scanner, USB and TCP screens with one page and a tab for
each, so the design and the connection options are consistent. Fixes
#699, where the USB screen's Bluetooth button went back to the main
screens instead of the scanner.

The "Need a new node?" banner shows on every tab, with a close button
that hides it until the page is opened again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
celsoazevedoandClaude Opus 5.5 committed 2026-11-26 08:57:32 +00:00
1 parent 86b3e252c6
commit 9104b4a60a
60 files changed
+989 -1474

No files matched your search

+8 -9
View File
@@ -5,7 +5,7 @@
The app follows this general flow:
```
Launch → Scanner Screen → [Connect via BLE/USB/TCP] → Channels Screen
Launch → Connect a radio → [Connect via BLE/USB/TCP] → Channels Screen
Launch (a radio connected before) → Channels Screen (offline until connected)
```
@@ -32,17 +32,16 @@ Tapping a tab replaces the current screen with a subtle fade + slight horizontal
- **Theme mode** is user-configurable in App Settings (System / Light / Dark) — not locked to system
- **Language** can be overridden to one of 18 supported languages, or follow the system locale
- On web, if a non-Chromium browser is detected, the app shows a `ChromeRequiredScreen` instead of the Scanner (the web client needs Chrome for Web Serial USB)
- On web, if a non-Chromium browser is detected, the app shows a `ChromeRequiredScreen` instead of Connect a radio (the web client needs Chrome for Web Serial USB)
## Full Navigation Graph
```
ScannerScreen (root when no radio is remembered; otherwise pushed from the connect sheet)
├─ [BLE connect] → ChannelsScreen as the only route
├─ [TCP icon button] → push → TcpScreen
│ └─ [TCP connected] → ChannelsScreen as the only route
└─ [USB icon button] → push → UsbScreen
└─ [USB connected] → ChannelsScreen as the only route
ConnectScreen (root when no radio is remembered; otherwise pushed from the connect sheet,
on the tab of the last radio's connection type)
├─ [Bluetooth tab: BLE connect] → ChannelsScreen as the only route
├─ [USB tab: USB connect] → ChannelsScreen as the only route
└─ [TCP tab: TCP connect] → ChannelsScreen as the only route
ContactsScreen (selected=0)
├─ [quick-switch 1] → pushReplacement → ChannelsScreen
@@ -71,7 +70,7 @@ Settings (push from any main screen)
└─ [Offline Map Cache] → push → MapCacheScreen
```
A connection made from the scanner, USB, TCP or review mode replaces the whole stack with ChannelsScreen (`navigateToMainAfterConnect`). Leaving the scanner cancels only a Bluetooth connection it started; a pending automatic reconnect is left alone.
A connection made from any tab or from review mode replaces the whole stack with ChannelsScreen (`navigateToMainAfterConnect`). Leaving the Bluetooth tab cancels a Bluetooth connection in progress, leaving the USB tab a USB one, and leaving the TCP tab only a connection started from it (the tabs are locked while connecting); a pending automatic reconnect is left alone.
## Additional settings destinations