Add review mode with a simulated radio

Store reviewers have no MeshCore radio, so they could not reach any
screen past Connect or test the Android Auto messaging notifications.

- Long-press the "MeshCore Open" title on the Connect screen to enter
  review mode on any platform
- A simulated radio speaks the companion protocol as a fourth transport,
  so sync, messages, ACKs, notifications and notification replies run
  through the normal code paths
- Seeded contacts, channels and history; a new incoming message every
  45 s, auto-replies a few seconds after sending, and a banner with
  "Send test message" and "Exit"
- Review data uses its own fixed key scope and is cleared on entry, exit
  and at startup; the review scope never adopts legacy unscoped keys,
  and channel mutes changed during review are restored
- Code lives in lib/review_mode/ with tests in test/review_mode/
This commit is contained in:
zjs81 committed 2026-10-07 20:38:59 -07:00
1 parent 9334d556fe
commit 11c94040e3
68 files changed
+3314 -197

No files matched your search

+2 -8
View File
@@ -819,10 +819,7 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
(c) =>
c.hasLocation &&
c.path.isNotEmpty &&
_matchesHopPrefix(
_lastHopChunk(c.path, c.pathHashWidth),
hop,
),
_matchesHopPrefix(_lastHopChunk(c.path, c.pathHashWidth), hop),
)
.toList();
if (peers.isEmpty) return null;
@@ -862,10 +859,7 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
if (record.pathBytes.isEmpty) continue;
final recordHops = PathHelper.splitPathBytes(
record.pathBytes,
Contact.inferPathHashWidth(
record.hopCount,
record.pathBytes.length,
),
Contact.inferPathHashWidth(record.hopCount, record.pathBytes.length),
);
if (!seen.add(_pathKeyForHops(recordHops))) continue;
if (altIndex >= kAlternatePathColors.length) break;