Tester feedback: routing, bulk select, notifications, map crash

Routing
- Auto routing picks routes by Thompson sampling over faded delivery
  stats (24 h half-life, capped evidence), weighted by what the radio
  currently hears; retries prefer a different route; last attempt floods.
- Route failures are held until a message's fate is known, so an offline
  contact no longer wrecks its route history; failing routes are only
  deleted after a week without a delivery.
- Direct (zero-hop) path is a rotation candidate (#643) and a new Direct
  mode in the routing sheet; history routes are used for repeater logins.
- Remove the route-weight sliders the new chooser no longer uses.

Chats
- Bulk selection in channel chats (spam / not spam / delete / copy) and
  in the Filtered messages list.
- Tapping a search result jumps to the message.
- Swipe-to-reply ignores vertical scrolls.
- Active conversation follows route lifecycle, so covered chats count
  unread again.

Notifications
- Tapping a notification opens its conversation.
- Per-conversation coalescing and one alert per queued-message sync.
- Monochrome status-bar icon; background service stops when the app is
  swiped away; stale notifications cleared on radio or slot change.

Other
- Online map: opaque links and painted dots for dense areas to avoid an
  Impeller GPU crash; expandable hop list on path maps.
- Contact share: clipboard import of shared contacts, "Add again".
- Android: enableEdgeToEdge and scrolling-screenshot support.
- Translations for all new strings; fix mistranslated routing labels.
This commit is contained in:
zjs81 committed 2026-11-08 23:19:15 -07:00
1 parent f81f2686a7
commit 5ea44d6ce9
85 files changed
+6520 -1716

No files matched your search

+47 -35
View File
@@ -14,11 +14,15 @@ class ChatSearchResults extends StatefulWidget {
final Future<List<ChatSearchEntry>> Function() loadEntries;
final double textScale;
/// Tapping a result: the chat closes search and jumps to the message.
final ValueChanged<ChatSearchEntry>? onSelect;
const ChatSearchResults({
super.key,
required this.query,
required this.loadEntries,
this.textScale = 1.0,
this.onSelect,
});
@override
@@ -116,6 +120,9 @@ class _ChatSearchResultsState extends State<ChatSearchResults> {
entry: _results[index],
needle: needle,
textScale: scale,
onTap: widget.onSelect == null
? null
: () => widget.onSelect!(_results[index]),
),
),
),
@@ -128,11 +135,13 @@ class _ResultRow extends StatelessWidget {
final ChatSearchEntry entry;
final String needle;
final double textScale;
final VoidCallback? onTap;
const _ResultRow({
required this.entry,
required this.needle,
required this.textScale,
this.onTap,
});
@override
@@ -145,44 +154,47 @@ class _ResultRow extends StatelessWidget {
: entry.text;
// Show whichever text actually contains the query.
final shown = body.toLowerCase().contains(needle) ? body : entry.text;
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
Expanded(
child: _highlight(
entry.sender,
entry.matchSender ? needle : '',
TextStyle(
fontSize: 14 * s,
fontWeight: FontWeight.w700,
color: scheme.primary,
return InkWell(
onTap: onTap,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
Expanded(
child: _highlight(
entry.sender,
entry.matchSender ? needle : '',
TextStyle(
fontSize: 14 * s,
fontWeight: FontWeight.w700,
color: scheme.primary,
),
scheme,
),
scheme,
),
),
const SizedBox(width: 8),
Text(
'${formatChatDayLabel(context, entry.time)}, '
'${formatChatTime(context, entry.time)}',
style: TextStyle(
fontSize: 12 * s,
color: scheme.onSurfaceVariant,
const SizedBox(width: 8),
Text(
'${formatChatDayLabel(context, entry.time)}, '
'${formatChatTime(context, entry.time)}',
style: TextStyle(
fontSize: 12 * s,
color: scheme.onSurfaceVariant,
),
),
),
],
),
const SizedBox(height: 4),
_highlight(
shown,
needle,
TextStyle(fontSize: 16 * s, color: scheme.onSurface),
scheme,
),
],
],
),
const SizedBox(height: 4),
_highlight(
shown,
needle,
TextStyle(fontSize: 16 * s, color: scheme.onSurface),
scheme,
),
],
),
),
);
}