diff --git a/README.md b/README.md
index 92d60fe4..1ca9ba29 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@ See the [user documentation](documentation/README.md), [connection guide](docume
- **Contact Groups**: Create custom groups to organize your mesh network contacts
- **Message Reactions**: React to messages with emoji responses
- **Message Replies**: Thread conversations with inline reply functionality
-- **Android Auto & Watches**: Hear messages and reply by voice in Android Auto, or reply from the notification shade and Wear OS/Galaxy watches ([guide](documentation/notifications.md#android-auto))
+- **Android Auto & Watches**: Reply from the notification shade and Wear OS/Galaxy watches, or hear messages and reply by voice in Android Auto (optional build flag) ([guide](documentation/notifications.md#android-auto))
- **Channel Muting**: Mute a channel from its chat screen, the channel list, or its notification
### Mesh Network
@@ -103,7 +103,7 @@ See the [user documentation](documentation/README.md), [connection guide](docume
| Map & Location | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Device Management | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Repeater Hub | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
-| Notification replies | ✅ (incl. Android Auto, watches) | ❌ | ❌ | ❌ | ❌ | ❌ |
+| Notification replies | ✅ (incl. watches; Android Auto optional) | ❌ | ❌ | ❌ | ❌ | ❌ |
The matrix describes implemented functionality, not a guarantee that every feature has been tested on every device. Web device connections use Web Serial and require Chrome and a secure origin. Image inference and translation require native runtimes and are unavailable on web. Android APKs currently include only `arm64-v8a`; the minimum Android API follows the Flutter SDK used to build.
@@ -228,7 +228,7 @@ Messages are transmitted as binary frames using a custom protocol optimized for
- **Theme**: System default, light, or dark mode
- **Language**: Use one of 18 languages (English, Chinese, French, Spanish, Portuguese, German, Dutch, Polish, Swedish, Italian, Slovak, Slovenian, Bulgarian, Russian, Ukrainian, Hungarian, Japanese, Korean)
-- **Notifications**: Configurable for messages, channels, and node advertisements; per-channel muting; reply, mark-as-read, and mute actions on Android notifications and watches (reply and mark-as-read in Android Auto)
+- **Notifications**: Configurable for messages, channels, and node advertisements; per-channel muting; reply, mark-as-read, and mute actions on Android notifications and watches (reply and mark-as-read in Android Auto when built with `--android-project-arg=androidAuto=true`)
- **Battery Chemistry**: Support for NMC, LiFePO4, LiPo, and LiPo HV battery types
- **Message Retry**: Automatic retry with configurable path clearing
diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts
index 8aa73ce6..24b5883c 100644
--- a/android/app/build.gradle.kts
+++ b/android/app/build.gradle.kts
@@ -98,6 +98,24 @@ android {
// }
}
+// Android Auto (notification read-aloud and voice reply) is opt-in, because
+// declaring it puts the app through Play's separate Android Auto review.
+// Enable it with `flutter build apk --android-project-arg=androidAuto=true`
+// or `./gradlew -PandroidAuto=true ...`.
+val androidAutoEnabled = (findProperty("androidAuto") as String?)?.toBoolean() == true
+
+if (androidAutoEnabled) {
+ android.sourceSets.getByName("main").res.srcDir("src/androidAuto/res")
+}
+
+androidComponents {
+ onVariants { variant ->
+ if (androidAutoEnabled) {
+ variant.sources.manifests.addStaticManifestFile("src/androidAuto/AndroidManifest.xml")
+ }
+ }
+}
+
flutter {
source = "../.."
}
diff --git a/android/app/src/androidAuto/AndroidManifest.xml b/android/app/src/androidAuto/AndroidManifest.xml
new file mode 100644
index 00000000..4c5db2aa
--- /dev/null
+++ b/android/app/src/androidAuto/AndroidManifest.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/xml/automotive_app_desc.xml b/android/app/src/androidAuto/res/xml/automotive_app_desc.xml
similarity index 100%
rename from android/app/src/main/res/xml/automotive_app_desc.xml
rename to android/app/src/androidAuto/res/xml/automotive_app_desc.xml
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 3bb75c69..27d9692a 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -34,10 +34,6 @@
-
-
` URI to clipboard |
| Share Contact Zero-Hop | All types | Broadcasts the contact's advertisement one hop |
-| Delete Contact | All types | Confirmation dialog → removes from device and clears messages |
+| Delete Contact | All types | Confirmation dialog → removes from device and clears messages. If auto-add is on for that type, the radio adds it back the next time it advertises; the dialog warns about this |
## App Bar Menus
diff --git a/documentation/map-and-location.md b/documentation/map-and-location.md
index 3cfa7a6f..634235ef 100644
--- a/documentation/map-and-location.md
+++ b/documentation/map-and-location.md
@@ -103,10 +103,18 @@ Shows node count and pin count. Tappable to expand a legend of all marker types.
## Path Trace Map
### How to Access
-- From the main map's radar icon
+- From the main map's menu → **Path Trace** (build your own route, see below)
- From a contact's long-press menu → "Path Trace / Ping"
- From a message's path view → radar icon
+### Building a Custom Trace on the Map
+1. Open the map menu and choose **Path Trace**. A panel appears at the top of the map.
+2. Tap nodes on the map in the order the trace should travel. **Remove Last** and **Clear** edit the list.
+3. Choose **Round trip** (the trace comes back along the same hops) or **As entered** (the hops are used exactly as listed, so add the return hops yourself).
+4. Tap **Run path trace**. Nothing is sent until you press this button.
+
+Returning from the result keeps your hops, mode and the last result (**View last result** reopens it without sending again). **Close** or the back button hides the panel without discarding the hops; reopening **Path Trace** during the same session resumes where you left off. The hops are dropped when you connect to a different radio.
+
### What the User Sees
A map with a polyline showing the route from your node through repeater hops to the target:
- **Green circles**: Hops with known GPS coordinates
diff --git a/documentation/notifications.md b/documentation/notifications.md
index 0f08a095..535570c3 100644
--- a/documentation/notifications.md
+++ b/documentation/notifications.md
@@ -42,7 +42,7 @@ Message notifications can be answered without opening the app, from the notifica
- **Reply** sends through the connected radio exactly like the chat screen: same length limits, SMAZ and Cyr2Lat handling, and retries. Your reply is then added to the notification.
- **Replies over the message limit** are split at word boundaries into up to 3 messages. Longer replies are not sent; a "Reply not sent" notification asks you to open the app.
- **Mark as read** clears the unread count on the phone only. MeshCore has no read receipts, so nothing is sent over the mesh.
-- **Mute channel** (phone and watch) mutes that channel, the same as the bell icon in the channel chat.
+- **Mute channel** (phone and watch) sets that channel to **Muted**, the same as choosing Muted from the bell icon in the channel chat.
- If the radio is disconnected, the conversation is no longer on the radio, the radio reports a send error, or the app isn't running, a "Reply not sent" notification explains why. The reply is not queued. If a split reply fails partway, earlier parts may already have been sent.
- Replies are sent as typed; composer translation is not applied.
@@ -52,6 +52,14 @@ iOS notifications do not have reply actions yet.
MeshCore Open works in Android Auto as a notification-based messaging app. There is no MeshCore screen in the car; Android Auto provides the interface.
+Android Auto support is off by default and is compiled in only when the build passes the `androidAuto` Gradle property:
+
+```bash
+flutter build apk --release --android-project-arg=androidAuto=true
+```
+
+The flag merges `android/app/src/androidAuto/` (the `com.google.android.gms.car.application` manifest entry and `automotive_app_desc.xml`) into the app. Without it, Android Auto does not list the app. Notification replies from the shade and watches work either way.
+
- New direct and channel messages appear on the car display and can be read aloud.
- Reply by voice or with a suggested reply; replies follow the rules above (splitting, failure notifications, no translation).
- Android Auto shows **Reply** and **Mark as read**. **Mute channel** is marked as a mute action, but Android Auto only documents reply and mark-as-read for messaging apps, so mute may not appear in the car; use the phone, a watch, or the bell icon.
@@ -99,15 +107,24 @@ Access via **App Settings → Notifications**:
| Channel Message Notifications | On | Channel alerts (greyed out if master is off) |
| Advertisement Notifications | On | New node alerts (greyed out if master is off) |
-### Per-Channel Muting
+### Per-Channel Notification Modes
-Mute or unmute a channel from any of these places. Muted channels do not generate OS notifications.
+Each channel supports three notification modes:
-- The bell icon in the channel chat app bar
-- Long-press a channel in the channels list → "Mute channel" / "Unmute channel"
-- **Mute channel** on a channel notification (Android)
+| Mode | Icon | Behavior |
+|---|---|---|
+| **All messages** | 🔔 | Receive notifications for every message |
+| **Mentions only** | 🔔! | Only notify when a message mentions your name (see below) |
+| **Muted** | 🔕 | No notifications |
-There is no per-contact muting.
+Set the mode from:
+
+- The notifications icon in the channel chat app bar (tap to open the mode picker)
+- Long-press a channel in the channels list → **Notification settings** → select mode
+
+The Android **Mute channel** notification action sets the channel to **Muted**; it cannot choose another mode.
+
+A message mentions you if it contains `@[yourname]` or `@yourname`, case-insensitively. The plain `@yourname` form must stand alone as a word, so `@bobby` does not mention `bob` and `x@bob.com` is not a mention; names with spaces must be written in full. Detection (`MeshCoreConnector.textMentionsName`) runs on the original text, before any automatic translation.
## Rate Limiting
diff --git a/lib/connector/meshcore_connector.dart b/lib/connector/meshcore_connector.dart
index 57ef9fc1..f535ed25 100644
--- a/lib/connector/meshcore_connector.dart
+++ b/lib/connector/meshcore_connector.dart
@@ -38,7 +38,8 @@ import '../services/image_codec_service.dart';
import '../services/received_image_store.dart';
import '../services/message_retry_service.dart';
import '../services/path_history_service.dart';
-import '../services/app_settings_service.dart';
+import '../services/app_settings_service.dart'
+ show AppSettingsService, ChannelNotificationMode;
import '../services/background_service.dart';
import '../services/timeout_prediction_service.dart';
import '../services/translation_service.dart';
@@ -298,6 +299,22 @@ class MeshCoreConnector extends ChangeNotifier {
Stopwatch? _airtimeBumpStopwatch;
int _prevTotalAirSecs = 0;
int? _batteryMillivolts;
+ // Thresholds (percent) that trigger a low-battery notification once per
+ // crossing, re-arming 5 points above the threshold after recharge.
+ static const List _lowBatteryThresholds = [25, 10];
+ final Set _batteryAlertedThresholds = {};
+ // Consecutive readings that newly crossed a threshold. Alerts need
+ // [_lowBatteryConfirmReadings] in a row so a single TX-load voltage sag
+ // doesn't notify.
+ int _lowBatteryReadingStreak = 0;
+ // Device key the posted low-battery notifications were scoped to, kept so
+ // they can still be cancelled after the session's identity is cleared.
+ String? _lowBatteryAlertDeviceKey;
+ static const int _lowBatteryConfirmReadings = 2;
+ // Readings below this are treated as "no battery sensor" (boards without
+ // one report 0 mV). Any single Li cell, including LiFePO4 (2600 mV empty),
+ // is protection-cut well above 2 V, so lower values are not real readings.
+ static const int _minPlausibleBatteryMillivolts = 2000;
double? _selfLatitude;
double? _selfLongitude;
final List _directRepeaters = List.empty(growable: true);
@@ -667,6 +684,16 @@ class MeshCoreConnector extends ChangeNotifier {
bool? get autoAddSensors => _autoAddSensors;
bool? get autoAddOverwriteOldest => _overwriteOldest;
+ /// Whether the radio stores adverts of [type] by itself, so a removed
+ /// contact of that type returns the next time it advertises.
+ bool autoAddsContactType(int type) => switch (type) {
+ advTypeChat => _autoAddUsers,
+ advTypeRepeater => _autoAddRepeaters,
+ advTypeRoom => _autoAddRoomServers,
+ advTypeSensor => _autoAddSensors,
+ _ => false,
+ };
+
/// autoadd_max_hops from GET_AUTOADD_CONFIG (0 = no limit), null when the
/// firmware did not report it (pre-v1.13).
int? get autoAddMaxHops => _autoAddMaxHops;
@@ -681,6 +708,9 @@ class MeshCoreConnector extends ChangeNotifier {
/// from ver code 8.
bool get supportsNodeDiscover => (_firmwareVerCode ?? 0) >= 8;
+ /// CMD_SET_PATH_HASH_MODE exists from ver code 10 (v1.14.0).
+ bool get supportsPathHashMode => (_firmwareVerCode ?? 0) >= 10;
+
/// CMD_GET/SET_DEFAULT_FLOOD_SCOPE exist from ver code 11 (v1.15.0).
bool get supportsDefaultFloodScope => (_firmwareVerCode ?? 0) >= 11;
@@ -1246,8 +1276,9 @@ class MeshCoreConnector extends ChangeNotifier {
/// (notification shade, watch, or Android Auto).
Future handleNotificationReply(NotificationReply reply) async {
if (reply.action == NotificationReplyAction.mute) {
- await _appSettingsService?.muteChannel(
+ await _appSettingsService?.setChannelNotificationMode(
_channelDisplayName(reply.channelIndex!),
+ ChannelNotificationMode.muted,
);
await _notificationService.clearChannelNotification(
reply.channelIndex!,
@@ -4359,7 +4390,7 @@ class MeshCoreConnector extends ChangeNotifier {
_pathOpLock = completer.future;
await prev;
try {
- if (!isConnected) return;
+ if (!isConnected || !_isKnownContact(contact)) return;
final width =
pathHashWidth ??
@@ -4402,6 +4433,13 @@ class MeshCoreConnector extends ChangeNotifier {
}
}
+ /// Whether [contact] is still in the radio's contact list. The firmware's
+ /// CMD_ADD_UPDATE_CONTACT adds unknown keys, so path/flag writes for a
+ /// removed contact (e.g. a repeater screen still open after its old key was
+ /// deleted) would re-create it on the radio.
+ bool _isKnownContact(Contact contact) =>
+ _contacts.any((c) => c.publicKeyHex == contact.publicKeyHex);
+
/// The advert timestamp the firmware holds for [contact] (Contact.lastSeen
/// is parsed from that field); the stored copy is freshest.
DateTime _deviceLastAdvert(Contact contact) {
@@ -4418,7 +4456,7 @@ class MeshCoreConnector extends ChangeNotifier {
bool? teleLoc,
bool? teleEnv,
}) async {
- if (!isConnected) return;
+ if (!isConnected || !_isKnownContact(contact)) return;
final latestContact =
await _fetchContactSnapshotFromDevice(contact.publicKey) ?? contact;
int updatedFlags = isFavorite != null
@@ -5037,13 +5075,26 @@ class MeshCoreConnector extends ChangeNotifier {
}) async {
if (!isConnected) return;
+ // Only drop the contact locally once the radio confirms; otherwise the
+ // next contact sync restores it. ERR means the radio does not have it.
+ try {
+ await sendFrame(
+ buildRemoveContactFrame(contact.publicKey),
+ waitForGenericAck: true,
+ );
+ } on FirmwareCommandException catch (e) {
+ _appDebugLogService?.warn(
+ 'Radio has no contact ${contact.publicKeyHex.substring(0, 8)} '
+ '(error ${e.errCode}); removing it locally',
+ tag: 'Connector',
+ );
+ }
+
_handleDiscovery(
contact,
contact.rawPacket ?? Uint8List(0),
noNotify: true,
);
-
- await sendFrame(buildRemoveContactFrame(contact.publicKey));
_contactsStorageFull = false;
_contacts.removeWhere((c) => c.publicKeyHex == contact.publicKeyHex);
_knownContactKeys.remove(contact.publicKeyHex);
@@ -6473,6 +6524,7 @@ class MeshCoreConnector extends ChangeNotifier {
_batteryMillivolts = reader.readUInt16LE();
_storageUsedKb = reader.readUInt32LE();
_storageTotalKb = reader.readUInt32LE();
+ _checkLowBatteryThresholds();
final volts = (_batteryMillivolts! / 1000.0).toStringAsFixed(2);
_appDebugLogService?.info(
'Pulled battery: $volts V ($_batteryMillivolts mV)',
@@ -6487,6 +6539,64 @@ class MeshCoreConnector extends ChangeNotifier {
}
}
+ void _checkLowBatteryThresholds() {
+ final millivolts = _batteryMillivolts;
+ if (millivolts == null || millivolts < _minPlausibleBatteryMillivolts) {
+ return;
+ }
+ // Until the device identity (and so its saved chemistry) is known, the
+ // percentage falls back to NMC and can read low for e.g. LiFePO4 packs.
+ // Skip evaluation; the next battery poll re-checks once identity is set.
+ if (batteryDeviceKey == null || _appSettingsService == null) return;
+ final percent = batteryPercent;
+ if (percent == null) return;
+
+ // Only the lowest newly crossed threshold notifies; higher ones crossed
+ // in the same reading are marked as alerted silently.
+ final newlyCrossed = [];
+ for (final threshold in _lowBatteryThresholds) {
+ if (percent <= threshold &&
+ !_batteryAlertedThresholds.contains(threshold)) {
+ newlyCrossed.add(threshold);
+ } else if (percent > threshold + 5 &&
+ _batteryAlertedThresholds.contains(threshold)) {
+ // Re-arm once the battery recovers 5 points above the threshold,
+ // so a recharge + discharge cycle alerts again without flapping.
+ _batteryAlertedThresholds.remove(threshold);
+ final alertDeviceKey = _lowBatteryAlertDeviceKey;
+ if (alertDeviceKey != null) {
+ unawaited(
+ _notificationService.clearLowBatteryNotifications(alertDeviceKey, [
+ threshold,
+ ]),
+ );
+ }
+ }
+ }
+ if (newlyCrossed.isEmpty) {
+ _lowBatteryReadingStreak = 0;
+ return;
+ }
+ // Debounce: wait for consecutive low readings before alerting.
+ if (++_lowBatteryReadingStreak < _lowBatteryConfirmReadings) return;
+ _lowBatteryReadingStreak = 0;
+ _batteryAlertedThresholds.addAll(newlyCrossed);
+ final deviceKey = batteryDeviceKey!;
+ _lowBatteryAlertDeviceKey = deviceKey;
+ final lowestNewlyCrossed = newlyCrossed.reduce((a, b) => a < b ? a : b);
+ if (!(_appSettingsService?.settings.notificationsEnabled ?? false)) {
+ return;
+ }
+ unawaited(
+ _notificationService.showLowBatteryNotification(
+ deviceKey: deviceKey,
+ deviceName: deviceDisplayName,
+ batteryPercent: percent,
+ threshold: lowestNewlyCrossed,
+ ),
+ );
+ }
+
void _checkManualAddContacts() async {
// If manual add contacts is enabled, set auto add config and other params.
// and disable it after
@@ -7355,7 +7465,12 @@ class MeshCoreConnector extends ChangeNotifier {
}
final label = channelName ?? _channelDisplayName(channelIndex);
- if (_appSettingsService!.isChannelMuted(label)) return;
+ final notificationMode = _appSettingsService!.getChannelNotificationMode(
+ label,
+ );
+
+ // Check if channel is muted
+ if (notificationMode == ChannelNotificationMode.muted) return;
// Reuse translation result only if completed and non-empty; else use original text
final resolvedText =
@@ -7364,6 +7479,14 @@ class MeshCoreConnector extends ChangeNotifier {
translationResult.translatedText.trim().isNotEmpty)
? translationResult.translatedText.trim()
: message.text.trim();
+
+ // Mentions are matched on the untranslated text.
+ if (notificationMode == ChannelNotificationMode.mentionsOnly) {
+ if (!textMentionsName(message.originalText ?? message.text, _selfName)) {
+ return;
+ }
+ }
+
unawaited(() async {
await _notificationService.showChannelMessageNotification(
channelName: label,
@@ -7376,6 +7499,22 @@ class MeshCoreConnector extends ChangeNotifier {
}());
}
+ /// Whether [text] mentions [name], case-insensitively, as either
+ /// `@[name]` (the reply/mention prefix the app sends) or a plain `@name`.
+ /// The plain form needs a word boundary on both sides, so `@bobby` does
+ /// not mention `bob` and `x@bob.com` is not a mention. Names containing
+ /// spaces must be written out in full.
+ @visibleForTesting
+ static bool textMentionsName(String text, String? name) {
+ if (name == null || name.isEmpty) return false;
+ final escaped = RegExp.escape(name);
+ return RegExp(
+ '@\\[$escaped\\]|(? 'Exception: Command failed with error code $errCode';
+}
+
/// A command waiting for its reply from the companion firmware.
class PendingCommandReply {
final int commandCode;
@@ -203,9 +213,7 @@ class PendingCommandReplies {
if (_queue.isEmpty) return null;
final pending = _queue.removeAt(0);
if (pending.isTombstone) return null;
- pending.completer?.completeError(
- Exception('Command failed with error code $errCode'),
- );
+ pending.completer?.completeError(FirmwareCommandException(errCode));
return pending;
}
diff --git a/lib/helpers/marker_message.dart b/lib/helpers/marker_message.dart
new file mode 100644
index 00000000..52f251c6
--- /dev/null
+++ b/lib/helpers/marker_message.dart
@@ -0,0 +1,30 @@
+import 'package:latlong2/latlong.dart';
+
+class MarkerPayload {
+ final LatLng position;
+ final String label;
+ final String flags;
+
+ MarkerPayload({
+ required this.position,
+ required this.label,
+ required this.flags,
+ });
+}
+
+/// Parse a shared marker text message of the form
+/// `m:,||` and return a [MarkerPayload].
+MarkerPayload? parseMarkerText(String text) {
+ final trimmed = text.trim();
+ final match = RegExp(
+ r'm:([\-0-9.]+),([\-0-9.]+)\|([^|]*)\|(.*)',
+ ).firstMatch(trimmed);
+ if (match == null) return null;
+ final lat = double.tryParse(match.group(1) ?? '');
+ final lon = double.tryParse(match.group(2) ?? '');
+ if (lat == null || lon == null) return null;
+ if (lat.abs() > 90 || lon.abs() > 180) return null;
+ final label = (match.group(3) ?? '').trim();
+ final flags = (match.group(4) ?? '').trim();
+ return MarkerPayload(position: LatLng(lat, lon), label: label, flags: flags);
+}
diff --git a/lib/l10n/app_bg.arb b/lib/l10n/app_bg.arb
index 2c4dde5b..9eaa12e8 100644
--- a/lib/l10n/app_bg.arb
+++ b/lib/l10n/app_bg.arb
@@ -359,6 +359,10 @@
"channels_public": "Публично",
"channels_private": "Частен",
"channels_editChannel": "Редактирай канал",
+ "channels_notificationSettings": "Настройки за известия",
+ "channels_notifyAll": "Всички съобщения",
+ "channels_notifyMentionsOnly": "Само споменавания",
+ "channels_notifyNone": "Заглушено",
"channels_muteChannel": "Заглуши канала",
"channels_unmuteChannel": "Включи известията на канала",
"channels_deleteChannel": "Изтрий канала",
diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb
index 1d12ad59..01e6b3b9 100644
--- a/lib/l10n/app_de.arb
+++ b/lib/l10n/app_de.arb
@@ -369,6 +369,10 @@
"channels_public": "Öffentlich",
"channels_private": "Privat",
"channels_editChannel": "Kanal bearbeiten",
+ "channels_notificationSettings": "Benachrichtigungseinstellungen",
+ "channels_notifyAll": "Alle Nachrichten",
+ "channels_notifyMentionsOnly": "Nur Erwähnungen",
+ "channels_notifyNone": "Stummgeschaltet",
"channels_muteChannel": "Kanal stummschalten",
"channels_unmuteChannel": "Kanal Stummschaltung aufheben",
"channels_deleteChannel": "Kanal löschen",
diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb
index 14523643..90f4b2a8 100644
--- a/lib/l10n/app_en.arb
+++ b/lib/l10n/app_en.arb
@@ -198,6 +198,7 @@
"settings_radioSettingsSubtitle": "Frequency, power, spreading factor",
"settings_radioSettingsUpdated": "Radio settings updated",
"settings_radioSettingsNotApplied": "The radio did not apply these settings",
+ "settings_pathHashModeNotApplied": "Radio settings were applied, but the radio did not confirm the new path hash size",
"settings_regionSettings": "Regions",
"settings_regionSettingsSubtitle": "Limit channel floods to an area",
"settings_regionEmptyExplanation": "Regions limit flood messages to repeaters in an area. Fetch them from nearby repeaters or add one by name.",
@@ -622,6 +623,8 @@
},
"contacts_keepChatHistory": "Keep chat history",
"contacts_remove": "Remove",
+ "contacts_removeAutoAddNote": "Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.",
+ "contacts_removeFailed": "The radio did not confirm the removal. The contact was not removed.",
"contacts_discoveredNearby": "Discovered nearby ({count})",
"@contacts_discoveredNearby": {
"placeholders": {
@@ -729,6 +732,18 @@
"channels_addSectionCreate": "Create new",
"channels_dragToReorder": "Drag to reorder",
"channels_editChannel": "Edit channel",
+ "channels_notificationSettings": "Notification settings",
+ "channels_notifyAll": "All messages",
+ "channels_notifyMentionsOnly": "Mentions only",
+ "channels_notifyNone": "Muted",
+ "channels_notificationModeTooltip": "Notifications: {mode}",
+ "@channels_notificationModeTooltip": {
+ "placeholders": {
+ "mode": {
+ "type": "String"
+ }
+ }
+ },
"channels_muteChannel": "Mute channel",
"channels_unmuteChannel": "Unmute channel",
"channels_deleteChannel": "Delete channel",
@@ -1258,6 +1273,12 @@
"map_runTraceWithReturnPath": "Return back on the same path.",
"map_removeLast": "Remove Last",
"map_pathTraceCancelled": "Path trace cancelled.",
+ "map_pathTraceAddMoreHint": "Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.",
+ "map_pathTraceModeRoundTrip": "Round trip",
+ "map_pathTraceModeRoundTripHint": "The trace goes out through these hops and comes back the same way.",
+ "map_pathTraceModeAsEntered": "As entered",
+ "map_pathTraceModeAsEnteredHint": "The trace follows these hops exactly. Add the hops back to you yourself.",
+ "map_pathTraceViewLast": "View last result",
"mapCache_title": "Offline Map Cache",
"mapCache_selectAreaFirst": "Select an area to cache first",
"mapCache_noTilesToDownload": "No tiles to download for this area",
@@ -2702,6 +2723,22 @@
"contacts_contactAdvertCopied": "Advert copied to Clipboard.",
"contacts_contactAdvertCopyFailed": "Copying advert to Clipboard failed.",
"notification_activityTitle": "MeshCore Activity",
+ "notification_lowBatteryTitle": "Low battery",
+ "@notification_lowBatteryTitle": {
+ "description": "Title of the low battery notification"
+ },
+ "notification_lowBatteryBody": "{deviceName} battery is at {percent}%",
+ "@notification_lowBatteryBody": {
+ "description": "Body of the low battery notification; deviceName is the connected radio's node name",
+ "placeholders": {
+ "deviceName": {
+ "type": "String"
+ },
+ "percent": {
+ "type": "int"
+ }
+ }
+ },
"notification_messagesCount": "{count} {count, plural, =1{message} other{messages}}",
"@notification_messagesCount": {
"placeholders": {
@@ -2735,6 +2772,25 @@
}
},
"notification_receivedNewMessage": "Received new message",
+ "notification_sharedLocation": "Shared a location",
+ "notification_sharedLocationNamed": "Shared a location: {label}",
+ "@notification_sharedLocationNamed": {
+ "placeholders": {
+ "label": {
+ "type": "String"
+ }
+ }
+ },
+ "notification_reacted": "Reacted {emoji}",
+ "@notification_reacted": {
+ "placeholders": {
+ "emoji": {
+ "type": "String"
+ }
+ }
+ },
+ "notification_sentGif": "Sent a GIF",
+ "notification_sentImage": "Sent an image",
"notification_actionReply": "Reply",
"notification_actionMarkRead": "Mark as read",
"notification_actionMuteChannel": "Mute channel",
@@ -2764,6 +2820,8 @@
"snrIndicator_nearByRepeaters": "Nearby Repeaters",
"snrIndicator_lastSeen": "Last seen",
"snrIndicator_nearByRepeatersDescription": "Repeaters your radio heard directly, most recently heard first.",
+ "snrIndicator_unknownRepeater": "Unknown repeater",
+ "snrIndicator_unknownRepeaterHint": "This repeater isn't in your contacts yet. Its name, location and options appear once your radio receives its advert.",
"contactsSettings_title": "Contacts settings",
"contactsSettings_autoAddTitle": "Automatic Discovery",
"contactsSettings_otherTitle": "Other contact related settings",
@@ -3461,6 +3519,8 @@
"@repeater_prvKeyLengthError": {"placeholders": {"length": {"type": "int"}}},
"contacts_advertFailed": "Couldn't send advertisement",
"contacts_manageGroups": "Manage groups",
+ "contacts_keyPrefixSemantics": "Key prefix {prefix}",
+ "@contacts_keyPrefixSemantics": {"placeholders": {"prefix": {"type": "String"}}},
"community_shortId": "ID: {id}…",
"@community_shortId": {"placeholders": {"id": {"type": "String"}}},
"tcpSectionTitle": "TCP / IP",
@@ -3489,6 +3549,9 @@
"networkMap_sourceLocal": "Local",
"networkMap_sourceOnline": "Online",
"networkMap_sourceBoth": "Both",
+ "networkMap_sourceLocalHint": "Nodes your radio has heard",
+ "networkMap_sourceOnlineHint": "Repeaters from the online network map",
+ "networkMap_sourceBothHint": "Your radio's nodes plus the online network map",
"networkMap_zoomInHint": "Zoom in to see the online network map",
"networkMap_loadFailed": "Couldn't load the online network map",
"networkMap_inYourContacts": "In your contacts",
diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arb
index 9023e268..7db9569c 100644
--- a/lib/l10n/app_es.arb
+++ b/lib/l10n/app_es.arb
@@ -369,6 +369,10 @@
"channels_public": "Público",
"channels_private": "Privado",
"channels_editChannel": "Editar canal",
+ "channels_notificationSettings": "Configuración de notificaciones",
+ "channels_notifyAll": "Todos los mensajes",
+ "channels_notifyMentionsOnly": "Solo menciones",
+ "channels_notifyNone": "Silenciado",
"channels_muteChannel": "Silenciar canal",
"channels_unmuteChannel": "Activar canal",
"channels_deleteChannel": "Eliminar canal",
diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb
index f42ce6d6..c297db56 100644
--- a/lib/l10n/app_fr.arb
+++ b/lib/l10n/app_fr.arb
@@ -369,6 +369,10 @@
"channels_public": "Public",
"channels_private": "Privé",
"channels_editChannel": "Modifier le canal",
+ "channels_notificationSettings": "Paramètres des notifications",
+ "channels_notifyAll": "Tous les messages",
+ "channels_notifyMentionsOnly": "Mentions uniquement",
+ "channels_notifyNone": "Désactivé",
"channels_muteChannel": "Désactiver les notifications du canal",
"channels_unmuteChannel": "Réactiver les notifications du canal",
"channels_deleteChannel": "Supprimer le canal",
diff --git a/lib/l10n/app_hu.arb b/lib/l10n/app_hu.arb
index 9f0bfee3..3e26d1b1 100644
--- a/lib/l10n/app_hu.arb
+++ b/lib/l10n/app_hu.arb
@@ -511,6 +511,10 @@
"channels_public": "Nyilvános",
"channels_private": "Magán",
"channels_editChannel": "Csatorna szerkesztése",
+ "channels_notificationSettings": "Értesítési beállítások",
+ "channels_notifyAll": "Összes üzenet",
+ "channels_notifyMentionsOnly": "Csak említések",
+ "channels_notifyNone": "Némít",
"channels_muteChannel": "Csatorna némítása",
"channels_unmuteChannel": "Csatorna némításának feloldása",
"channels_deleteChannel": "Csatorna törlése",
diff --git a/lib/l10n/app_it.arb b/lib/l10n/app_it.arb
index 89a86aad..dcc3e998 100644
--- a/lib/l10n/app_it.arb
+++ b/lib/l10n/app_it.arb
@@ -414,6 +414,10 @@
"channels_public": "Pubblico",
"channels_private": "Privato",
"channels_editChannel": "Modifica canale",
+ "channels_notificationSettings": "Impostazioni notifiche",
+ "channels_notifyAll": "Tutti i messaggi",
+ "channels_notifyMentionsOnly": "Solo menzioni",
+ "channels_notifyNone": "Silenziato",
"channels_muteChannel": "Silenzia canale",
"channels_unmuteChannel": "Attiva notifiche canale",
"channels_deleteChannel": "Elimina canale",
diff --git a/lib/l10n/app_ja.arb b/lib/l10n/app_ja.arb
index 468d0d16..117555c3 100644
--- a/lib/l10n/app_ja.arb
+++ b/lib/l10n/app_ja.arb
@@ -517,6 +517,10 @@
"channels_public": "公開",
"channels_private": "非公開",
"channels_editChannel": "チャンネルを編集",
+ "channels_notificationSettings": "通知設定",
+ "channels_notifyAll": "すべてのメッセージ",
+ "channels_notifyMentionsOnly": "メンションのみ",
+ "channels_notifyNone": "ミュート",
"channels_muteChannel": "チャンネルをミュート",
"channels_unmuteChannel": "チャンネルのミュートを解除",
"channels_deleteChannel": "チャンネルを削除",
diff --git a/lib/l10n/app_ko.arb b/lib/l10n/app_ko.arb
index 38869f9a..62ab3ad4 100644
--- a/lib/l10n/app_ko.arb
+++ b/lib/l10n/app_ko.arb
@@ -511,6 +511,10 @@
"channels_public": "대중의",
"channels_private": "사립",
"channels_editChannel": "채널 편집",
+ "channels_notificationSettings": "알림 설정",
+ "channels_notifyAll": "모든 메시지",
+ "channels_notifyMentionsOnly": "언급만",
+ "channels_notifyNone": "음소거",
"channels_muteChannel": "음소거 채널",
"channels_unmuteChannel": "채널 음소거 해제",
"channels_deleteChannel": "채널 삭제",
diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart
index 7db66894..5c373c88 100644
--- a/lib/l10n/app_localizations.dart
+++ b/lib/l10n/app_localizations.dart
@@ -862,6 +862,12 @@ abstract class AppLocalizations {
/// **'The radio did not apply these settings'**
String get settings_radioSettingsNotApplied;
+ /// No description provided for @settings_pathHashModeNotApplied.
+ ///
+ /// In en, this message translates to:
+ /// **'Radio settings were applied, but the radio did not confirm the new path hash size'**
+ String get settings_pathHashModeNotApplied;
+
/// No description provided for @settings_regionSettings.
///
/// In en, this message translates to:
@@ -2398,6 +2404,18 @@ abstract class AppLocalizations {
/// **'Remove'**
String get contacts_remove;
+ /// No description provided for @contacts_removeAutoAddNote.
+ ///
+ /// In en, this message translates to:
+ /// **'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.'**
+ String get contacts_removeAutoAddNote;
+
+ /// No description provided for @contacts_removeFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'The radio did not confirm the removal. The contact was not removed.'**
+ String get contacts_removeFailed;
+
/// No description provided for @contacts_discoveredNearby.
///
/// In en, this message translates to:
@@ -2704,6 +2722,36 @@ abstract class AppLocalizations {
/// **'Edit channel'**
String get channels_editChannel;
+ /// No description provided for @channels_notificationSettings.
+ ///
+ /// In en, this message translates to:
+ /// **'Notification settings'**
+ String get channels_notificationSettings;
+
+ /// No description provided for @channels_notifyAll.
+ ///
+ /// In en, this message translates to:
+ /// **'All messages'**
+ String get channels_notifyAll;
+
+ /// No description provided for @channels_notifyMentionsOnly.
+ ///
+ /// In en, this message translates to:
+ /// **'Mentions only'**
+ String get channels_notifyMentionsOnly;
+
+ /// No description provided for @channels_notifyNone.
+ ///
+ /// In en, this message translates to:
+ /// **'Muted'**
+ String get channels_notifyNone;
+
+ /// No description provided for @channels_notificationModeTooltip.
+ ///
+ /// In en, this message translates to:
+ /// **'Notifications: {mode}'**
+ String channels_notificationModeTooltip(String mode);
+
/// No description provided for @channels_muteChannel.
///
/// In en, this message translates to:
@@ -4348,6 +4396,42 @@ abstract class AppLocalizations {
/// **'Path trace cancelled.'**
String get map_pathTraceCancelled;
+ /// No description provided for @map_pathTraceAddMoreHint.
+ ///
+ /// In en, this message translates to:
+ /// **'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.'**
+ String get map_pathTraceAddMoreHint;
+
+ /// No description provided for @map_pathTraceModeRoundTrip.
+ ///
+ /// In en, this message translates to:
+ /// **'Round trip'**
+ String get map_pathTraceModeRoundTrip;
+
+ /// No description provided for @map_pathTraceModeRoundTripHint.
+ ///
+ /// In en, this message translates to:
+ /// **'The trace goes out through these hops and comes back the same way.'**
+ String get map_pathTraceModeRoundTripHint;
+
+ /// No description provided for @map_pathTraceModeAsEntered.
+ ///
+ /// In en, this message translates to:
+ /// **'As entered'**
+ String get map_pathTraceModeAsEntered;
+
+ /// No description provided for @map_pathTraceModeAsEnteredHint.
+ ///
+ /// In en, this message translates to:
+ /// **'The trace follows these hops exactly. Add the hops back to you yourself.'**
+ String get map_pathTraceModeAsEnteredHint;
+
+ /// No description provided for @map_pathTraceViewLast.
+ ///
+ /// In en, this message translates to:
+ /// **'View last result'**
+ String get map_pathTraceViewLast;
+
/// No description provided for @mapCache_title.
///
/// In en, this message translates to:
@@ -8210,6 +8294,18 @@ abstract class AppLocalizations {
/// **'MeshCore Activity'**
String get notification_activityTitle;
+ /// Title of the low battery notification
+ ///
+ /// In en, this message translates to:
+ /// **'Low battery'**
+ String get notification_lowBatteryTitle;
+
+ /// Body of the low battery notification; deviceName is the connected radio's node name
+ ///
+ /// In en, this message translates to:
+ /// **'{deviceName} battery is at {percent}%'**
+ String notification_lowBatteryBody(String deviceName, int percent);
+
/// No description provided for @notification_messagesCount.
///
/// In en, this message translates to:
@@ -8240,6 +8336,36 @@ abstract class AppLocalizations {
/// **'Received new message'**
String get notification_receivedNewMessage;
+ /// No description provided for @notification_sharedLocation.
+ ///
+ /// In en, this message translates to:
+ /// **'Shared a location'**
+ String get notification_sharedLocation;
+
+ /// No description provided for @notification_sharedLocationNamed.
+ ///
+ /// In en, this message translates to:
+ /// **'Shared a location: {label}'**
+ String notification_sharedLocationNamed(String label);
+
+ /// No description provided for @notification_reacted.
+ ///
+ /// In en, this message translates to:
+ /// **'Reacted {emoji}'**
+ String notification_reacted(String emoji);
+
+ /// No description provided for @notification_sentGif.
+ ///
+ /// In en, this message translates to:
+ /// **'Sent a GIF'**
+ String get notification_sentGif;
+
+ /// No description provided for @notification_sentImage.
+ ///
+ /// In en, this message translates to:
+ /// **'Sent an image'**
+ String get notification_sentImage;
+
/// No description provided for @notification_actionReply.
///
/// In en, this message translates to:
@@ -8414,6 +8540,18 @@ abstract class AppLocalizations {
/// **'Repeaters your radio heard directly, most recently heard first.'**
String get snrIndicator_nearByRepeatersDescription;
+ /// No description provided for @snrIndicator_unknownRepeater.
+ ///
+ /// In en, this message translates to:
+ /// **'Unknown repeater'**
+ String get snrIndicator_unknownRepeater;
+
+ /// No description provided for @snrIndicator_unknownRepeaterHint.
+ ///
+ /// In en, this message translates to:
+ /// **'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.'**
+ String get snrIndicator_unknownRepeaterHint;
+
/// No description provided for @contactsSettings_title.
///
/// In en, this message translates to:
@@ -10435,6 +10573,12 @@ abstract class AppLocalizations {
/// **'Manage groups'**
String get contacts_manageGroups;
+ /// No description provided for @contacts_keyPrefixSemantics.
+ ///
+ /// In en, this message translates to:
+ /// **'Key prefix {prefix}'**
+ String contacts_keyPrefixSemantics(String prefix);
+
/// No description provided for @community_shortId.
///
/// In en, this message translates to:
@@ -10573,6 +10717,24 @@ abstract class AppLocalizations {
/// **'Both'**
String get networkMap_sourceBoth;
+ /// No description provided for @networkMap_sourceLocalHint.
+ ///
+ /// In en, this message translates to:
+ /// **'Nodes your radio has heard'**
+ String get networkMap_sourceLocalHint;
+
+ /// No description provided for @networkMap_sourceOnlineHint.
+ ///
+ /// In en, this message translates to:
+ /// **'Repeaters from the online network map'**
+ String get networkMap_sourceOnlineHint;
+
+ /// No description provided for @networkMap_sourceBothHint.
+ ///
+ /// In en, this message translates to:
+ /// **'Your radio\'s nodes plus the online network map'**
+ String get networkMap_sourceBothHint;
+
/// No description provided for @networkMap_zoomInHint.
///
/// In en, this message translates to:
diff --git a/lib/l10n/app_localizations_bg.dart b/lib/l10n/app_localizations_bg.dart
index f779838a..3c2da765 100644
--- a/lib/l10n/app_localizations_bg.dart
+++ b/lib/l10n/app_localizations_bg.dart
@@ -425,6 +425,10 @@ class AppLocalizationsBg extends AppLocalizations {
String get settings_radioSettingsNotApplied =>
'Радиото не приложи тези настройки';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => 'Региони';
@@ -1336,6 +1340,14 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get contacts_remove => 'Премахни';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return 'Открити наблизо ($count)';
@@ -1510,6 +1522,23 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get channels_editChannel => 'Редактирай канал';
+ @override
+ String get channels_notificationSettings => 'Настройки за известия';
+
+ @override
+ String get channels_notifyAll => 'Всички съобщения';
+
+ @override
+ String get channels_notifyMentionsOnly => 'Само споменавания';
+
+ @override
+ String get channels_notifyNone => 'Заглушено';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => 'Заглуши канала';
@@ -2440,6 +2469,27 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get map_pathTraceCancelled => 'Отменен е следването на пътя.';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title => 'Кеш на офлайн карти';
@@ -4785,6 +4835,14 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get notification_activityTitle => 'Активност на MeshCore';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
String _temp0 = intl.Intl.pluralLogic(
@@ -4826,6 +4884,25 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Получено ново съобщение';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => 'Отговори';
@@ -4928,6 +5005,13 @@ class AppLocalizationsBg extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'Повторители, чути от вашето радио пряко, първо най-скорошните.';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => 'Настройки на контактите';
@@ -6224,6 +6308,11 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get contacts_manageGroups => 'Управление на групи';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID: $id…';
@@ -6309,6 +6398,17 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get networkMap_sourceBoth => 'И двете';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint =>
'Увеличете, за да видите онлайн мрежовата карта';
diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart
index 02f3247f..1702dc5f 100644
--- a/lib/l10n/app_localizations_de.dart
+++ b/lib/l10n/app_localizations_de.dart
@@ -427,6 +427,10 @@ class AppLocalizationsDe extends AppLocalizations {
String get settings_radioSettingsNotApplied =>
'Das Funkgerät hat diese Einstellungen nicht übernommen';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => 'Regionen';
@@ -1331,6 +1335,14 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get contacts_remove => 'Entfernen';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return 'In der Nähe entdeckt ($count)';
@@ -1504,6 +1516,23 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get channels_editChannel => 'Kanal bearbeiten';
+ @override
+ String get channels_notificationSettings => 'Benachrichtigungseinstellungen';
+
+ @override
+ String get channels_notifyAll => 'Alle Nachrichten';
+
+ @override
+ String get channels_notifyMentionsOnly => 'Nur Erwähnungen';
+
+ @override
+ String get channels_notifyNone => 'Stummgeschaltet';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => 'Kanal stummschalten';
@@ -2438,6 +2467,27 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get map_pathTraceCancelled => 'Pfadverfolgung abgebrochen.';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title => 'Offline-Karten-Cache';
@@ -4796,6 +4846,14 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get notification_activityTitle => 'MeshCore Aktivität';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
String _temp0 = intl.Intl.pluralLogic(
@@ -4837,6 +4895,25 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Neue Nachricht empfangen';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => 'Antworten';
@@ -4939,6 +5016,13 @@ class AppLocalizationsDe extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'Repeater, die Ihr Funkgerät direkt gehört hat, zuletzt gehört zuerst.';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => 'Kontakteinstellungen';
@@ -6239,6 +6323,11 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get contacts_manageGroups => 'Gruppen verwalten';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID: $id…';
@@ -6322,6 +6411,17 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get networkMap_sourceBoth => 'Beides';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint =>
'Zoome hinein, um die Online-Netzwerkkarte zu sehen';
diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart
index 2f2eeb63..6a0d515e 100644
--- a/lib/l10n/app_localizations_en.dart
+++ b/lib/l10n/app_localizations_en.dart
@@ -421,6 +421,10 @@ class AppLocalizationsEn extends AppLocalizations {
String get settings_radioSettingsNotApplied =>
'The radio did not apply these settings';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => 'Regions';
@@ -1313,6 +1317,14 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get contacts_remove => 'Remove';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return 'Discovered nearby ($count)';
@@ -1484,6 +1496,23 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get channels_editChannel => 'Edit channel';
+ @override
+ String get channels_notificationSettings => 'Notification settings';
+
+ @override
+ String get channels_notifyAll => 'All messages';
+
+ @override
+ String get channels_notifyMentionsOnly => 'Mentions only';
+
+ @override
+ String get channels_notifyNone => 'Muted';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => 'Mute channel';
@@ -2402,6 +2431,27 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get map_pathTraceCancelled => 'Path trace cancelled.';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title => 'Offline Map Cache';
@@ -4720,6 +4770,14 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get notification_activityTitle => 'MeshCore Activity';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
String _temp0 = intl.Intl.pluralLogic(
@@ -4761,6 +4819,25 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Received new message';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => 'Reply';
@@ -4862,6 +4939,13 @@ class AppLocalizationsEn extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'Repeaters your radio heard directly, most recently heard first.';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => 'Contacts settings';
@@ -6138,6 +6222,11 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get contacts_manageGroups => 'Manage groups';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID: $id…';
@@ -6220,6 +6309,17 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get networkMap_sourceBoth => 'Both';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint => 'Zoom in to see the online network map';
diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart
index d15247ca..84d219d6 100644
--- a/lib/l10n/app_localizations_es.dart
+++ b/lib/l10n/app_localizations_es.dart
@@ -425,6 +425,10 @@ class AppLocalizationsEs extends AppLocalizations {
String get settings_radioSettingsNotApplied =>
'La radio no aplicó esta configuración';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => 'Regiones';
@@ -1328,6 +1332,14 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get contacts_remove => 'Eliminar';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return 'Descubiertos cercanos ($count)';
@@ -1503,6 +1515,23 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get channels_editChannel => 'Editar canal';
+ @override
+ String get channels_notificationSettings => 'Configuración de notificaciones';
+
+ @override
+ String get channels_notifyAll => 'Todos los mensajes';
+
+ @override
+ String get channels_notifyMentionsOnly => 'Solo menciones';
+
+ @override
+ String get channels_notifyNone => 'Silenciado';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => 'Silenciar canal';
@@ -2432,6 +2461,27 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get map_pathTraceCancelled => 'Traza de ruta cancelada.';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title => 'Caché de mapa sin conexión';
@@ -4787,6 +4837,14 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get notification_activityTitle => 'Actividad de MeshCore';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
String _temp0 = intl.Intl.pluralLogic(
@@ -4828,6 +4886,25 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Nuevo mensaje recibido';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => 'Responder';
@@ -4930,6 +5007,13 @@ class AppLocalizationsEs extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'Repetidores que tu radio ha oído directamente, del más reciente al más antiguo.';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => 'Configuración de contactos';
@@ -6227,6 +6311,11 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get contacts_manageGroups => 'Gestionar grupos';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID: $id…';
@@ -6311,6 +6400,17 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get networkMap_sourceBoth => 'Ambos';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint =>
'Acerca el zoom para ver el mapa de la red en línea';
diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart
index 8223b3e3..a6ec3d92 100644
--- a/lib/l10n/app_localizations_fr.dart
+++ b/lib/l10n/app_localizations_fr.dart
@@ -427,6 +427,10 @@ class AppLocalizationsFr extends AppLocalizations {
String get settings_radioSettingsNotApplied =>
'La radio n\'a pas appliqué ces paramètres';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => 'Régions';
@@ -1334,6 +1338,14 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get contacts_remove => 'Supprimer';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return 'Découverts à proximité ($count)';
@@ -1508,6 +1520,23 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get channels_editChannel => 'Modifier le canal';
+ @override
+ String get channels_notificationSettings => 'Paramètres des notifications';
+
+ @override
+ String get channels_notifyAll => 'Tous les messages';
+
+ @override
+ String get channels_notifyMentionsOnly => 'Mentions uniquement';
+
+ @override
+ String get channels_notifyNone => 'Désactivé';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => 'Désactiver les notifications du canal';
@@ -2440,6 +2469,27 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get map_pathTraceCancelled => 'Traçage de chemin annulé';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title => 'Cache de carte hors ligne';
@@ -4806,6 +4856,14 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get notification_activityTitle => 'Activité MeshCore';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
String _temp0 = intl.Intl.pluralLogic(
@@ -4847,6 +4905,25 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Nouveau message reçu';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => 'Répondre';
@@ -4952,6 +5029,13 @@ class AppLocalizationsFr extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'Les répéteurs entendus directement par votre radio, du plus récent au plus ancien.';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => 'Paramètres des contacts';
@@ -6252,6 +6336,11 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get contacts_manageGroups => 'Gérer les groupes';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID : $id…';
@@ -6337,6 +6426,17 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get networkMap_sourceBoth => 'Les deux';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint =>
'Zoomez pour voir la carte du réseau en ligne';
diff --git a/lib/l10n/app_localizations_hu.dart b/lib/l10n/app_localizations_hu.dart
index 7e754fe1..3bca928f 100644
--- a/lib/l10n/app_localizations_hu.dart
+++ b/lib/l10n/app_localizations_hu.dart
@@ -423,6 +423,10 @@ class AppLocalizationsHu extends AppLocalizations {
String get settings_radioSettingsNotApplied =>
'A rádió nem alkalmazta ezeket a beállításokat';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => 'Tájak';
@@ -1324,6 +1328,14 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get contacts_remove => 'Eltávolítás';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return 'Közelben felfedezve ($count)';
@@ -1499,6 +1511,23 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get channels_editChannel => 'Csatorna szerkesztése';
+ @override
+ String get channels_notificationSettings => 'Értesítési beállítások';
+
+ @override
+ String get channels_notifyAll => 'Összes üzenet';
+
+ @override
+ String get channels_notifyMentionsOnly => 'Csak említések';
+
+ @override
+ String get channels_notifyNone => 'Némít';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => 'Csatorna némítása';
@@ -2429,6 +2458,27 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get map_pathTraceCancelled => 'Útvonal nyomkövetés törölve.';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title => 'Offline térképgyorsítótár';
@@ -4784,6 +4834,14 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get notification_activityTitle => 'MeshCore tevékenység';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
String _temp0 = intl.Intl.pluralLogic(
@@ -4825,6 +4883,25 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Új üzenet érkezett';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => 'Válasz';
@@ -4926,6 +5003,13 @@ class AppLocalizationsHu extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'Azok az átjátszók, amelyeket a rádió közvetlenül hallott, a legutóbb hallottak elöl.';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => 'Névjegyek beállításai';
@@ -6215,6 +6299,11 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get contacts_manageGroups => 'Csoportok kezelése';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID: $id…';
@@ -6299,6 +6388,17 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get networkMap_sourceBoth => 'Mindkettő';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint =>
'Nagyíts rá az online hálózati térkép megtekintéséhez';
diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart
index acfcc729..f42acccf 100644
--- a/lib/l10n/app_localizations_it.dart
+++ b/lib/l10n/app_localizations_it.dart
@@ -427,6 +427,10 @@ class AppLocalizationsIt extends AppLocalizations {
String get settings_radioSettingsNotApplied =>
'La radio non ha applicato queste impostazioni';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => 'Regioni';
@@ -1333,6 +1337,14 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get contacts_remove => 'Rimuovi';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return 'Scoperti nelle vicinanze ($count)';
@@ -1507,6 +1519,23 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get channels_editChannel => 'Modifica canale';
+ @override
+ String get channels_notificationSettings => 'Impostazioni notifiche';
+
+ @override
+ String get channels_notifyAll => 'Tutti i messaggi';
+
+ @override
+ String get channels_notifyMentionsOnly => 'Solo menzioni';
+
+ @override
+ String get channels_notifyNone => 'Silenziato';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => 'Silenzia canale';
@@ -2438,6 +2467,27 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get map_pathTraceCancelled => 'Tracciamento del percorso annullato.';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title => 'Cache mappa offline';
@@ -4793,6 +4843,14 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get notification_activityTitle => 'Attività MeshCore';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
String _temp0 = intl.Intl.pluralLogic(
@@ -4834,6 +4892,25 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Nuovo messaggio ricevuto';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => 'Rispondi';
@@ -4937,6 +5014,13 @@ class AppLocalizationsIt extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'Ripetitori che la tua radio ha sentito direttamente, dal più recente al più vecchio.';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => 'Impostazioni dei contatti';
@@ -6234,6 +6318,11 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get contacts_manageGroups => 'Gestisci gruppi';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID: $id…';
@@ -6318,6 +6407,17 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get networkMap_sourceBoth => 'Entrambi';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint =>
'Ingrandisci per vedere la mappa della rete online';
diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart
index ff2f0d89..c92b8eea 100644
--- a/lib/l10n/app_localizations_ja.dart
+++ b/lib/l10n/app_localizations_ja.dart
@@ -407,6 +407,10 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get settings_radioSettingsNotApplied => 'ラジオがこれらの設定を適用しませんでした';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => '地域';
@@ -1261,6 +1265,14 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get contacts_remove => '削除';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return '近くで発見された連絡先($count)';
@@ -1431,6 +1443,23 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get channels_editChannel => 'チャンネルを編集';
+ @override
+ String get channels_notificationSettings => '通知設定';
+
+ @override
+ String get channels_notifyAll => 'すべてのメッセージ';
+
+ @override
+ String get channels_notifyMentionsOnly => 'メンションのみ';
+
+ @override
+ String get channels_notifyNone => 'ミュート';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => 'チャンネルをミュート';
@@ -2334,6 +2363,27 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get map_pathTraceCancelled => '経路トレースはキャンセルされました';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title => 'オフライン用地図キャッシュ';
@@ -4556,6 +4606,14 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get notification_activityTitle => 'メッシュコアの活動';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
String _temp0 = intl.Intl.pluralLogic(
@@ -4597,6 +4655,25 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get notification_receivedNewMessage => '新しいメッセージを受信';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => '返信';
@@ -4693,6 +4770,13 @@ class AppLocalizationsJa extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'ラジオが直接受信したリピータ(最近受信した順)';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => '連絡先設定';
@@ -5936,6 +6020,11 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get contacts_manageGroups => 'グループを管理';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID: $id…';
@@ -6018,6 +6107,17 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get networkMap_sourceBoth => '両方';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint => 'ズームインするとオンラインのネットワークマップが表示されます';
diff --git a/lib/l10n/app_localizations_ko.dart b/lib/l10n/app_localizations_ko.dart
index 6171b464..98d004f4 100644
--- a/lib/l10n/app_localizations_ko.dart
+++ b/lib/l10n/app_localizations_ko.dart
@@ -407,6 +407,10 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get settings_radioSettingsNotApplied => '라디오가 이 설정을 적용하지 않았습니다';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => '지역';
@@ -1266,6 +1270,14 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get contacts_remove => '제거';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return '주변에서 발견됨($count)';
@@ -1436,6 +1448,23 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get channels_editChannel => '채널 편집';
+ @override
+ String get channels_notificationSettings => '알림 설정';
+
+ @override
+ String get channels_notifyAll => '모든 메시지';
+
+ @override
+ String get channels_notifyMentionsOnly => '언급만';
+
+ @override
+ String get channels_notifyNone => '음소거';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => '음소거 채널';
@@ -2340,6 +2369,27 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get map_pathTraceCancelled => '경로 추적 기능이 취소되었습니다.';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title => '오프라인 지도 캐시';
@@ -4567,6 +4617,14 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get notification_activityTitle => '메쉬코어 활동';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
String _temp0 = intl.Intl.pluralLogic(
@@ -4608,6 +4666,25 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get notification_receivedNewMessage => '새로운 메시지를 받았습니다';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => '답장';
@@ -4703,6 +4780,13 @@ class AppLocalizationsKo extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'이 라디오가 직접 들은 리피터입니다. 가장 최근에 들은 순으로 표시됩니다.';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => '연락처 설정';
@@ -5946,6 +6030,11 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get contacts_manageGroups => '그룹 관리';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID: $id…';
@@ -6028,6 +6117,17 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get networkMap_sourceBoth => '모두';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint => '온라인 네트워크 지도를 보려면 확대하세요';
diff --git a/lib/l10n/app_localizations_nl.dart b/lib/l10n/app_localizations_nl.dart
index d265965c..8e4c5505 100644
--- a/lib/l10n/app_localizations_nl.dart
+++ b/lib/l10n/app_localizations_nl.dart
@@ -423,6 +423,10 @@ class AppLocalizationsNl extends AppLocalizations {
String get settings_radioSettingsNotApplied =>
'De radio heeft deze instellingen niet toegepast';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => 'Regio\'s';
@@ -1323,6 +1327,14 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get contacts_remove => 'Verwijderen';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return 'In de buurt ontdekt ($count)';
@@ -1495,6 +1507,23 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get channels_editChannel => 'Kanaal bewerken';
+ @override
+ String get channels_notificationSettings => 'Meldingsinstellingen';
+
+ @override
+ String get channels_notifyAll => 'Alle berichten';
+
+ @override
+ String get channels_notifyMentionsOnly => 'Alleen vermeldingen';
+
+ @override
+ String get channels_notifyNone => 'Gedempt';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => 'Kanaal dempen';
@@ -2421,6 +2450,27 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get map_pathTraceCancelled => 'Pad traceren geannuleerd';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title => 'Offline Kaarten Cache';
@@ -4762,6 +4812,14 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get notification_activityTitle => 'MeshCore Activiteit';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
String _temp0 = intl.Intl.pluralLogic(
@@ -4803,6 +4861,25 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Nieuw bericht ontvangen';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => 'Reageren';
@@ -4904,6 +4981,13 @@ class AppLocalizationsNl extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'Repeaters die je radio rechtstreeks heeft gehoord, meest recent gehoord eerst.';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => 'Instellingen voor contacten';
@@ -6194,6 +6278,11 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get contacts_manageGroups => 'Groepen beheren';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID: $id…';
@@ -6276,6 +6365,17 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get networkMap_sourceBoth => 'Beide';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint =>
'Zoom in om de online netwerkkaart te zien';
diff --git a/lib/l10n/app_localizations_pl.dart b/lib/l10n/app_localizations_pl.dart
index 1c15ff2f..c189c51f 100644
--- a/lib/l10n/app_localizations_pl.dart
+++ b/lib/l10n/app_localizations_pl.dart
@@ -431,6 +431,10 @@ class AppLocalizationsPl extends AppLocalizations {
String get settings_radioSettingsNotApplied =>
'Radio nie zastosowało tych ustawień';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => 'Regiony';
@@ -1347,6 +1351,14 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get contacts_remove => 'Usuń';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return 'Odkryte w pobliżu ($count)';
@@ -1521,6 +1533,23 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get channels_editChannel => 'Edytuj kanał';
+ @override
+ String get channels_notificationSettings => 'Ustawienia powiadomień';
+
+ @override
+ String get channels_notifyAll => 'Wszystkie wiadomości';
+
+ @override
+ String get channels_notifyMentionsOnly => 'Tylko wzmianki';
+
+ @override
+ String get channels_notifyNone => 'Wyciszone';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => 'Wycisz kanał';
@@ -2457,6 +2486,27 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get map_pathTraceCancelled => 'Śledzenie ścieżki anulowano.';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title => 'Pamięć podręczna map offline';
@@ -4813,6 +4863,14 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get notification_activityTitle => 'Aktywność MeshCore';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
String _temp0 = intl.Intl.pluralLogic(
@@ -4860,6 +4918,25 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Otrzymano nową wiadomość';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => 'Odpowiedz';
@@ -4962,6 +5039,13 @@ class AppLocalizationsPl extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'Przekaźniki usłyszane bezpośrednio przez Twoje radio, najpierw te ostatnio usłyszane.';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => 'Ustawienia kontaktów';
@@ -6258,6 +6342,11 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get contacts_manageGroups => 'Zarządzaj grupami';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID: $id…';
@@ -6342,6 +6431,17 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get networkMap_sourceBoth => 'Obie';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint =>
'Przybliż, aby zobaczyć mapę sieci online';
diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart
index 9c1d5a60..4311bb90 100644
--- a/lib/l10n/app_localizations_pt.dart
+++ b/lib/l10n/app_localizations_pt.dart
@@ -427,6 +427,10 @@ class AppLocalizationsPt extends AppLocalizations {
String get settings_radioSettingsNotApplied =>
'O rádio não aplicou estas configurações';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => 'Regiões';
@@ -1332,6 +1336,14 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get contacts_remove => 'Remover';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return 'Descobertos nas proximidades ($count)';
@@ -1506,6 +1518,23 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get channels_editChannel => 'Editar canal';
+ @override
+ String get channels_notificationSettings => 'Configurações de notificação';
+
+ @override
+ String get channels_notifyAll => 'Todas as mensagens';
+
+ @override
+ String get channels_notifyMentionsOnly => 'Apenas menções';
+
+ @override
+ String get channels_notifyNone => 'Silenciado';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => 'Silenciar canal';
@@ -2436,6 +2465,27 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get map_pathTraceCancelled => 'Rastreamento de caminho cancelado.';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title => 'Cache de Mapa Offline';
@@ -4789,6 +4839,14 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get notification_activityTitle => 'Atividade MeshCore';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
String _temp0 = intl.Intl.pluralLogic(
@@ -4830,6 +4888,25 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Nova mensagem recebida';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => 'Responder';
@@ -4931,6 +5008,13 @@ class AppLocalizationsPt extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'Repetidores que o seu rádio ouviu diretamente, do mais recente para o mais antigo.';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => 'Configurações de contatos';
@@ -6223,6 +6307,11 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get contacts_manageGroups => 'Gerenciar grupos';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID: $id…';
@@ -6306,6 +6395,17 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get networkMap_sourceBoth => 'Ambos';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint =>
'Aproxime o zoom para ver o mapa da rede online';
diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart
index 9ec18190..06aae2bd 100644
--- a/lib/l10n/app_localizations_ru.dart
+++ b/lib/l10n/app_localizations_ru.dart
@@ -426,6 +426,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get settings_radioSettingsNotApplied =>
'Радиомодуль не применил эти настройки';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => 'Регионы';
@@ -1336,6 +1340,14 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get contacts_remove => 'Убрать';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return 'Обнаружены поблизости ($count)';
@@ -1510,6 +1522,23 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get channels_editChannel => 'Изменить канал';
+ @override
+ String get channels_notificationSettings => 'Настройки уведомлений';
+
+ @override
+ String get channels_notifyAll => 'Все сообщения';
+
+ @override
+ String get channels_notifyMentionsOnly => 'Только упоминания';
+
+ @override
+ String get channels_notifyNone => 'Без звука';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => 'Отключить уведомления канала';
@@ -2442,6 +2471,27 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get map_pathTraceCancelled => 'Отмена трассировки пути';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title => 'Кэш офлайн-карты';
@@ -4797,6 +4847,14 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get notification_activityTitle => 'Активность MeshCore';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
String _temp0 = intl.Intl.pluralLogic(
@@ -4844,6 +4902,25 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Получено новое сообщение';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => 'Ответить';
@@ -4945,6 +5022,13 @@ class AppLocalizationsRu extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'Ретрансляторы, услышанные вашим радио напрямую, сначала самые недавние.';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => 'Настройки контактов';
@@ -6244,6 +6328,11 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get contacts_manageGroups => 'Управление группами';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID: $id…';
@@ -6329,6 +6418,17 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get networkMap_sourceBoth => 'Обе';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint =>
'Приблизьте, чтобы увидеть онлайн-карту сети';
diff --git a/lib/l10n/app_localizations_sk.dart b/lib/l10n/app_localizations_sk.dart
index 8a8a52f1..614f1129 100644
--- a/lib/l10n/app_localizations_sk.dart
+++ b/lib/l10n/app_localizations_sk.dart
@@ -426,6 +426,10 @@ class AppLocalizationsSk extends AppLocalizations {
String get settings_radioSettingsNotApplied =>
'Rádio tieto nastavenia neuplatnilo';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => 'Regiony';
@@ -1323,6 +1327,14 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get contacts_remove => 'Odstrániť';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return 'Objavené v blízkosti ($count)';
@@ -1498,6 +1510,23 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get channels_editChannel => 'Upraviť kanál';
+ @override
+ String get channels_notificationSettings => 'Nastavenia notifikácií';
+
+ @override
+ String get channels_notifyAll => 'Všetky správy';
+
+ @override
+ String get channels_notifyMentionsOnly => 'Iba zmienky';
+
+ @override
+ String get channels_notifyNone => 'Stíšené';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => 'Stlmiť kanál';
@@ -2429,6 +2458,27 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get map_pathTraceCancelled => 'Zrušenie stopáže cesty bolo zrušené.';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title => 'Offline Mapa Pamäť';
@@ -4770,6 +4820,14 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get notification_activityTitle => 'Aktivita MeshCore';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
String _temp0 = intl.Intl.pluralLogic(
@@ -4814,6 +4872,25 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Prijatá nová správa';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => 'Odpovedať';
@@ -4915,6 +4992,13 @@ class AppLocalizationsSk extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'Opakovače, ktoré vaše rádio počulo priamo, najskôr tie naposledy počuté.';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => 'Nastavenia kontaktov';
@@ -6206,6 +6290,11 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get contacts_manageGroups => 'Spravovať skupiny';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID: $id…';
@@ -6289,6 +6378,17 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get networkMap_sourceBoth => 'Obe';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint =>
'Priblížte, aby ste videli online sieťovú mapu';
diff --git a/lib/l10n/app_localizations_sl.dart b/lib/l10n/app_localizations_sl.dart
index 64326288..b413cb72 100644
--- a/lib/l10n/app_localizations_sl.dart
+++ b/lib/l10n/app_localizations_sl.dart
@@ -425,6 +425,10 @@ class AppLocalizationsSl extends AppLocalizations {
String get settings_radioSettingsNotApplied =>
'Radio teh nastavitev ni uveljavil';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => 'Regioni';
@@ -1323,6 +1327,14 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get contacts_remove => 'Odstrani';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return 'Odkriti v bližini ($count)';
@@ -1496,6 +1508,23 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get channels_editChannel => 'Uredi kanal';
+ @override
+ String get channels_notificationSettings => 'Nastavitve obvestil';
+
+ @override
+ String get channels_notifyAll => 'Vsa sporočila';
+
+ @override
+ String get channels_notifyMentionsOnly => 'Samo omembe';
+
+ @override
+ String get channels_notifyNone => 'Utišano';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => 'Utišaj kanal';
@@ -2422,6 +2451,27 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get map_pathTraceCancelled => 'Spremljanje poti je prekinjeno.';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title =>
'Omrezni predpomnilnik zemljeških zemljejevskih slik';
@@ -4768,6 +4818,14 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get notification_activityTitle => 'Aktivnost MeshCore';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
String _temp0 = intl.Intl.pluralLogic(
@@ -4815,6 +4873,25 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Prejeto novo sporočilo';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => 'Odgovori';
@@ -4916,6 +4993,13 @@ class AppLocalizationsSl extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'Ponovitelji, ki jih je vaše radio slišalo neposredno, najprej nazadnje slišani.';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => 'Nastavitve stikov';
@@ -6208,6 +6292,11 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get contacts_manageGroups => 'Upravljaj skupine';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID: $id…';
@@ -6291,6 +6380,17 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get networkMap_sourceBoth => 'Oboje';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint =>
'Povečajte, da vidite spletni omrežni zemljevid';
diff --git a/lib/l10n/app_localizations_sv.dart b/lib/l10n/app_localizations_sv.dart
index 91fea738..b5901e64 100644
--- a/lib/l10n/app_localizations_sv.dart
+++ b/lib/l10n/app_localizations_sv.dart
@@ -423,6 +423,10 @@ class AppLocalizationsSv extends AppLocalizations {
String get settings_radioSettingsNotApplied =>
'Radion tillämpade inte dessa inställningar';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => 'Regioner';
@@ -1313,6 +1317,14 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get contacts_remove => 'Ta bort';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return 'Upptäckt i närheten ($count)';
@@ -1485,6 +1497,23 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get channels_editChannel => 'Redigera kanal';
+ @override
+ String get channels_notificationSettings => 'Aviseringsinställningar';
+
+ @override
+ String get channels_notifyAll => 'Alla meddelanden';
+
+ @override
+ String get channels_notifyMentionsOnly => 'Endast omnämnanden';
+
+ @override
+ String get channels_notifyNone => 'Tyst';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => 'Tysta kanal';
@@ -2411,6 +2440,27 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get map_pathTraceCancelled => 'Ruttspårningen avbröts.';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title => 'Offline Kartcache';
@@ -4744,6 +4794,14 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get notification_activityTitle => 'MeshCore Aktivitet';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
String _temp0 = intl.Intl.pluralLogic(
@@ -4785,6 +4843,25 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Nytt meddelande mottaget';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => 'Svara';
@@ -4888,6 +4965,13 @@ class AppLocalizationsSv extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'Repeatrar som din radio hörde direkt, senast hörda först.';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => 'Kontaktinställningar';
@@ -6174,6 +6258,11 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get contacts_manageGroups => 'Hantera grupper';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID: $id…';
@@ -6256,6 +6345,17 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get networkMap_sourceBoth => 'Båda';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint =>
'Zooma in för att se nätverkskartan online';
diff --git a/lib/l10n/app_localizations_uk.dart b/lib/l10n/app_localizations_uk.dart
index 8d24bcc5..1c899a8b 100644
--- a/lib/l10n/app_localizations_uk.dart
+++ b/lib/l10n/app_localizations_uk.dart
@@ -425,6 +425,10 @@ class AppLocalizationsUk extends AppLocalizations {
String get settings_radioSettingsNotApplied =>
'Радіомодуль не застосував ці налаштування';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => 'Ріси';
@@ -1327,6 +1331,14 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get contacts_remove => 'Прибрати';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return 'Виявлені поблизу ($count)';
@@ -1501,6 +1513,23 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get channels_editChannel => 'Редагувати канал';
+ @override
+ String get channels_notificationSettings => 'Налаштування сповіщень';
+
+ @override
+ String get channels_notifyAll => 'Усі повідомлення';
+
+ @override
+ String get channels_notifyMentionsOnly => 'Лише згадки';
+
+ @override
+ String get channels_notifyNone => 'Вимкнено';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => 'Вимкнути сповіщення каналу';
@@ -2432,6 +2461,27 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get map_pathTraceCancelled => 'Трасування шляху скасовано.';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title => 'Офлайн-кеш карти';
@@ -4796,6 +4846,14 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get notification_activityTitle => 'Активність MeshCore';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
String _temp0 = intl.Intl.pluralLogic(
@@ -4843,6 +4901,25 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Отримано нове повідомлення';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => 'Відповісти';
@@ -4944,6 +5021,13 @@ class AppLocalizationsUk extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'Ретранслятори, почуті вашим радіо безпосередньо, спочатку найновіші.';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => 'Налаштування контактів';
@@ -6246,6 +6330,11 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get contacts_manageGroups => 'Керування групами';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID: $id…';
@@ -6330,6 +6419,17 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get networkMap_sourceBoth => 'Обидві';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint =>
'Наблизьте, щоб побачити онлайн-карту мережі';
diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart
index fc07ab2b..b731f733 100644
--- a/lib/l10n/app_localizations_zh.dart
+++ b/lib/l10n/app_localizations_zh.dart
@@ -401,6 +401,10 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get settings_radioSettingsNotApplied => '收音机未应用这些设置';
+ @override
+ String get settings_pathHashModeNotApplied =>
+ 'Radio settings were applied, but the radio did not confirm the new path hash size';
+
@override
String get settings_regionSettings => '地区';
@@ -1243,6 +1247,14 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get contacts_remove => '移除';
+ @override
+ String get contacts_removeAutoAddNote =>
+ 'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
+
+ @override
+ String get contacts_removeFailed =>
+ 'The radio did not confirm the removal. The contact was not removed.';
+
@override
String contacts_discoveredNearby(int count) {
return '附近发现的($count)';
@@ -1413,6 +1425,23 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get channels_editChannel => '编辑频道';
+ @override
+ String get channels_notificationSettings => '通知设置';
+
+ @override
+ String get channels_notifyAll => '所有消息';
+
+ @override
+ String get channels_notifyMentionsOnly => '仅提及';
+
+ @override
+ String get channels_notifyNone => '静音';
+
+ @override
+ String channels_notificationModeTooltip(String mode) {
+ return 'Notifications: $mode';
+ }
+
@override
String get channels_muteChannel => '静音频道';
@@ -2305,6 +2334,27 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get map_pathTraceCancelled => '路径追踪已取消';
+ @override
+ String get map_pathTraceAddMoreHint =>
+ 'Tap more nodes to add hops, choose how the trace returns, then tap Run path trace.';
+
+ @override
+ String get map_pathTraceModeRoundTrip => 'Round trip';
+
+ @override
+ String get map_pathTraceModeRoundTripHint =>
+ 'The trace goes out through these hops and comes back the same way.';
+
+ @override
+ String get map_pathTraceModeAsEntered => 'As entered';
+
+ @override
+ String get map_pathTraceModeAsEnteredHint =>
+ 'The trace follows these hops exactly. Add the hops back to you yourself.';
+
+ @override
+ String get map_pathTraceViewLast => 'View last result';
+
@override
String get mapCache_title => '离线地图缓存';
@@ -4464,6 +4514,14 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get notification_activityTitle => 'MeshCore 活动';
+ @override
+ String get notification_lowBatteryTitle => 'Low battery';
+
+ @override
+ String notification_lowBatteryBody(String deviceName, int percent) {
+ return '$deviceName battery is at $percent%';
+ }
+
@override
String notification_messagesCount(int count) {
return '$count 条消息';
@@ -4487,6 +4545,25 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get notification_receivedNewMessage => '收到新消息';
+ @override
+ String get notification_sharedLocation => 'Shared a location';
+
+ @override
+ String notification_sharedLocationNamed(String label) {
+ return 'Shared a location: $label';
+ }
+
+ @override
+ String notification_reacted(String emoji) {
+ return 'Reacted $emoji';
+ }
+
+ @override
+ String get notification_sentGif => 'Sent a GIF';
+
+ @override
+ String get notification_sentImage => 'Sent an image';
+
@override
String get notification_actionReply => '回复';
@@ -4578,6 +4655,13 @@ class AppLocalizationsZh extends AppLocalizations {
String get snrIndicator_nearByRepeatersDescription =>
'你的无线电直接听到的中继器,最近听到的排在前面。';
+ @override
+ String get snrIndicator_unknownRepeater => 'Unknown repeater';
+
+ @override
+ String get snrIndicator_unknownRepeaterHint =>
+ 'This repeater isn\'t in your contacts yet. Its name, location and options appear once your radio receives its advert.';
+
@override
String get contactsSettings_title => '联系人设置';
@@ -5802,6 +5886,11 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get contacts_manageGroups => '管理分组';
+ @override
+ String contacts_keyPrefixSemantics(String prefix) {
+ return 'Key prefix $prefix';
+ }
+
@override
String community_shortId(String id) {
return 'ID:$id…';
@@ -5883,6 +5972,17 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get networkMap_sourceBoth => '两者';
+ @override
+ String get networkMap_sourceLocalHint => 'Nodes your radio has heard';
+
+ @override
+ String get networkMap_sourceOnlineHint =>
+ 'Repeaters from the online network map';
+
+ @override
+ String get networkMap_sourceBothHint =>
+ 'Your radio\'s nodes plus the online network map';
+
@override
String get networkMap_zoomInHint => '放大以查看在线网络地图';
diff --git a/lib/l10n/app_nl.arb b/lib/l10n/app_nl.arb
index 4f7d8d61..3cbd275f 100644
--- a/lib/l10n/app_nl.arb
+++ b/lib/l10n/app_nl.arb
@@ -375,6 +375,10 @@
"channels_addSectionCreate": "Nieuw aanmaken",
"channels_dragToReorder": "Sleep om te herschikken",
"channels_editChannel": "Kanaal bewerken",
+ "channels_notificationSettings": "Meldingsinstellingen",
+ "channels_notifyAll": "Alle berichten",
+ "channels_notifyMentionsOnly": "Alleen vermeldingen",
+ "channels_notifyNone": "Gedempt",
"channels_muteChannel": "Kanaal dempen",
"channels_unmuteChannel": "Kanaal dempen opheffen",
"channels_deleteChannel": "Kanaal verwijderen",
diff --git a/lib/l10n/app_pl.arb b/lib/l10n/app_pl.arb
index 77ca42b7..eb429796 100644
--- a/lib/l10n/app_pl.arb
+++ b/lib/l10n/app_pl.arb
@@ -369,6 +369,10 @@
"channels_public": "Publiczny",
"channels_private": "Prywatny",
"channels_editChannel": "Edytuj kanał",
+ "channels_notificationSettings": "Ustawienia powiadomień",
+ "channels_notifyAll": "Wszystkie wiadomości",
+ "channels_notifyMentionsOnly": "Tylko wzmianki",
+ "channels_notifyNone": "Wyciszone",
"channels_muteChannel": "Wycisz kanał",
"channels_unmuteChannel": "Wyłącz wyciszenie kanału",
"channels_deleteChannel": "Usuń kanał",
diff --git a/lib/l10n/app_pt.arb b/lib/l10n/app_pt.arb
index d211e265..997bd295 100644
--- a/lib/l10n/app_pt.arb
+++ b/lib/l10n/app_pt.arb
@@ -359,6 +359,10 @@
"channels_public": "Público",
"channels_private": "Privado",
"channels_editChannel": "Editar canal",
+ "channels_notificationSettings": "Configurações de notificação",
+ "channels_notifyAll": "Todas as mensagens",
+ "channels_notifyMentionsOnly": "Apenas menções",
+ "channels_notifyNone": "Silenciado",
"channels_muteChannel": "Silenciar canal",
"channels_unmuteChannel": "Ativar canal",
"channels_deleteChannel": "Excluir canal",
diff --git a/lib/l10n/app_ru.arb b/lib/l10n/app_ru.arb
index f2d3baeb..d8b9ff79 100644
--- a/lib/l10n/app_ru.arb
+++ b/lib/l10n/app_ru.arb
@@ -251,6 +251,10 @@
"channels_public": "Публичный",
"channels_private": "Приватный",
"channels_editChannel": "Изменить канал",
+ "channels_notificationSettings": "Настройки уведомлений",
+ "channels_notifyAll": "Все сообщения",
+ "channels_notifyMentionsOnly": "Только упоминания",
+ "channels_notifyNone": "Без звука",
"channels_muteChannel": "Отключить уведомления канала",
"channels_unmuteChannel": "Включить уведомления канала",
"channels_deleteChannel": "Удалить канал",
diff --git a/lib/l10n/app_sk.arb b/lib/l10n/app_sk.arb
index d2525a42..58454b8b 100644
--- a/lib/l10n/app_sk.arb
+++ b/lib/l10n/app_sk.arb
@@ -359,6 +359,10 @@
"channels_public": "Veľké verejné",
"channels_private": "Osobné",
"channels_editChannel": "Upraviť kanál",
+ "channels_notificationSettings": "Nastavenia notifikácií",
+ "channels_notifyAll": "Všetky správy",
+ "channels_notifyMentionsOnly": "Iba zmienky",
+ "channels_notifyNone": "Stíšené",
"channels_muteChannel": "Stlmiť kanál",
"channels_unmuteChannel": "Zrušiť stlmenie kanála",
"channels_deleteChannel": "Odstrániť kanál",
diff --git a/lib/l10n/app_sl.arb b/lib/l10n/app_sl.arb
index 5bc612a0..2e9fcdc0 100644
--- a/lib/l10n/app_sl.arb
+++ b/lib/l10n/app_sl.arb
@@ -359,6 +359,10 @@
"channels_public": "Javni",
"channels_private": "Zasebni",
"channels_editChannel": "Uredi kanal",
+ "channels_notificationSettings": "Nastavitve obvestil",
+ "channels_notifyAll": "Vsa sporočila",
+ "channels_notifyMentionsOnly": "Samo omembe",
+ "channels_notifyNone": "Utišano",
"channels_muteChannel": "Utišaj kanal",
"channels_unmuteChannel": "Vklopi obvestila kanala",
"channels_deleteChannel": "Pošlji kanal",
diff --git a/lib/l10n/app_sv.arb b/lib/l10n/app_sv.arb
index 1857b8a5..a138085a 100644
--- a/lib/l10n/app_sv.arb
+++ b/lib/l10n/app_sv.arb
@@ -359,6 +359,10 @@
"channels_public": "Publik",
"channels_private": "Privat",
"channels_editChannel": "Redigera kanal",
+ "channels_notificationSettings": "Aviseringsinställningar",
+ "channels_notifyAll": "Alla meddelanden",
+ "channels_notifyMentionsOnly": "Endast omnämnanden",
+ "channels_notifyNone": "Tyst",
"channels_muteChannel": "Tysta kanal",
"channels_unmuteChannel": "Slå på ljud för kanal",
"channels_deleteChannel": "Ta bort kanal",
diff --git a/lib/l10n/app_uk.arb b/lib/l10n/app_uk.arb
index d8d3b7db..d7cee3fc 100644
--- a/lib/l10n/app_uk.arb
+++ b/lib/l10n/app_uk.arb
@@ -362,6 +362,10 @@
"channels_via": "через {path}",
"channels_private": "Приватний",
"channels_editChannel": "Редагувати канал",
+ "channels_notificationSettings": "Налаштування сповіщень",
+ "channels_notifyAll": "Усі повідомлення",
+ "channels_notifyMentionsOnly": "Лише згадки",
+ "channels_notifyNone": "Вимкнено",
"channels_muteChannel": "Вимкнути сповіщення каналу",
"channels_unmuteChannel": "Увімкнути сповіщення каналу",
"channels_deleteChannel": "Видалити канал",
diff --git a/lib/l10n/app_zh.arb b/lib/l10n/app_zh.arb
index 410b3a42..644435c8 100644
--- a/lib/l10n/app_zh.arb
+++ b/lib/l10n/app_zh.arb
@@ -374,6 +374,10 @@
"channels_public": "公共",
"channels_private": "私有",
"channels_editChannel": "编辑频道",
+ "channels_notificationSettings": "通知设置",
+ "channels_notifyAll": "所有消息",
+ "channels_notifyMentionsOnly": "仅提及",
+ "channels_notifyNone": "静音",
"channels_muteChannel": "静音频道",
"channels_unmuteChannel": "取消静音频道",
"channels_deleteChannel": "删除频道",
diff --git a/lib/models/app_settings.dart b/lib/models/app_settings.dart
index 6fae3464..f8efacec 100644
--- a/lib/models/app_settings.dart
+++ b/lib/models/app_settings.dart
@@ -29,6 +29,8 @@ String migratePublicIpfsGateway(String? value) {
return gateway;
}
+enum ChannelNotificationMode { all, mentionsOnly, muted }
+
extension UnitSystemValue on UnitSystem {
String get value {
switch (this) {
@@ -150,7 +152,7 @@ class AppSettings {
final Map batteryChemistryByDeviceId;
final Map batteryChemistryByRepeaterId;
final UnitSystem unitSystem;
- final Set mutedChannels;
+ final Map channelNotificationModes;
final bool mapShowDiscoveryContacts;
final bool evictDiscoveredContactsEnabled;
final String tcpServerAddress;
@@ -273,7 +275,7 @@ class AppSettings {
Map? batteryChemistryByDeviceId,
Map? batteryChemistryByRepeaterId,
this.unitSystem = UnitSystem.metric,
- Set? mutedChannels,
+ Map? channelNotificationModes,
this.mapShowDiscoveryContacts = true,
this.evictDiscoveredContactsEnabled = true,
this.tcpServerAddress = '',
@@ -303,7 +305,7 @@ class AppSettings {
String? selectedCyr2latProfileId,
}) : batteryChemistryByDeviceId = batteryChemistryByDeviceId ?? {},
batteryChemistryByRepeaterId = batteryChemistryByRepeaterId ?? {},
- mutedChannels = mutedChannels ?? {},
+ channelNotificationModes = channelNotificationModes ?? {},
imageCodecDownloadedModels = imageCodecDownloadedModels ?? const [],
translationDownloadedModels = translationDownloadedModels ?? const [],
cyr2latProfiles =
@@ -361,7 +363,14 @@ class AppSettings {
'battery_chemistry_by_device_id': batteryChemistryByDeviceId,
'battery_chemistry_by_repeater_id': batteryChemistryByRepeaterId,
'unit_system': unitSystem.value,
- 'muted_channels': mutedChannels.toList(),
+ // Written for older builds that only read the muted set.
+ 'muted_channels': [
+ for (final entry in channelNotificationModes.entries)
+ if (entry.value == ChannelNotificationMode.muted) entry.key,
+ ],
+ 'channel_notification_modes': channelNotificationModes.map(
+ (key, value) => MapEntry(key, value.name),
+ ),
'map_show_discovery_contacts': mapShowDiscoveryContacts,
'evict_discovered_contacts_enabled': evictDiscoveredContactsEnabled,
'tcp_server_address': tcpServerAddress,
@@ -406,6 +415,35 @@ class AppSettings {
return UnitSystem.metric;
}
+ Map parseChannelNotificationModes(
+ Map json,
+ ) {
+ // Migration from old muted_channels (Set) to new system
+ final mutedList = json['muted_channels'] as List?;
+ final newModes = json['channel_notification_modes'] as Map?;
+
+ final result = {};
+
+ // Migrate old muted channels
+ if (mutedList != null) {
+ for (final channelName in mutedList) {
+ result[channelName.toString()] = ChannelNotificationMode.muted;
+ }
+ }
+
+ // Load new modes (overrides old muted channels if present)
+ if (newModes != null) {
+ for (final entry in newModes.entries) {
+ final value = entry.value;
+ if (value is! String) continue;
+ final mode = ChannelNotificationMode.values.asNameMap()[value];
+ if (mode != null) result[entry.key.toString()] = mode;
+ }
+ }
+
+ return result;
+ }
+
return AppSettings(
clearPathOnMaxRetry: json['clear_path_on_max_retry'] as bool? ?? false,
mapShowRepeaters: json['map_show_repeaters'] as bool? ?? true,
@@ -468,11 +506,7 @@ class AppSettings {
) ??
{},
unitSystem: parseUnitSystem(json['unit_system']),
- mutedChannels:
- ((json['muted_channels'] as List?)
- ?.map((e) => e.toString())
- .toSet()) ??
- {},
+ channelNotificationModes: parseChannelNotificationModes(json),
mapShowDiscoveryContacts:
json['map_show_discovery_contacts'] as bool? ?? true,
evictDiscoveredContactsEnabled:
@@ -603,7 +637,7 @@ class AppSettings {
Map? batteryChemistryByDeviceId,
Map? batteryChemistryByRepeaterId,
UnitSystem? unitSystem,
- Set? mutedChannels,
+ Map? channelNotificationModes,
bool? mapShowDiscoveryContacts,
bool? evictDiscoveredContactsEnabled,
String? tcpServerAddress,
@@ -692,7 +726,8 @@ class AppSettings {
batteryChemistryByRepeaterId:
batteryChemistryByRepeaterId ?? this.batteryChemistryByRepeaterId,
unitSystem: unitSystem ?? this.unitSystem,
- mutedChannels: mutedChannels ?? this.mutedChannels,
+ channelNotificationModes:
+ channelNotificationModes ?? this.channelNotificationModes,
mapShowDiscoveryContacts:
mapShowDiscoveryContacts ?? this.mapShowDiscoveryContacts,
evictDiscoveredContactsEnabled:
diff --git a/lib/models/contact.dart b/lib/models/contact.dart
index f079e028..a14d91b1 100644
--- a/lib/models/contact.dart
+++ b/lib/models/contact.dart
@@ -43,6 +43,17 @@ class Contact {
String get publicKeyHex => pubKeyToHex(publicKey);
+ /// Uppercase hex of the first [byteWidth] public-key bytes: the hash this
+ /// node appears as in routing paths.
+ String publicKeyPrefixHex(int byteWidth) {
+ final width = byteWidth.clamp(1, 3).toInt();
+ return publicKey
+ .take(width)
+ .map((b) => b.toRadixString(16).padLeft(2, '0'))
+ .join()
+ .toUpperCase();
+ }
+
/// Non-localized type label, intended for logs and non-UI exports
/// (e.g. GPX). For UI use the `typeLabel(l10n)` extension in
/// `lib/l10n/contact_localization.dart`.
diff --git a/lib/models/map_path_trace_draft.dart b/lib/models/map_path_trace_draft.dart
new file mode 100644
index 00000000..a1c0bfba
--- /dev/null
+++ b/lib/models/map_path_trace_draft.dart
@@ -0,0 +1,31 @@
+import 'package:flutter/foundation.dart';
+import 'package:latlong2/latlong.dart';
+
+import 'contact.dart';
+
+/// The map's path-trace builder state: the hops picked so far, the trace
+/// mode and the last result. Held by [UiViewStateService] for the app session
+/// so leaving the map or opening the result doesn't discard it.
+class MapPathTraceDraft {
+ bool active = false;
+ Uint8List? radioKey;
+ final List pathBytes = [];
+ final List hopWidths = [];
+ final List contacts = [];
+ final List points = [];
+ bool returnPath = true;
+ Uint8List? lastResultFrame;
+
+ bool get hasHops => pathBytes.isNotEmpty;
+
+ bool belongsTo(Uint8List? selfKey) =>
+ radioKey == null || selfKey == null || listEquals(radioKey, selfKey);
+
+ void clear() {
+ pathBytes.clear();
+ hopWidths.clear();
+ contacts.clear();
+ points.clear();
+ lastResultFrame = null;
+ }
+}
diff --git a/lib/review_mode/review_mode_storage.dart b/lib/review_mode/review_mode_storage.dart
index 2ccfc569..de787edb 100644
--- a/lib/review_mode/review_mode_storage.dart
+++ b/lib/review_mode/review_mode_storage.dart
@@ -1,13 +1,17 @@
-import '../services/app_settings_service.dart';
+import 'dart:convert';
+
+import '../services/app_settings_service.dart'
+ show AppSettingsService, ChannelNotificationMode;
import '../services/storage_service.dart';
import '../services/timeout_prediction_service.dart';
import '../storage/legacy_key_migration.dart';
import '../storage/prefs_manager.dart';
import 'review_radio.dart';
-/// Muted channel names as they were when review mode started. Persisted so an
-/// interrupted session (crash, app killed) is still undone on the next launch.
-const _savedMutedChannelsKey = 'review_mode_saved_muted_channels';
+/// Channel notification modes (JSON map of channel name to mode name) as they
+/// were when review mode started. Persisted so an interrupted session (crash,
+/// app killed) is still undone on the next launch.
+const _savedChannelModesKey = 'review_mode_saved_channel_modes';
/// Prefix for snapshots of app-wide repeater keys (saved passwords, clock sync
/// toggles) taken when review mode starts. An empty snapshot means the key did
@@ -31,10 +35,11 @@ Future clearReviewModeData() async {
/// Starts a review session from a clean slate.
///
/// The simulated radio's scope never adopts legacy unscoped keys, so real
-/// radio data cannot be pulled into it. Channel mutes are app-wide and keyed
-/// by channel name (muting the simulated "Public" would mute the real one),
-/// so the current mutes are saved for [endReviewModeSession] to put back, as
-/// are the app-wide repeater keys. Delivery timing is not recorded meanwhile.
+/// radio data cannot be pulled into it. Channel notification modes are
+/// app-wide and keyed by channel name (muting the simulated "Public" would
+/// mute the real one), so the current modes are saved for
+/// [endReviewModeSession] to put back, as are the app-wide repeater keys.
+/// Delivery timing is not recorded meanwhile.
Future beginReviewModeSession(AppSettingsService? settings) async {
scopesWithoutLegacyMigration.add(ReviewRadio.storagePrefix);
TimeoutPredictionService.recordingSuspended = true;
@@ -47,16 +52,16 @@ Future beginReviewModeSession(AppSettingsService? settings) async {
await prefs.setString(savedKey, prefs.getString(key) ?? '');
}
// An earlier interrupted session's record holds the real pre-review state.
- if (settings != null && !prefs.containsKey(_savedMutedChannelsKey)) {
- await prefs.setStringList(
- _savedMutedChannelsKey,
- settings.settings.mutedChannels.toList(),
+ if (settings != null && !prefs.containsKey(_savedChannelModesKey)) {
+ final modes = settings.settings.channelNotificationModes.map(
+ (channel, mode) => MapEntry(channel, mode.name),
);
+ await prefs.setString(_savedChannelModesKey, jsonEncode(modes));
}
}
-/// Deletes the review session's data and restores the channel mutes and
-/// repeater keys saved by [beginReviewModeSession]. Also called at startup to finish a session that
+/// Deletes the review session's data and restores the channel notification
+/// modes and repeater keys saved by [beginReviewModeSession]. Also called at startup to finish a session that
/// was interrupted; it does nothing when no session was left behind.
Future endReviewModeSession(AppSettingsService? settings) async {
TimeoutPredictionService.recordingSuspended = false;
@@ -73,10 +78,19 @@ Future endReviewModeSession(AppSettingsService? settings) async {
}
await prefs.remove(savedKey);
}
- final savedMutes = prefs.getStringList(_savedMutedChannelsKey);
- if (savedMutes == null || settings == null) return;
+ final savedModes = prefs.getString(_savedChannelModesKey);
+ if (savedModes == null || settings == null) return;
+ final restored = {};
+ final decoded = jsonDecode(savedModes);
+ if (decoded is Map) {
+ final byName = ChannelNotificationMode.values.asNameMap();
+ for (final entry in decoded.entries) {
+ final mode = byName[entry.value];
+ if (mode != null) restored[entry.key.toString()] = mode;
+ }
+ }
await settings.updateSettings(
- settings.settings.copyWith(mutedChannels: savedMutes.toSet()),
+ settings.settings.copyWith(channelNotificationModes: restored),
);
- await prefs.remove(_savedMutedChannelsKey);
+ await prefs.remove(_savedChannelModesKey);
}
diff --git a/lib/screens/channel_chat_screen.dart b/lib/screens/channel_chat_screen.dart
index fc0c7df0..34a6bd90 100644
--- a/lib/screens/channel_chat_screen.dart
+++ b/lib/screens/channel_chat_screen.dart
@@ -20,6 +20,7 @@ import '../connector/meshcore_protocol.dart';
import '../helpers/cyr2lat.dart';
import '../helpers/gif_helper.dart';
import '../helpers/ipfs_upload_helper.dart';
+import '../helpers/marker_message.dart';
import '../helpers/message_url_image_helper.dart';
import '../helpers/path_helper.dart';
import '../helpers/reaction_helper.dart';
@@ -28,7 +29,8 @@ import '../l10n/l10n.dart';
import '../models/channel.dart';
import '../models/channel_message.dart';
import '../models/image_codec_support.dart' show aeicRatePointForUi;
-import '../services/app_settings_service.dart';
+import '../services/app_settings_service.dart'
+ show AppSettingsService, ChannelNotificationMode;
import '../services/chat_text_scale_service.dart';
import '../services/image_chunk_transport.dart';
import '../services/image_codec_service.dart';
@@ -38,6 +40,7 @@ import '../utils/image_save.dart';
import '../utils/lora_airtime.dart';
import '../widgets/marker_label_dialog.dart';
import '../widgets/received_image_message.dart';
+import '../widgets/channel_notification_mode_sheet.dart';
import '../widgets/chat_day_separator.dart';
import '../widgets/empty_state.dart';
import '../widgets/chat_composer.dart';
@@ -404,19 +407,22 @@ class _ChannelChatScreenState extends State {
Consumer(
builder: (context, settings, _) {
final muteKey = widget.channel.muteKey;
- final muted = settings.isChannelMuted(muteKey);
+ final notificationMode = settings.getChannelNotificationMode(
+ muteKey,
+ );
return IconButton(
- tooltip: muted
- ? context.l10n.channels_unmuteChannel
- : context.l10n.channels_muteChannel,
- icon: Icon(
- muted
- ? Icons.notifications_off_outlined
- : Icons.notifications_outlined,
+ tooltip: context.l10n.channels_notificationModeTooltip(
+ channelNotificationModeLabel(context, notificationMode),
),
- onPressed: () => muted
- ? settings.unmuteChannel(muteKey)
- : settings.muteChannel(muteKey),
+ icon: Icon(
+ notificationMode == ChannelNotificationMode.muted
+ ? Icons.notifications_off
+ : notificationMode == ChannelNotificationMode.mentionsOnly
+ ? Icons.notification_important
+ : Icons.notifications,
+ ),
+ onPressed: () =>
+ showChannelNotificationModeSheet(context, muteKey),
);
},
),
@@ -2427,9 +2433,8 @@ class _ChannelChatScreenState extends State {
}
void _showEmojiPicker(ChannelMessage message) {
- showModalBottomSheet(
- context: context,
- isScrollControlled: true,
+ showMeshSheet(
+ context,
builder: (context) => EmojiPicker(
onEmojiSelected: (emoji) {
_sendReaction(message, emoji);
diff --git a/lib/screens/channel_message_path_screen.dart b/lib/screens/channel_message_path_screen.dart
index 092e296a..218fe78f 100644
--- a/lib/screens/channel_message_path_screen.dart
+++ b/lib/screens/channel_message_path_screen.dart
@@ -24,6 +24,7 @@ import '../widgets/adaptive_app_bar_title.dart';
import '../widgets/mesh_ui.dart';
import '../widgets/path_map_scaffold.dart';
import '../widgets/path_map_ui.dart';
+import '../widgets/set_my_location_dialog.dart';
class ChannelMessagePathScreen extends StatelessWidget {
final ChannelMessage message;
@@ -911,6 +912,10 @@ class _ChannelMessagePathMapScreenState
initialCenter: model.initialCenter,
initialZoom: model.initialZoom,
bounds: model.bounds,
+ onLongPress: (_, point) =>
+ confirmAndSetMyLocation(context, connector, point),
+ onSecondaryTap: (_, point) =>
+ confirmAndSetMyLocation(context, connector, point),
onPositionChanged: (camera, hasGesture) {
if (!mounted) return;
// A manual pan/zoom releases the follow lock.
diff --git a/lib/screens/channels_screen.dart b/lib/screens/channels_screen.dart
index f0c0bb35..53d561ac 100644
--- a/lib/screens/channels_screen.dart
+++ b/lib/screens/channels_screen.dart
@@ -10,7 +10,8 @@ import 'package:uuid/uuid.dart';
import '../connector/meshcore_connector.dart';
import '../l10n/l10n.dart';
-import '../services/app_settings_service.dart';
+import '../services/app_settings_service.dart'
+ show AppSettingsService, ChannelNotificationMode;
import '../services/ui_view_state_service.dart';
import '../models/channel.dart';
import '../models/community.dart';
@@ -19,6 +20,7 @@ import '../theme/mesh_theme.dart';
import '../utils/dialog_utils.dart';
import '../utils/disconnect_navigation_mixin.dart';
import '../utils/route_transitions.dart';
+import '../widgets/channel_notification_mode_sheet.dart';
import '../widgets/list_filter_widget.dart';
import '../widgets/empty_state.dart';
import '../widgets/mesh_ui.dart';
@@ -372,9 +374,9 @@ class _ChannelsScreenState extends State
int listIndex = 0,
}) {
final unreadCount = connector.getUnreadCountForChannel(channel);
- final isMuted = context.watch().isChannelMuted(
- channel.muteKey,
- );
+ final notificationMode = context
+ .watch()
+ .getChannelNotificationMode(channel.muteKey);
final scheme = Theme.of(context).colorScheme;
// Determine icon and colors based on channel type
@@ -580,9 +582,9 @@ class _ChannelsScreenState extends State
Row(
mainAxisSize: MainAxisSize.min,
children: [
- if (isMuted) ...[
+ if (notificationMode != ChannelNotificationMode.all) ...[
Icon(
- Icons.notifications_off,
+ channelNotificationModeIcon(notificationMode),
size: 18,
color: scheme.onSurfaceVariant,
),
@@ -625,8 +627,6 @@ class _ChannelsScreenState extends State
Channel channel,
) {
final parentContext = context;
- final settingsService = context.read();
- final isMuted = settingsService.isChannelMuted(channel.muteKey);
showMeshSheet(
parentContext,
@@ -645,23 +645,19 @@ class _ChannelsScreenState extends State
}
},
),
+ // Notification mode selection
ListTile(
- leading: Icon(
- isMuted
- ? Icons.notifications_outlined
- : Icons.notifications_off_outlined,
- ),
- title: Text(
- isMuted
- ? sheetContext.l10n.channels_unmuteChannel
- : sheetContext.l10n.channels_muteChannel,
- ),
+ leading: const Icon(Icons.notifications_outlined),
+ title: Text(sheetContext.l10n.channels_notificationSettings),
+ trailing: const Icon(Icons.chevron_right),
onTap: () async {
Navigator.pop(sheetContext);
- if (isMuted) {
- await settingsService.unmuteChannel(channel.muteKey);
- } else {
- await settingsService.muteChannel(channel.muteKey);
+ await Future.delayed(const Duration(milliseconds: 100));
+ if (parentContext.mounted) {
+ showChannelNotificationModeSheet(
+ parentContext,
+ channel.muteKey,
+ );
}
},
),
diff --git a/lib/screens/chat_screen.dart b/lib/screens/chat_screen.dart
index 5456ea55..9275bc0f 100644
--- a/lib/screens/chat_screen.dart
+++ b/lib/screens/chat_screen.dart
@@ -22,6 +22,7 @@ import '../widgets/empty_state.dart';
import '../helpers/chat_scroll_controller.dart';
import '../helpers/gif_helper.dart';
import '../helpers/ipfs_upload_helper.dart';
+import '../helpers/marker_message.dart';
import '../models/channel_message.dart';
import '../models/contact.dart';
import '../l10n/contact_localization.dart';
@@ -1282,9 +1283,8 @@ class _ChatScreenState extends State {
}
void _showEmojiPicker(Message message, Contact senderContact) {
- showModalBottomSheet(
- context: context,
- isScrollControlled: true,
+ showMeshSheet(
+ context,
builder: (context) => EmojiPicker(
onEmojiSelected: (emoji) {
_sendReaction(message, senderContact, emoji);
diff --git a/lib/screens/contacts_screen.dart b/lib/screens/contacts_screen.dart
index e7f8f4b0..c8923ec5 100644
--- a/lib/screens/contacts_screen.dart
+++ b/lib/screens/contacts_screen.dart
@@ -1758,6 +1758,16 @@ class _ContactsScreenState extends State
Text(
context.l10n.contacts_removeFromContactsConfirm(contact.name),
),
+ if (connector.autoAddsContactType(contact.type)) ...[
+ const SizedBox(height: 12),
+ Text(
+ context.l10n.contacts_removeAutoAddNote,
+ style: TextStyle(
+ color: Theme.of(dialogContext).colorScheme.error,
+ fontWeight: FontWeight.w600,
+ ),
+ ),
+ ],
CheckboxListTile(
contentPadding: EdgeInsets.zero,
controlAffinity: ListTileControlAffinity.leading,
@@ -1774,9 +1784,24 @@ class _ContactsScreenState extends State
child: Text(context.l10n.common_cancel),
),
TextButton(
- onPressed: () {
+ onPressed: () async {
Navigator.pop(dialogContext);
- connector.removeContact(contact, keepMessages: keepHistory);
+ try {
+ await connector.removeContact(
+ contact,
+ keepMessages: keepHistory,
+ );
+ } catch (e) {
+ appLogger.warn(
+ 'Remove contact failed: $e',
+ tag: 'ContactsScreen',
+ );
+ if (!context.mounted) return;
+ showDismissibleSnackBar(
+ context,
+ content: Text(context.l10n.contacts_removeFailed),
+ );
+ }
},
child: Text(
context.l10n.contacts_remove,
@@ -1884,9 +1909,13 @@ class _ContactTile extends StatelessWidget {
],
),
const SizedBox(height: 3),
- // Path / subtitle row
+ // Key prefix + path / subtitle row
Row(
children: [
+ _KeyPrefixBadge(
+ prefix: contact.publicKeyPrefixHex(pathHashByteWidth),
+ ),
+ const SizedBox(width: 8),
Expanded(
child: Text(
contact.pathLabel(
@@ -1953,6 +1982,43 @@ class _ContactTile extends StatelessWidget {
}
}
+/// Mono pill showing the contact's routing hash (public-key prefix), so it can
+/// be matched against hops in paths.
+class _KeyPrefixBadge extends StatelessWidget {
+ final String prefix;
+
+ const _KeyPrefixBadge({required this.prefix});
+
+ @override
+ Widget build(BuildContext context) {
+ final scheme = Theme.of(context).colorScheme;
+ return Semantics(
+ label: context.l10n.contacts_keyPrefixSemantics(
+ prefix.split('').join(' '),
+ ),
+ excludeSemantics: true,
+ child: Container(
+ padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 1),
+ decoration: BoxDecoration(
+ color: scheme.surfaceContainerHighest,
+ borderRadius: BorderRadius.circular(MeshRadii.xs),
+ border: Border.all(color: scheme.outline),
+ ),
+ child: Text(
+ prefix,
+ maxLines: 1,
+ style: MeshTheme.mono(
+ fontSize: 13,
+ fontWeight: FontWeight.w700,
+ color: scheme.onSurface,
+ letterSpacing: 0.6,
+ ),
+ ),
+ ),
+ );
+ }
+}
+
/// Disposes [controller] when the dialog content unmounts, i.e. after the
/// route's exit animation, so the TextField never sees a disposed controller.
class _DisposeControllerOnUnmount extends StatefulWidget {
diff --git a/lib/screens/discovery_screen.dart b/lib/screens/discovery_screen.dart
index 3bcda5f7..adaefd02 100644
--- a/lib/screens/discovery_screen.dart
+++ b/lib/screens/discovery_screen.dart
@@ -316,7 +316,15 @@ class _DiscoveryScreenState extends State {
content: Text(context.l10n.discoveredContacts_contactAdded),
action: SnackBarAction(
label: context.l10n.common_undo,
- onPressed: () => connector.removeContact(contact),
+ onPressed: () => unawaited(
+ connector.removeContact(contact).catchError((Object _) {
+ if (!context.mounted) return;
+ showDismissibleSnackBar(
+ context,
+ content: Text(context.l10n.contacts_removeFailed),
+ );
+ }),
+ ),
),
);
} catch (_) {
diff --git a/lib/screens/map_screen.dart b/lib/screens/map_screen.dart
index d2d74bb9..2c62f423 100644
--- a/lib/screens/map_screen.dart
+++ b/lib/screens/map_screen.dart
@@ -16,6 +16,7 @@ import '../connector/meshcore_protocol.dart';
import '../l10n/l10n.dart';
import '../models/app_settings.dart';
import '../models/channel.dart';
+import '../models/map_path_trace_draft.dart';
import '../models/contact.dart';
import '../models/path_history.dart';
import '../l10n/contact_localization.dart';
@@ -41,12 +42,12 @@ import 'chat_screen.dart';
import 'contacts_screen.dart';
import '../theme/mesh_theme.dart';
import '../widgets/mesh_ui.dart';
-import '../widgets/repeater_login_dialog.dart';
-import '../widgets/room_login_dialog.dart';
+import '../widgets/node_info_sheet.dart';
+import '../widgets/set_my_location_dialog.dart';
import '../helpers/guessed_location_estimator.dart';
+import '../helpers/marker_message.dart';
import '../helpers/snack_bar_builder.dart';
import '../helpers/utf8_length_limiter.dart';
-import 'repeater_hub_screen.dart';
import 'settings_screen.dart';
import 'line_of_sight_map_screen.dart';
@@ -86,14 +87,18 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
final NetworkMapOnlineController _online = NetworkMapOnlineController();
final Set _hiddenMarkerIds = {};
Set _removedMarkerIds = {};
- bool _isBuildingPathTrace = false;
+ late final MapPathTraceDraft _traceDraft = context
+ .read()
+ .mapPathTrace;
+ bool get _isBuildingPathTrace => _traceDraft.active;
+ set _isBuildingPathTrace(bool value) => _traceDraft.active = value;
bool _isSelectingPoi = false;
bool _hasInitializedMap = false;
bool _removedMarkersLoaded = false;
- final List _pathTrace = [];
- final List _pathTraceHopWidths = [];
- final List _pathTraceContacts = [];
- final List _points = [];
+ List get _pathTrace => _traceDraft.pathBytes;
+ List get _pathTraceHopWidths => _traceDraft.hopWidths;
+ List get _pathTraceContacts => _traceDraft.contacts;
+ List get _points => _traceDraft.points;
final List _polylines = [];
bool _statsExpanded = false;
bool _showNodeLabels = true;
@@ -248,8 +253,8 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
connector: connector,
repeater: repeater,
onManage: (contact) => contact.type == advTypeRoom
- ? _showRoomLogin(context, contact, manage: true)
- : _showRepeaterLogin(context, contact),
+ ? showRoomLoginDialog(context, contact, manage: true)
+ : showRepeaterLoginDialog(context, contact),
);
}
@@ -719,7 +724,10 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
.length;
return PopScope(
- canPop: allowBack,
+ canPop: allowBack && !_isBuildingPathTrace,
+ onPopInvokedWithResult: (didPop, _) {
+ if (!didPop && _isBuildingPathTrace) _closePathTrace();
+ },
child: Scaffold(
appBar: AppBar(
backgroundColor: scheme.surface,
@@ -745,7 +753,8 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
Text(context.l10n.contacts_pathTrace),
],
),
- onTap: () => _startPath(
+ onTap: () => _openPathTrace(
+ connector,
LatLng(
connector.selfLatitude!,
connector.selfLongitude!,
@@ -782,8 +791,8 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
LineOfSightEndpoint(
label: c.name,
point: LatLng(c.latitude!, c.longitude!),
- color: _getNodeColor(c.type),
- icon: _getNodeIcon(c.type),
+ color: mapNodeTypeColor(c.type),
+ icon: mapNodeTypeIcon(c.type),
),
);
}
@@ -1079,7 +1088,11 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
? FloatingActionButton(
onPressed: () => _showFilterSheet(context, settingsService),
tooltip: context.l10n.map_filterNodes,
- child: const Icon(Icons.filter_list),
+ child: Badge.count(
+ count: _activeFilterCount(settings),
+ isLabelVisible: _activeFilterCount(settings) > 0,
+ child: const Icon(Icons.filter_list),
+ ),
)
: null,
),
@@ -1302,17 +1315,17 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
continue;
}
- final color = _getNodeColor(guess.contact.type);
+ final color = mapNodeTypeColor(guess.contact.type);
final marker = Marker(
point: guess.position,
width: 48,
height: 48,
child: GestureDetector(
onLongPress: () {
- if (_isBuildingPathTrace) _showNodeInfo(context, guess.contact);
+ if (_isBuildingPathTrace) showNodeInfoSheet(context, guess.contact);
},
onSecondaryTap: () {
- if (_isBuildingPathTrace) _showNodeInfo(context, guess.contact);
+ if (_isBuildingPathTrace) showNodeInfoSheet(context, guess.contact);
},
onTap: () => _isBuildingPathTrace
? _addToPath(context, guess.contact, position: guess.position)
@@ -1544,10 +1557,10 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onLongPress: () {
- if (_isBuildingPathTrace) _showNodeInfo(context, contact);
+ if (_isBuildingPathTrace) showNodeInfoSheet(context, contact);
},
onSecondaryTap: () {
- if (_isBuildingPathTrace) _showNodeInfo(context, contact);
+ if (_isBuildingPathTrace) showNodeInfoSheet(context, contact);
},
onTap: () => _isBuildingPathTrace
? _addToPath(context, contact)
@@ -1575,7 +1588,7 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
)
: _buildNodeMarkerWidget(
color: baseColor,
- icon: _getNodeIcon(contact.type),
+ icon: mapNodeTypeIcon(contact.type),
selected: selected,
stale: stale,
online: online,
@@ -1719,21 +1732,6 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
);
}
- Color _getNodeColor(int type) {
- switch (type) {
- case advTypeChat:
- return MapPalette.selected;
- case advTypeRepeater:
- return MapPalette.repeater;
- case advTypeRoom:
- return MapPalette.router;
- case advTypeSensor:
- return MapPalette.sensor;
- default:
- return MapPalette.offline;
- }
- }
-
Color _markerColor(Contact contact) {
switch (contact.type) {
case advTypeRepeater:
@@ -1760,21 +1758,6 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
return estimateBatteryPercentFromMillivolts(millivolts, chemistry) <= 20;
}
- IconData _getNodeIcon(int type) {
- switch (type) {
- case advTypeChat:
- return Icons.person;
- case advTypeRepeater:
- return Icons.router;
- case advTypeRoom:
- return Icons.meeting_room;
- case advTypeSensor:
- return Icons.sensors;
- default:
- return Icons.device_unknown;
- }
- }
-
Widget _buildNodeMarkerWidget({
required Color color,
required IconData icon,
@@ -2022,69 +2005,6 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
),
const SizedBox(height: 6),
_buildMapSourceSwitch(context, mapSource),
- const SizedBox(height: 6),
- LayoutBuilder(
- builder: (context, constraints) {
- final chips = [
- _mapChip(
- label: context.l10n.time_allTime,
- selected: _freshness == _Freshness.all,
- onTap: () => setState(() => _freshness = _Freshness.all),
- ),
- _mapChip(
- label: context.l10n.map_online,
- selected: _freshness == _Freshness.online,
- color: MapPalette.online,
- onTap: () => setState(() => _freshness = _Freshness.online),
- ),
- _mapChip(
- label: context.l10n.map_recent,
- selected: _freshness == _Freshness.recent,
- color: MapPalette.stale,
- onTap: () => setState(() => _freshness = _Freshness.recent),
- ),
- _mapChip(
- label: context.l10n.map_stale,
- selected: _freshness == _Freshness.stale,
- color: MapPalette.offline,
- onTap: () => setState(() => _freshness = _Freshness.stale),
- ),
- _mapChip(
- label: context.l10n.map_repeaters,
- selected: settings.mapShowRepeaters,
- color: MapPalette.repeater,
- onTap: () => settingsService.setMapShowRepeaters(
- !settings.mapShowRepeaters,
- ),
- ),
- _mapChip(
- label: context.l10n.map_chatNodes,
- selected: settings.mapShowChatNodes,
- color: MapPalette.selected,
- onTap: () => settingsService.setMapShowChatNodes(
- !settings.mapShowChatNodes,
- ),
- ),
- _mapChip(
- label: context.l10n.map_groupChip,
- selected: settings.mapClusterNodes,
- color: MapPalette.cluster,
- onTap: () => settingsService.setMapClusterNodes(
- !settings.mapClusterNodes,
- ),
- ),
- ];
-
- if (constraints.maxWidth < 600) {
- return Wrap(runSpacing: 6, children: chips);
- }
-
- return SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Row(children: chips),
- );
- },
- ),
if (hasQuery)
_buildSearchResults(context, allContacts, guessedLocations)
else if (_statsExpanded)
@@ -2106,6 +2026,14 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
);
}
+ int _activeFilterCount(AppSettings settings) => [
+ _freshness != _Freshness.all,
+ !settings.mapShowChatNodes,
+ !settings.mapShowRepeaters,
+ !settings.mapShowOtherNodes,
+ settings.mapKeyPrefixEnabled,
+ ].where((active) => active).length;
+
Widget _buildMapSourceSwitch(BuildContext context, MapSourceOption source) {
final l10n = context.l10n;
return Material(
@@ -2127,16 +2055,19 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
value: MapSourceOption.local,
icon: const Icon(Icons.radio, size: 20),
label: Text(l10n.networkMap_sourceLocal),
+ tooltip: l10n.networkMap_sourceLocalHint,
),
ButtonSegment(
value: MapSourceOption.online,
icon: const Icon(Icons.public, size: 20),
label: Text(l10n.networkMap_sourceOnline),
+ tooltip: l10n.networkMap_sourceOnlineHint,
),
ButtonSegment(
value: MapSourceOption.both,
icon: const Icon(Icons.layers, size: 20),
label: Text(l10n.networkMap_sourceBoth),
+ tooltip: l10n.networkMap_sourceBothHint,
),
],
selected: {source},
@@ -2176,70 +2107,6 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
);
}
- Widget _mapChip({
- required String label,
- required bool selected,
- required VoidCallback onTap,
- Color? color,
- }) {
- final accent = color ?? MapPalette.selected;
- return Padding(
- padding: const EdgeInsets.only(right: 6),
- child: Semantics(
- button: true,
- selected: selected,
- child: Material(
- color: selected
- ? Color.alphaBlend(
- accent.withValues(alpha: 0.34),
- _overlayPanelColor,
- )
- : _overlayPanelColor,
- shape: StadiumBorder(
- side: BorderSide(
- color: selected ? accent : _overlayBorderColor,
- width: selected ? 1.5 : 1,
- ),
- ),
- clipBehavior: Clip.antiAlias,
- child: InkWell(
- onTap: () {
- HapticFeedback.selectionClick();
- onTap();
- },
- child: Container(
- constraints: const BoxConstraints(minHeight: 44),
- padding: const EdgeInsets.symmetric(horizontal: 14),
- child: Row(
- mainAxisSize: MainAxisSize.min,
- children: [
- if (selected) ...[
- Icon(
- Icons.check,
- size: 16,
- color: _overlayPrimaryTextColor,
- ),
- const SizedBox(width: 4),
- ],
- Text(
- label,
- style: TextStyle(
- fontSize: 14,
- fontWeight: FontWeight.w600,
- color: selected
- ? _overlayPrimaryTextColor
- : _overlaySecondaryTextColor,
- ),
- ),
- ],
- ),
- ),
- ),
- ),
- ),
- );
- }
-
Widget _buildSearchResults(
BuildContext context,
List allContacts,
@@ -2289,7 +2156,7 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
Divider(height: 1, color: _overlayBorderColor),
itemBuilder: (context, index) {
final c = results[index];
- final color = _getNodeColor(c.type);
+ final color = mapNodeTypeColor(c.type);
return InkWell(
onTap: () => _onSearchResultTap(c, guessedLocations),
child: Padding(
@@ -2299,7 +2166,7 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
),
child: Row(
children: [
- Icon(_getNodeIcon(c.type), size: 18, color: color),
+ Icon(mapNodeTypeIcon(c.type), size: 18, color: color),
const SizedBox(width: 10),
Expanded(
child: Column(
@@ -2375,7 +2242,7 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
_searchController.clear();
_searchFocus.unfocus();
});
- _showNodeInfo(context, contact);
+ showNodeInfoSheet(context, contact);
}
}
@@ -2523,7 +2390,7 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
name: contact.name,
size: 38,
color: color,
- icon: _getNodeIcon(contact.type),
+ icon: mapNodeTypeIcon(contact.type),
),
const SizedBox(width: 10),
Expanded(
@@ -2600,7 +2467,7 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
children: [
_miniMeta(
context.l10n.map_lastSeen,
- _formatLastSeen(contact.lastSeen),
+ formatNodeLastSeen(context.l10n, contact.lastSeen),
),
_miniMeta(
context.l10n.map_path,
@@ -2631,7 +2498,7 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
style: TextButton.styleFrom(
foregroundColor: MapPalette.selected,
),
- onPressed: () => _showNodeInfo(
+ onPressed: () => showNodeInfoSheet(
context,
contact,
guessedPosition: contact.hasLocation
@@ -2715,7 +2582,7 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
if (!contact.isActive) {
connector.importDiscoveredContact(contact);
}
- _showRepeaterLogin(context, contact);
+ showRepeaterLoginDialog(context, contact);
}),
];
case advTypeRoom:
@@ -2724,13 +2591,13 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
if (!contact.isActive) {
connector.importDiscoveredContact(contact);
}
- _showRoomLogin(context, contact);
+ showRoomLoginDialog(context, contact);
}),
action(context.l10n.map_manageServer, Icons.room_preferences, () {
if (!contact.isActive) {
connector.importDiscoveredContact(contact);
}
- _showRoomLogin(context, contact, manage: true);
+ showRoomLoginDialog(context, contact, manage: true);
}),
];
default:
@@ -3062,7 +2929,7 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
overflow: TextOverflow.ellipsis,
),
subtitle: Text(
- '${marker.fromName} · ${_formatLastSeen(marker.timestamp)}',
+ '${marker.fromName} · ${formatNodeLastSeen(context.l10n, marker.timestamp)}',
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
@@ -3083,193 +2950,6 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
);
}
- void _showRepeaterLogin(BuildContext context, Contact repeater) {
- showDialog(
- context: context,
- builder: (context) => RepeaterLoginDialog(
- repeater: repeater,
- onLogin: (password, isAdmin) {
- // Navigate to repeater hub screen after successful login
- Navigator.push(
- context,
- MaterialPageRoute(
- builder: (context) => RepeaterHubScreen(
- repeater: repeater,
- password: password,
- isAdmin: isAdmin,
- ),
- ),
- );
- },
- ),
- );
- }
-
- void _showRoomLogin(
- BuildContext context,
- Contact room, {
- bool manage = false,
- }) {
- showDialog(
- context: context,
- builder: (context) => RoomLoginDialog(
- room: room,
- onLogin: (password, isAdmin) {
- final connector = context.read();
- final unread = connector.getUnreadCountForContactKey(
- room.publicKeyHex,
- );
- connector.markContactRead(room.publicKeyHex);
- Navigator.push(
- context,
- MaterialPageRoute(
- builder: (context) => manage
- ? RepeaterHubScreen(
- repeater: room,
- password: password,
- isAdmin: isAdmin,
- )
- : ChatScreen(contact: room, initialUnreadCount: unread),
- ),
- );
- },
- ),
- );
- }
-
- void _showNodeInfo(
- BuildContext context,
- Contact contact, {
- LatLng? guessedPosition,
- }) {
- final connector = context.read();
- showMeshSheet(
- context,
- builder: (sheetContext) {
- final actions = [];
- if (contact.type == advTypeChat) {
- actions.add(
- FilledButton(
- onPressed: () {
- if (!contact.isActive) {
- connector.importDiscoveredContact(contact);
- }
- final unread = connector.getUnreadCountForContactKey(
- contact.publicKeyHex,
- );
- Navigator.pop(sheetContext);
- Navigator.push(
- context,
- MaterialPageRoute(
- builder: (context) => ChatScreen(
- contact: contact,
- initialUnreadCount: unread,
- ),
- ),
- );
- },
- child: Text(context.l10n.contacts_openChat),
- ),
- );
- }
- if (contact.type == advTypeRepeater) {
- actions.add(
- FilledButton(
- onPressed: () {
- if (!contact.isActive) {
- connector.importDiscoveredContact(contact);
- }
- Navigator.pop(sheetContext);
- _showRepeaterLogin(context, contact);
- },
- child: Text(context.l10n.map_manageRepeater),
- ),
- );
- }
- if (contact.type == advTypeRoom) {
- actions.add(
- FilledButton(
- onPressed: () {
- if (!contact.isActive) {
- connector.importDiscoveredContact(contact);
- }
- Navigator.pop(sheetContext);
- _showRoomLogin(context, contact);
- },
- child: Text(context.l10n.map_joinRoom),
- ),
- );
- actions.add(
- FilledButton(
- onPressed: () {
- if (!contact.isActive) {
- connector.importDiscoveredContact(contact);
- }
- Navigator.pop(sheetContext);
- _showRoomLogin(context, contact, manage: true);
- },
- child: Text(context.l10n.map_manageServer),
- ),
- );
- }
- return SafeArea(
- child: SingleChildScrollView(
- child: Column(
- mainAxisSize: MainAxisSize.min,
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- BottomSheetHeader(
- title: contact.name,
- subtitle: contact.typeLabel(context.l10n),
- trailing: Icon(
- _getNodeIcon(contact.type),
- color: _getNodeColor(contact.type),
- size: 20,
- ),
- ),
- Padding(
- padding: const EdgeInsets.fromLTRB(16, 0, 16, 16),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- _buildInfoRow(
- context.l10n.map_path,
- contact.pathLabel(
- context.l10n,
- pathHashByteWidth: connector.pathHashByteWidth,
- ),
- ),
- if (contact.hasLocation)
- _buildInfoRow(
- context.l10n.map_location,
- '${contact.latitude!.toStringAsFixed(6)}, ${contact.longitude!.toStringAsFixed(6)}',
- )
- else if (guessedPosition != null)
- _buildInfoRow(
- context.l10n.map_estLocation,
- '~${guessedPosition.latitude.toStringAsFixed(6)}, ${guessedPosition.longitude.toStringAsFixed(6)}',
- ),
- _buildInfoRow(
- context.l10n.map_lastSeen,
- _formatLastSeen(contact.lastSeen),
- ),
- _buildInfoRow(
- context.l10n.map_publicKey,
- contact.publicKeyHex,
- ),
- const SizedBox(height: 16),
- ...actions,
- ],
- ),
- ),
- ],
- ),
- ),
- );
- },
- );
- }
-
void _handleQuickSwitch(int index, BuildContext context) {
if (index == 2) return;
switch (index) {
@@ -3326,18 +3006,22 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
- _buildInfoRow(context.l10n.map_from, marker.fromName),
- _buildInfoRow(context.l10n.map_source, marker.sourceLabel),
- _buildInfoRow(
- context.l10n.map_sharedAt,
- _formatLastSeen(marker.timestamp),
+ NodeInfoRow(label: context.l10n.map_from, value: marker.fromName),
+ NodeInfoRow(
+ label: context.l10n.map_source,
+ value: marker.sourceLabel,
),
- _buildInfoRow(
- context.l10n.map_location,
- '${marker.position.latitude.toStringAsFixed(6)}, ${marker.position.longitude.toStringAsFixed(6)}',
+ NodeInfoRow(
+ label: context.l10n.map_sharedAt,
+ value: formatNodeLastSeen(context.l10n, marker.timestamp),
+ ),
+ NodeInfoRow(
+ label: context.l10n.map_location,
+ value:
+ '${marker.position.latitude.toStringAsFixed(6)}, ${marker.position.longitude.toStringAsFixed(6)}',
),
if (marker.flags.isNotEmpty)
- _buildInfoRow(context.l10n.map_flags, marker.flags),
+ NodeInfoRow(label: context.l10n.map_flags, value: marker.flags),
const SizedBox(height: 12),
Text(
context.l10n.map_markerHideHint,
@@ -3426,48 +3110,6 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
);
}
- Widget _buildInfoRow(String label, String value) {
- return Padding(
- padding: const EdgeInsets.symmetric(vertical: 4.0),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- label,
- style: TextStyle(
- fontSize: 12,
- color: Theme.of(context).colorScheme.onSurfaceVariant,
- fontWeight: FontWeight.w500,
- ),
- ),
- const SizedBox(height: 2),
- SelectableText(
- value,
- style: MeshTheme.mono(
- fontSize: 13,
- color: Theme.of(context).colorScheme.onSurface,
- ),
- ),
- ],
- ),
- );
- }
-
- String _formatLastSeen(DateTime lastSeen) {
- final now = DateTime.now();
- final difference = now.difference(lastSeen);
-
- if (difference.inSeconds < 60) {
- return context.l10n.time_justNow;
- } else if (difference.inMinutes < 60) {
- return context.l10n.time_minutesAgo(difference.inMinutes);
- } else if (difference.inHours < 24) {
- return context.l10n.time_hoursAgo(difference.inHours);
- } else {
- return context.l10n.time_daysAgo(difference.inDays);
- }
- }
-
void _showShareMarkerAtPositionSheet({
required BuildContext context,
required MeshCoreConnector connector,
@@ -3498,7 +3140,7 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
title: Text(context.l10n.map_setAsMyLocation),
onTap: () {
Navigator.pop(sheetContext);
- _confirmAndSetMyLocation(connector, position);
+ confirmAndSetMyLocation(this.context, connector, position);
},
),
ListTile(
@@ -3512,72 +3154,6 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
);
}
- Future _confirmAndSetMyLocation(
- MeshCoreConnector connector,
- LatLng position,
- ) async {
- if (!connector.isConnected) return;
- final l10n = context.l10n;
- final latText = position.latitude.toStringAsFixed(6);
- final lonText = position.longitude.toStringAsFixed(6);
- final confirmed = await showDialog(
- context: context,
- builder: (dialogContext) => AlertDialog(
- title: Text(l10n.map_setLocationConfirmTitle),
- content: Text(l10n.map_setLocationConfirmBody(latText, lonText)),
- actions: [
- TextButton(
- onPressed: () => Navigator.pop(dialogContext, false),
- child: Text(l10n.common_cancel),
- ),
- FilledButton(
- onPressed: () => Navigator.pop(dialogContext, true),
- child: Text(l10n.map_setLocationAction),
- ),
- ],
- ),
- );
- if (confirmed != true || !mounted || !connector.isConnected) return;
-
- // The firmware stores coordinates as int32 micro-degrees.
- bool matches() {
- final lat = connector.selfLatitude;
- final lon = connector.selfLongitude;
- return lat != null &&
- lon != null &&
- (lat - position.latitude).abs() < 2e-6 &&
- (lon - position.longitude).abs() < 2e-6;
- }
-
- var ok = false;
- try {
- await connector.setNodeLocation(
- lat: position.latitude,
- lon: position.longitude,
- );
- await connector.refreshDeviceInfo();
- // Self info arrives asynchronously after the query; wait for it.
- final deadline = DateTime.now().add(const Duration(seconds: 6));
- while (mounted && connector.isConnected) {
- if (matches()) {
- ok = true;
- break;
- }
- if (DateTime.now().isAfter(deadline)) break;
- await Future.delayed(const Duration(milliseconds: 250));
- }
- } catch (e) {
- debugPrint('Set node location failed: $e');
- }
- if (!mounted) return;
- showDismissibleSnackBar(
- context,
- content: Text(
- ok ? l10n.map_locationSetSuccess : l10n.map_locationSetFailed,
- ),
- );
- }
-
Future _shareMarker({
required BuildContext context,
required MeshCoreConnector connector,
@@ -4133,18 +3709,40 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
),
); // Add contact to path trace contacts
_points.add(position ?? LatLng(contact.latitude!, contact.longitude!));
+ _traceDraft.lastResultFrame = null;
});
}
- void _startPath(LatLng position) {
+ /// Opens the path-trace builder, resuming hops picked earlier this session
+ /// on the same radio.
+ void _openPathTrace(MeshCoreConnector connector, LatLng position) {
setState(() {
+ final selfKey = connector.selfPublicKey;
+ if (!_traceDraft.belongsTo(selfKey) || !_traceDraft.hasHops) {
+ _traceDraft.clear();
+ }
+ _traceDraft.radioKey = selfKey;
+ if (_points.isEmpty) {
+ _points.add(position);
+ } else {
+ _points[0] = position;
+ }
_isBuildingPathTrace = true;
- _pathTrace.clear();
- _pathTraceHopWidths.clear();
- _pathTraceContacts.clear();
- _points.clear();
- _polylines.clear();
- _points.add(position);
+ });
+ }
+
+ /// Hides the builder but keeps the picked hops and last result.
+ void _closePathTrace() {
+ setState(() {
+ _isBuildingPathTrace = false;
+ });
+ }
+
+ void _clearPath() {
+ setState(() {
+ final start = _points.isNotEmpty ? _points.first : null;
+ _traceDraft.clear();
+ if (start != null) _points.add(start);
});
}
@@ -4163,16 +3761,55 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
_pathTrace.length - hopByteCount,
_pathTrace.length,
);
- _points.removeLast(); // Remove last point from points list
- _polylines.clear(); // Clear polylines
+ _points.removeLast();
+ _traceDraft.lastResultFrame = null;
});
}
+ void _setTraceReturnPath(bool returnPath) {
+ if (_traceDraft.returnPath == returnPath) return;
+ setState(() {
+ _traceDraft.returnPath = returnPath;
+ _traceDraft.lastResultFrame = null;
+ });
+ }
+
+ void _openTraceResult({required bool reuseLastResult}) {
+ final draft = _traceDraft;
+ final path = Uint8List.fromList(_pathTrace);
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (context) => PathTraceMapScreen(
+ title: context.l10n.contacts_pathTrace,
+ path: path,
+ flipPathAround: draft.returnPath,
+ pathHashByteWidth: context
+ .read()
+ .pathHashByteWidth,
+ pathContacts: List.of(_pathTraceContacts),
+ initialTraceFrame: reuseLastResult ? draft.lastResultFrame : null,
+ onTraceFrame: (frame) {
+ // Ignore a reply for a selection the user has since changed.
+ if (!listEquals(draft.pathBytes, path)) return;
+ draft.lastResultFrame = frame;
+ if (mounted) setState(() {});
+ },
+ ),
+ ),
+ );
+ }
+
Widget _buildPathTraceOverlay() {
final l10n = context.l10n;
+ final theme = Theme.of(context);
final isImperial =
context.read().settings.unitSystem ==
UnitSystem.imperial;
+ final hasHops = _pathTrace.isNotEmpty;
+ final returnPath = _traceDraft.returnPath;
+ const buttonSize = Size(48, 48);
+ final hopNames = _pathTraceContacts.map((c) => c.name).join(' → ');
return Positioned(
top: 16,
left: 16,
@@ -4196,124 +3833,136 @@ class _MapScreenState extends State with DisconnectNavigationMixin {
padding: const EdgeInsets.all(12.0),
child: Column(
mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
+ Row(
+ children: [
+ Expanded(
+ child: Text(
+ l10n.contacts_pathTrace,
+ style: theme.textTheme.titleMedium?.copyWith(
+ fontWeight: FontWeight.bold,
+ color: _overlayPrimaryTextColor,
+ ),
+ ),
+ ),
+ TextButton.icon(
+ onPressed: _closePathTrace,
+ style: TextButton.styleFrom(minimumSize: buttonSize),
+ icon: const Icon(Icons.close),
+ label: Text(l10n.common_close),
+ ),
+ ],
+ ),
+ const SizedBox(height: 4),
Text(
- l10n.contacts_pathTrace,
+ hasHops ? l10n.map_pathTraceAddMoreHint : l10n.map_tapToAdd,
style: TextStyle(
- fontWeight: FontWeight.bold,
- color: _overlayPrimaryTextColor,
+ fontSize: 15,
+ color: _overlaySecondaryTextColor,
),
),
- if (_pathTrace.isEmpty) const SizedBox(height: 8),
- if (_pathTrace.isEmpty)
+ if (hasHops) ...[
+ const SizedBox(height: 8),
Text(
- l10n.map_tapToAdd,
+ hopNames,
style: TextStyle(
- fontSize: 12,
- color: _overlaySecondaryTextColor,
+ fontSize: 16,
+ fontWeight: FontWeight.w600,
+ color: _overlayPrimaryTextColor,
+ ),
+ ),
+ SelectableText(
+ PathHelper.splitPathBytes(
+ _pathTrace,
+ context.read().pathHashByteWidth,
+ ).map(PathHelper.formatHopHex).join(','),
+ style: MeshTheme.mono(
+ fontSize: 18,
+ fontWeight: FontWeight.w700,
+ color: MapPalette.selected,
),
),
- const SizedBox(height: 6),
- if (_pathTrace.isNotEmpty)
Text(
"${l10n.path_currentPathLabel} ${formatDistance(getPathDistanceMeters(_points), isImperial: isImperial)}",
style: MeshTheme.mono(
- fontSize: 12,
+ fontSize: 14,
color: _overlaySecondaryTextColor,
),
),
- SelectableText(
- PathHelper.splitPathBytes(
- _pathTrace,
- context.read().pathHashByteWidth,
- ).map(PathHelper.formatHopHex).join(','),
- style: MeshTheme.mono(
- fontSize: 18,
- fontWeight: FontWeight.w700,
- color: MapPalette.selected,
- ),
- ),
- // const SizedBox(height: 6),
- Wrap(
- alignment: WrapAlignment.center,
- spacing: 1,
- runSpacing: 1,
- children: [
- if (_pathTrace.isNotEmpty)
- IconButton(
- onPressed: () {
- final hashW = context
- .read()
- .pathHashByteWidth;
- Navigator.push(
- context,
- MaterialPageRoute(
- builder: (context) => PathTraceMapScreen(
- title: l10n.contacts_pathTrace,
- path: Uint8List.fromList(_pathTrace),
- flipPathAround: false,
- pathHashByteWidth: hashW,
- pathContacts: _pathTraceContacts,
- ),
- ),
- );
- setState(() {
- _isBuildingPathTrace = false;
- });
- },
- tooltip: l10n.map_runTrace,
- icon: const Icon(Icons.arrow_forward_outlined),
- ),
- if (_pathTrace.isNotEmpty)
- IconButton(
- onPressed: () {
- Navigator.push(
- context,
- MaterialPageRoute(
- builder: (context) => PathTraceMapScreen(
- title: l10n.contacts_pathTrace,
- path: Uint8List.fromList(_pathTrace),
- flipPathAround: true,
- pathHashByteWidth: context
- .read()
- .pathHashByteWidth,
- pathContacts: _pathTraceContacts,
- ),
- ),
- );
- setState(() {
- _isBuildingPathTrace = false;
- });
- },
- tooltip: l10n.map_runTraceWithReturnPath,
- icon: const Icon(Icons.replay),
- ),
- if (_pathTrace.isNotEmpty)
- IconButton(
+ const SizedBox(height: 4),
+ Wrap(
+ spacing: 8,
+ children: [
+ TextButton.icon(
onPressed: _removePath,
- tooltip: l10n.map_removeLast,
+ style: TextButton.styleFrom(minimumSize: buttonSize),
icon: const Icon(Icons.undo),
+ label: Text(l10n.map_removeLast),
),
- if (_pathTrace.isEmpty)
- IconButton(
- onPressed: () {
- setState(() {
- _isBuildingPathTrace = false;
- _pathTrace.clear();
- _pathTraceHopWidths.clear();
- _points.clear();
- _polylines.clear();
- });
- showDismissibleSnackBar(
- context,
- content: Text(l10n.map_pathTraceCancelled),
- );
- },
- tooltip: l10n.common_cancel,
- icon: const Icon(Icons.close),
+ TextButton.icon(
+ onPressed: _clearPath,
+ style: TextButton.styleFrom(minimumSize: buttonSize),
+ icon: const Icon(Icons.delete_outline),
+ label: Text(l10n.common_clear),
),
- ],
- ),
+ ],
+ ),
+ const SizedBox(height: 4),
+ SegmentedButton(
+ segments: [
+ ButtonSegment(
+ value: true,
+ icon: const Icon(Icons.sync_alt),
+ label: Text(l10n.map_pathTraceModeRoundTrip),
+ ),
+ ButtonSegment(
+ value: false,
+ icon: const Icon(Icons.arrow_forward),
+ label: Text(l10n.map_pathTraceModeAsEntered),
+ ),
+ ],
+ selected: {returnPath},
+ onSelectionChanged: (selection) =>
+ _setTraceReturnPath(selection.first),
+ style: SegmentedButton.styleFrom(minimumSize: buttonSize),
+ ),
+ const SizedBox(height: 6),
+ Text(
+ returnPath
+ ? l10n.map_pathTraceModeRoundTripHint
+ : l10n.map_pathTraceModeAsEnteredHint,
+ style: TextStyle(
+ fontSize: 14,
+ color: _overlaySecondaryTextColor,
+ ),
+ ),
+ const SizedBox(height: 10),
+ Wrap(
+ spacing: 8,
+ runSpacing: 8,
+ alignment: WrapAlignment.end,
+ children: [
+ if (_traceDraft.lastResultFrame != null)
+ OutlinedButton.icon(
+ onPressed: () =>
+ _openTraceResult(reuseLastResult: true),
+ style: OutlinedButton.styleFrom(
+ minimumSize: buttonSize,
+ ),
+ icon: const Icon(Icons.history),
+ label: Text(l10n.map_pathTraceViewLast),
+ ),
+ FilledButton.icon(
+ onPressed: () =>
+ _openTraceResult(reuseLastResult: false),
+ style: FilledButton.styleFrom(minimumSize: buttonSize),
+ icon: const Icon(Icons.radar),
+ label: Text(l10n.map_runTrace),
+ ),
+ ],
+ ),
+ ],
],
),
),
@@ -4546,35 +4195,6 @@ class _GuessedLocation {
});
}
-class MarkerPayload {
- final LatLng position;
- final String label;
- final String flags;
-
- MarkerPayload({
- required this.position,
- required this.label,
- required this.flags,
- });
-}
-
-/// Parse a shared marker text message of the form
-/// `m:,||` and return a [MarkerPayload].
-MarkerPayload? parseMarkerText(String text) {
- final trimmed = text.trim();
- final match = RegExp(
- r'm:([\-0-9.]+),([\-0-9.]+)\|([^|]*)\|(.*)',
- ).firstMatch(trimmed);
- if (match == null) return null;
- final lat = double.tryParse(match.group(1) ?? '');
- final lon = double.tryParse(match.group(2) ?? '');
- if (lat == null || lon == null) return null;
- if (lat.abs() > 90 || lon.abs() > 180) return null;
- final label = (match.group(3) ?? '').trim();
- final flags = (match.group(4) ?? '').trim();
- return MarkerPayload(position: LatLng(lat, lon), label: label, flags: flags);
-}
-
/// Build a normalized dedupe key for shared markers.
/// Keeps the same algorithm previously present in both chat and map screens.
String buildSharedMarkerKey({
diff --git a/lib/screens/path_trace_map.dart b/lib/screens/path_trace_map.dart
index f0bee80e..bdf78612 100644
--- a/lib/screens/path_trace_map.dart
+++ b/lib/screens/path_trace_map.dart
@@ -22,6 +22,7 @@ import 'package:meshcore_open/helpers/snack_bar_builder.dart';
import 'package:meshcore_open/widgets/path_map_scaffold.dart';
import 'package:meshcore_open/widgets/path_map_ui.dart';
import 'package:meshcore_open/widgets/snr_indicator.dart';
+import 'package:meshcore_open/widgets/set_my_location_dialog.dart';
import 'package:provider/provider.dart';
import '../theme/mesh_theme.dart';
@@ -64,6 +65,13 @@ class PathTraceMapScreen extends StatefulWidget {
final int pathHashByteWidth;
final List? pathContacts;
+ /// A previous PUSH_CODE_TRACE_DATA frame to show instead of sending a new
+ /// trace when the screen opens.
+ final Uint8List? initialTraceFrame;
+
+ /// Called with each trace response frame this screen receives.
+ final ValueChanged? onTraceFrame;
+
const PathTraceMapScreen({
super.key,
required this.title,
@@ -74,6 +82,8 @@ class PathTraceMapScreen extends StatefulWidget {
this.targetContact,
this.pathHashByteWidth = pathHashSize,
this.pathContacts,
+ this.initialTraceFrame,
+ this.onTraceFrame,
});
@override
@@ -219,7 +229,20 @@ class _PathTraceMapScreenState extends State
_pathHistory = context.read();
_pathHistory!.addListener(_onPathHistoryChanged);
_setupFrameListener();
- _doPathTrace();
+ final initialFrame = widget.initialTraceFrame;
+ if (initialFrame == null) {
+ _doPathTrace();
+ return;
+ }
+ final (livePath, hopWidth) = _resolveLivePath(
+ context.read(),
+ );
+ _tracedPath = livePath;
+ _tracedPathHashWidth = hopWidth;
+ _isLoading = true;
+ WidgetsBinding.instance.addPostFrameCallback((_) {
+ if (mounted) _handleTraceResponse(initialFrame);
+ });
}
@override
@@ -239,6 +262,16 @@ class _PathTraceMapScreenState extends State
});
}
+ Future _setMyLocation(LatLng point) async {
+ final connector = context.read();
+ final ok = await confirmAndSetMyLocation(context, connector, point);
+ if (!ok || !mounted || !_hasData) return;
+ // Display paths start at the self position, so redraw them from it.
+ setState(() {
+ _rebuildDisplayPaths(connector);
+ });
+ }
+
/// Keeps the camera centered on the packet while the follow lock is on.
void _followPacketCamera() {
if (!mounted) return;
@@ -490,6 +523,7 @@ class _PathTraceMapScreenState extends State
(listEquals(frame.sublist(4, 8), _sentTagBytes) ||
listEquals(frame.sublist(4, 8), _sentAckTag))) {
_timeoutTimer?.cancel();
+ widget.onTraceFrame?.call(frame);
if (!mounted) return;
_handleTraceResponse(frame);
}
@@ -1497,6 +1531,8 @@ class _PathTraceMapScreenState extends State
initialCenter: _initialCenter!,
initialZoom: _initialZoom,
bounds: _bounds,
+ onLongPress: (_, point) => _setMyLocation(point),
+ onSecondaryTap: (_, point) => _setMyLocation(point),
onPositionChanged: (camera, hasGesture) {
if (!mounted) return;
// A manual pan/zoom releases the follow lock.
diff --git a/lib/screens/settings_screen.dart b/lib/screens/settings_screen.dart
index dff41c0b..74ca3e2c 100644
--- a/lib/screens/settings_screen.dart
+++ b/lib/screens/settings_screen.dart
@@ -25,9 +25,6 @@ import '../widgets/sync_progress_overlay.dart';
import 'region_management_screen.dart';
import '../utils/share_origin.dart';
-/// Companion firmware version that added CMD_SET_PATH_HASH_MODE (v1.14.0).
-const int _minFirmwareVerCodeForPathHashMode = 10;
-
class SettingsScreen extends StatefulWidget {
const SettingsScreen({super.key});
@@ -566,14 +563,10 @@ class _SettingsScreenState extends State {
title: l10n.repeater_pathHashMode,
subtitle: !connected
? offline
- : (connector.firmwareVerCode ?? 0) <
- _minFirmwareVerCodeForPathHashMode
+ : !connector.supportsPathHashMode
? l10n.settings_requiresFirmware('v1.14')
: _pathHashModeSubtitle(context, connector.pathHashByteWidth),
- onTap:
- connector.isConnected &&
- (connector.firmwareVerCode ?? 0) >=
- _minFirmwareVerCodeForPathHashMode
+ onTap: connector.isConnected && connector.supportsPathHashMode
? () => _editPathHashMode(context, connector)
: null,
),
diff --git a/lib/services/app_settings_service.dart b/lib/services/app_settings_service.dart
index a1679b0f..7bd5ba65 100644
--- a/lib/services/app_settings_service.dart
+++ b/lib/services/app_settings_service.dart
@@ -3,6 +3,8 @@ import 'package:flutter/foundation.dart';
import '../models/app_settings.dart';
import '../models/image_codec_support.dart';
import '../models/translation_support.dart';
+
+export '../models/app_settings.dart' show ChannelNotificationMode;
import '../storage/prefs_manager.dart';
import '../utils/app_logger.dart';
import '../helpers/cyr2lat.dart';
@@ -286,19 +288,24 @@ class AppSettingsService extends ChangeNotifier {
await updateSettings(_settings.copyWith(unitSystem: value));
}
- bool isChannelMuted(String channelName) {
- return _settings.mutedChannels.contains(channelName);
+ ChannelNotificationMode getChannelNotificationMode(String channelName) {
+ return _settings.channelNotificationModes[channelName] ??
+ ChannelNotificationMode.all;
}
- Future muteChannel(String channelName) async {
- final updated = Set.from(_settings.mutedChannels)..add(channelName);
- await updateSettings(_settings.copyWith(mutedChannels: updated));
- }
-
- Future unmuteChannel(String channelName) async {
- final updated = Set.from(_settings.mutedChannels)
- ..remove(channelName);
- await updateSettings(_settings.copyWith(mutedChannels: updated));
+ Future setChannelNotificationMode(
+ String channelName,
+ ChannelNotificationMode mode,
+ ) async {
+ final updated = Map.from(
+ _settings.channelNotificationModes,
+ );
+ if (mode == ChannelNotificationMode.all) {
+ updated.remove(channelName);
+ } else {
+ updated[channelName] = mode;
+ }
+ await updateSettings(_settings.copyWith(channelNotificationModes: updated));
}
Future setTcpServerAddress(String value) async {
diff --git a/lib/services/node_banner_service.dart b/lib/services/node_banner_service.dart
new file mode 100644
index 00000000..3702c537
--- /dev/null
+++ b/lib/services/node_banner_service.dart
@@ -0,0 +1,155 @@
+import 'dart:convert';
+
+import 'package:flutter/foundation.dart';
+import 'package:http/http.dart' as http;
+
+import '../storage/prefs_manager.dart';
+
+/// DNS name whose TXT record configures the connect screen's "get a node"
+/// banner, e.g. `v=1;on=1;url=https%3A%2F%2F...;title=...`.
+const String nodeBannerRecordName = '_banner.meshcoreopen.org';
+
+const String _dohEndpoint = 'https://cloudflare-dns.com/dns-query';
+const String _cacheRecordKey = 'node_banner_txt';
+const String _cacheExpiryKey = 'node_banner_expires_ms';
+const int _dnsTypeTxt = 16;
+
+/// Banner content from the TXT record. Null text fields fall back to the
+/// app's localized strings.
+class NodeBannerConfig {
+ final Uri url;
+ final String? title;
+ final String? body;
+ final String? action;
+
+ const NodeBannerConfig({
+ required this.url,
+ this.title,
+ this.body,
+ this.action,
+ });
+
+ /// Parses `key=value` pairs separated by `;`. Values may be plain text;
+ /// percent-encoding is decoded when valid, so `%3B` can carry a `;`.
+ /// Returns null when the banner is switched off (`on=0`), the version is
+ /// unknown, or the link is missing or not https.
+ static NodeBannerConfig? parse(String record) {
+ final fields = {};
+ for (final pair in record.split(';')) {
+ final eq = pair.indexOf('=');
+ if (eq <= 0) continue;
+ final raw = pair.substring(eq + 1).trim();
+ String value;
+ try {
+ value = Uri.decodeComponent(raw);
+ } on ArgumentError {
+ value = raw;
+ }
+ fields[pair.substring(0, eq).trim().toLowerCase()] = value;
+ }
+ if (fields['v'] != '1' || fields['on'] != '1') return null;
+ final url = Uri.tryParse(fields['url'] ?? '');
+ if (url == null || url.scheme != 'https' || url.host.isEmpty) return null;
+ String? text(String key) {
+ final value = fields[key]?.trim();
+ return value == null || value.isEmpty ? null : value;
+ }
+
+ return NodeBannerConfig(
+ url: url,
+ title: text('title'),
+ body: text('body'),
+ action: text('cta'),
+ );
+ }
+}
+
+/// Looks up the banner's TXT record over DNS-over-HTTPS and caches it for
+/// the record's TTL. Any failure means no banner.
+class NodeBannerService {
+ final http.Client _client;
+ final DateTime Function() _now;
+
+ NodeBannerService({http.Client? client, DateTime Function()? now})
+ : _client = client ?? http.Client(),
+ _now = now ?? DateTime.now;
+
+ Future load() async {
+ try {
+ final prefs = PrefsManager.instance;
+ final expires = prefs.getInt(_cacheExpiryKey) ?? 0;
+ final cached = prefs.getString(_cacheRecordKey);
+ if (cached != null && _now().millisecondsSinceEpoch < expires) {
+ return NodeBannerConfig.parse(cached);
+ }
+
+ final response = await _client
+ .get(
+ Uri.parse(_dohEndpoint).replace(
+ queryParameters: {'name': nodeBannerRecordName, 'type': 'TXT'},
+ ),
+ headers: const {'accept': 'application/dns-json'},
+ )
+ .timeout(const Duration(seconds: 5));
+ if (response.statusCode != 200) return null;
+ final answer = txtFromDohJson(response.body);
+ if (answer == null) return null;
+
+ final ttl = answer.ttl.clamp(60, 6 * 3600);
+ await prefs.setString(_cacheRecordKey, answer.text);
+ await prefs.setInt(
+ _cacheExpiryKey,
+ _now().add(Duration(seconds: ttl)).millisecondsSinceEpoch,
+ );
+ return NodeBannerConfig.parse(answer.text);
+ } catch (e) {
+ debugPrint('Node banner lookup failed: $e');
+ return null;
+ }
+ }
+
+ /// The first TXT answer in a DoH JSON response, with its character-strings
+ /// joined, or null when the name has no TXT record.
+ @visibleForTesting
+ static ({String text, int ttl})? txtFromDohJson(String body) {
+ final json = jsonDecode(body) as Map;
+ if (json['Status'] != 0) return null;
+ for (final answer in (json['Answer'] as List? ?? const [])) {
+ final record = answer as Map;
+ if (record['type'] != _dnsTypeTxt) continue;
+ return (
+ text: _joinCharacterStrings(record['data'] as String),
+ ttl: (record['TTL'] as num?)?.toInt() ?? 300,
+ );
+ }
+ return null;
+ }
+
+ /// Joins the quoted character-strings of TXT presentation data
+ /// (`"a" "b"` -> `ab`), undoing `\"`, `\\` and `\DDD` escapes.
+ static String _joinCharacterStrings(String data) {
+ if (!data.contains('"')) return data;
+ final out = StringBuffer();
+ var inQuotes = false;
+ for (var i = 0; i < data.length; i++) {
+ final c = data[i];
+ if (c == '"') {
+ inQuotes = !inQuotes;
+ } else if (!inQuotes) {
+ continue;
+ } else if (c == r'\' && i + 1 < data.length) {
+ final digits = i + 3 < data.length ? data.substring(i + 1, i + 4) : '';
+ final code = int.tryParse(digits);
+ if (digits.length == 3 && code != null) {
+ out.writeCharCode(code);
+ i += 3;
+ } else {
+ out.write(data[++i]);
+ }
+ } else {
+ out.write(c);
+ }
+ }
+ return out.toString();
+ }
+}
diff --git a/lib/services/notification_service.dart b/lib/services/notification_service.dart
index 3e457138..2277f99b 100644
--- a/lib/services/notification_service.dart
+++ b/lib/services/notification_service.dart
@@ -8,6 +8,8 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
+import '../helpers/gif_helper.dart';
+import '../helpers/marker_message.dart';
import '../helpers/message_url_image_helper.dart';
import '../helpers/reaction_helper.dart';
import '../l10n/app_localizations.dart';
@@ -15,6 +17,7 @@ import '../models/app_settings.dart';
import '../storage/prefs_manager.dart';
import '../utils/platform_info.dart';
import 'notification_reply.dart';
+import 'received_image_store.dart' show ReceivedImageRef;
class NotificationService {
static final NotificationService _instance = NotificationService._internal();
@@ -284,15 +287,26 @@ class NotificationService {
await requestPermissions();
}
- /// Format special message types for human-readable notifications.
- static String formatNotificationText(String text) {
+ /// Summarizes structured payloads (reactions, images, GIFs, shared
+ /// locations) with the same parsers the chat bubbles use; other text is
+ /// returned unchanged.
+ static String formatNotificationText(String text, AppLocalizations l10n) {
final trimmed = text.trim();
final reaction = ReactionHelper.parseReaction(trimmed);
if (reaction != null) {
- return 'Reacted ${reaction.emoji}';
+ return l10n.notification_reacted(reaction.emoji);
}
- if (RegExp(r'^g:[A-Za-z0-9_-]+$').hasMatch(trimmed)) {
- return 'Sent a GIF';
+ if (ReceivedImageRef.parse(trimmed) != null) {
+ return l10n.notification_sentImage;
+ }
+ if (GifHelper.parseGif(trimmed) != null) {
+ return l10n.notification_sentGif;
+ }
+ final marker = parseMarkerText(trimmed);
+ if (marker != null) {
+ return marker.label.isEmpty
+ ? l10n.notification_sharedLocation
+ : l10n.notification_sharedLocationNamed(marker.label);
}
return text;
}
@@ -406,7 +420,7 @@ class NotificationService {
message,
urlImagesEnabled: urlImagesEnabled,
);
- final preview = formatNotificationText(message.trim());
+ final preview = formatNotificationText(message.trim(), _l10n);
final body = preview.isEmpty
? _l10n.notification_receivedNewMessage
: preview;
@@ -607,6 +621,54 @@ class NotificationService {
}
}
+ /// Posts a low-battery alert for the connected device.
+ ///
+ /// Uses a per-device, per-threshold notification id so each alert level
+ /// updates its own notification instead of stacking, and alerts for
+ /// different radios don't overwrite each other. Bypasses the rate-limit
+ /// queue, which only handles message and advert notifications.
+ Future showLowBatteryNotification({
+ required String deviceKey,
+ required String deviceName,
+ required int batteryPercent,
+ required int threshold,
+ }) async {
+ if (!await _ensureCanNotify()) return;
+
+ const androidDetails = AndroidNotificationDetails(
+ 'low_battery',
+ 'Low Battery',
+ channelDescription: 'Low battery alerts for the connected device',
+ importance: Importance.high,
+ priority: Priority.high,
+ icon: '@mipmap/ic_launcher',
+ );
+
+ const darwinDetails = DarwinNotificationDetails(
+ presentAlert: true,
+ presentBadge: false,
+ presentSound: true,
+ );
+
+ const notificationDetails = NotificationDetails(
+ android: androidDetails,
+ iOS: darwinDetails,
+ macOS: darwinDetails,
+ );
+
+ try {
+ await _notifications.show(
+ id: _lowBatteryNotificationId(deviceKey, threshold),
+ title: _l10n.notification_lowBatteryTitle,
+ body: _l10n.notification_lowBatteryBody(deviceName, batteryPercent),
+ notificationDetails: notificationDetails,
+ payload: 'low_battery',
+ );
+ } catch (e) {
+ debugPrint('Failed to show low battery notification: $e');
+ }
+ }
+
/// Returns a privacy-safe identifier for debug logging.
/// - advert: shows device name (body contains contactName)
/// - message: shows "from: sender" (avoids logging message content)
@@ -663,6 +725,26 @@ class NotificationService {
await _updateBadge(totalUnreadCount);
}
+ static int _lowBatteryNotificationId(String deviceKey, int threshold) =>
+ 'low_battery:$deviceKey:$threshold'.hashCode;
+
+ /// Cancel a device's low-battery notifications for the given thresholds.
+ Future clearLowBatteryNotifications(
+ String deviceKey,
+ Iterable thresholds,
+ ) async {
+ if (!await _ensureInitialized()) return;
+ for (final threshold in thresholds) {
+ try {
+ await _notifications.cancel(
+ id: _lowBatteryNotificationId(deviceKey, threshold),
+ );
+ } catch (e) {
+ debugPrint('Failed to clear low battery notification: $e');
+ }
+ }
+ }
+
/// Cancel advert notifications for the given contact public key hexes.
Future clearAdvertNotifications(List contactIds) async {
if (!await _ensureInitialized()) return;
diff --git a/lib/services/ui_view_state_service.dart b/lib/services/ui_view_state_service.dart
index 46ae0a3b..34e31921 100644
--- a/lib/services/ui_view_state_service.dart
+++ b/lib/services/ui_view_state_service.dart
@@ -2,6 +2,7 @@ import 'dart:async';
import 'package:flutter/foundation.dart';
+import '../models/map_path_trace_draft.dart';
import '../storage/prefs_manager.dart';
import '../utils/contact_search.dart';
@@ -33,6 +34,8 @@ class UiViewStateService extends ChangeNotifier {
ChannelSortOption _channelsSortOption = ChannelSortOption.manual;
MapSourceOption _mapSource = MapSourceOption.local;
+ final MapPathTraceDraft mapPathTrace = MapPathTraceDraft();
+
String get contactsSelectedGroupName => _contactsSelectedGroupName;
String get contactsSearchText => _contactsSearchText;
bool get contactsSearchExpanded => _contactsSearchExpanded;
diff --git a/lib/widgets/channel_notification_mode_sheet.dart b/lib/widgets/channel_notification_mode_sheet.dart
new file mode 100644
index 00000000..9239aff2
--- /dev/null
+++ b/lib/widgets/channel_notification_mode_sheet.dart
@@ -0,0 +1,65 @@
+import 'package:flutter/material.dart';
+import 'package:provider/provider.dart';
+
+import '../l10n/l10n.dart';
+import '../services/app_settings_service.dart'
+ show AppSettingsService, ChannelNotificationMode;
+import 'mesh_ui.dart';
+
+/// Localized label for a channel notification [mode].
+String channelNotificationModeLabel(
+ BuildContext context,
+ ChannelNotificationMode mode,
+) => switch (mode) {
+ ChannelNotificationMode.all => context.l10n.channels_notifyAll,
+ ChannelNotificationMode.mentionsOnly =>
+ context.l10n.channels_notifyMentionsOnly,
+ ChannelNotificationMode.muted => context.l10n.channels_notifyNone,
+};
+
+/// Icon for a channel notification [mode].
+IconData channelNotificationModeIcon(ChannelNotificationMode mode) =>
+ switch (mode) {
+ ChannelNotificationMode.all => Icons.notifications,
+ ChannelNotificationMode.mentionsOnly => Icons.notification_important,
+ ChannelNotificationMode.muted => Icons.notifications_off,
+ };
+
+/// Shows the per-channel notification mode picker (all / mentions only /
+/// muted) for the channel identified by [muteKey].
+void showChannelNotificationModeSheet(BuildContext context, String muteKey) {
+ final settingsService = context.read();
+ final currentMode = settingsService.getChannelNotificationMode(muteKey);
+
+ showMeshSheet(
+ context,
+ builder: (sheetContext) {
+ final scheme = Theme.of(sheetContext).colorScheme;
+ return SafeArea(
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ for (final mode in ChannelNotificationMode.values)
+ ListTile(
+ leading: Icon(
+ channelNotificationModeIcon(mode),
+ color: mode == currentMode
+ ? scheme.primary
+ : scheme.onSurfaceVariant,
+ ),
+ title: Text(channelNotificationModeLabel(sheetContext, mode)),
+ trailing: mode == currentMode ? const Icon(Icons.check) : null,
+ onTap: () async {
+ Navigator.pop(sheetContext);
+ await settingsService.setChannelNotificationMode(
+ muteKey,
+ mode,
+ );
+ },
+ ),
+ ],
+ ),
+ );
+ },
+ );
+}
diff --git a/lib/widgets/chat_composer.dart b/lib/widgets/chat_composer.dart
index 28cbf961..428381aa 100644
--- a/lib/widgets/chat_composer.dart
+++ b/lib/widgets/chat_composer.dart
@@ -9,6 +9,7 @@ import '../theme/mesh_theme.dart';
import 'byte_count_input.dart';
import 'gif_message.dart';
import 'gif_picker.dart';
+import 'mesh_ui.dart';
import 'message_translation_button.dart';
/// One entry of the composer's "+" menu.
@@ -27,9 +28,8 @@ class ChatComposerAction {
/// Opens the GIF picker and puts the chosen GIF into [controller].
void showChatGifPicker(BuildContext context, TextEditingController controller) {
- showModalBottomSheet(
- context: context,
- isScrollControlled: true,
+ showMeshSheet(
+ context,
builder: (context) => GifPicker(
onGifSelected: (gifId) {
controller.text = GifHelper.encodeGif(gifId);
diff --git a/lib/widgets/emoji_picker.dart b/lib/widgets/emoji_picker.dart
index ab5c4edd..a6ef87e1 100644
--- a/lib/widgets/emoji_picker.dart
+++ b/lib/widgets/emoji_picker.dart
@@ -210,12 +210,8 @@ class EmojiPicker extends StatelessWidget {
Widget build(BuildContext context) {
final l10n = context.l10n;
final emojiCategories = _emojiCategories(l10n);
- return Container(
+ return SizedBox(
height: MediaQuery.of(context).size.height * 0.5,
- decoration: BoxDecoration(
- color: Theme.of(context).colorScheme.surface,
- borderRadius: const BorderRadius.vertical(top: Radius.circular(20)),
- ),
child: Column(
children: [
Padding(
diff --git a/lib/widgets/get_node_banner.dart b/lib/widgets/get_node_banner.dart
index 5060ae72..2c5e9763 100644
--- a/lib/widgets/get_node_banner.dart
+++ b/lib/widgets/get_node_banner.dart
@@ -2,25 +2,42 @@ import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import '../l10n/l10n.dart';
+import '../services/node_banner_service.dart';
import '../theme/mesh_theme.dart';
-/// Affiliate link for the SenseCAP MeshTracker X1.
-const getNodeUrl =
- 'https://www.seeedstudio.com/sensecap-meshtracker-x1-meshtastic-gps-tracker-p-6935.html'
- '?sensecap_affiliate=JFWID0g&referring_service=link';
-
/// Bottom banner on the connect screen pointing new users at a node to buy.
-class GetNodeBanner extends StatelessWidget {
- const GetNodeBanner({super.key});
+/// Its link (and optionally its text) comes from the `_banner` DNS TXT
+/// record; it stays hidden until that loads, and when the lookup fails or the
+/// record turns it off.
+class GetNodeBanner extends StatefulWidget {
+ final Future Function()? loadConfig;
- void _open() =>
- launchUrl(Uri.parse(getNodeUrl), mode: LaunchMode.externalApplication);
+ const GetNodeBanner({super.key, this.loadConfig});
+
+ @override
+ State createState() => _GetNodeBannerState();
+}
+
+class _GetNodeBannerState extends State {
+ NodeBannerConfig? _config;
+
+ @override
+ void initState() {
+ super.initState();
+ (widget.loadConfig ?? NodeBannerService().load)().then((config) {
+ if (mounted && config != null) setState(() => _config = config);
+ });
+ }
@override
Widget build(BuildContext context) {
+ final config = _config;
+ if (config == null) return const SizedBox.shrink();
+
final l10n = context.l10n;
final scheme = Theme.of(context).colorScheme;
final textTheme = Theme.of(context).textTheme;
+ void open() => launchUrl(config.url, mode: LaunchMode.externalApplication);
return SafeArea(
top: false,
@@ -34,7 +51,7 @@ class GetNodeBanner extends StatelessWidget {
),
clipBehavior: Clip.antiAlias,
child: InkWell(
- onTap: _open,
+ onTap: open,
child: Padding(
padding: const EdgeInsets.fromLTRB(14, 12, 14, 10),
child: Column(
@@ -51,7 +68,7 @@ class GetNodeBanner extends StatelessWidget {
const SizedBox(width: 10),
Expanded(
child: Text(
- l10n.scanner_getNodeTitle,
+ config.title ?? l10n.scanner_getNodeTitle,
style: textTheme.titleMedium?.copyWith(
color: scheme.onPrimaryContainer,
fontWeight: FontWeight.w700,
@@ -62,7 +79,7 @@ class GetNodeBanner extends StatelessWidget {
),
const SizedBox(height: 6),
Text(
- l10n.scanner_getNodeBody,
+ config.body ?? l10n.scanner_getNodeBody,
style: textTheme.bodyMedium?.copyWith(
color: scheme.onPrimaryContainer,
height: 1.35,
@@ -72,9 +89,9 @@ class GetNodeBanner extends StatelessWidget {
SizedBox(
width: double.infinity,
child: FilledButton.icon(
- onPressed: _open,
+ onPressed: open,
icon: const Icon(Icons.shopping_cart_outlined, size: 22),
- label: Text(l10n.scanner_getNodeAction),
+ label: Text(config.action ?? l10n.scanner_getNodeAction),
),
),
const SizedBox(height: 6),
diff --git a/lib/widgets/gif_picker.dart b/lib/widgets/gif_picker.dart
index e86ead15..dcd53c78 100644
--- a/lib/widgets/gif_picker.dart
+++ b/lib/widgets/gif_picker.dart
@@ -117,7 +117,9 @@ class _GifPickerState extends State {
@override
Widget build(BuildContext context) {
return Container(
- height: MediaQuery.of(context).size.height * 0.7,
+ constraints: BoxConstraints(
+ maxHeight: MediaQuery.of(context).size.height * 0.7,
+ ),
padding: const EdgeInsets.all(16),
child: Column(
children: [
diff --git a/lib/widgets/node_info_sheet.dart b/lib/widgets/node_info_sheet.dart
new file mode 100644
index 00000000..1e3bb073
--- /dev/null
+++ b/lib/widgets/node_info_sheet.dart
@@ -0,0 +1,282 @@
+import 'package:flutter/material.dart';
+import 'package:latlong2/latlong.dart';
+import 'package:provider/provider.dart';
+
+import '../connector/meshcore_connector.dart';
+import '../connector/meshcore_protocol.dart';
+import '../l10n/app_localizations.dart';
+import '../l10n/contact_localization.dart';
+import '../l10n/l10n.dart';
+import '../models/contact.dart';
+import '../screens/chat_screen.dart';
+import '../screens/repeater_hub_screen.dart';
+import '../theme/mesh_theme.dart';
+import 'mesh_ui.dart';
+import 'repeater_login_dialog.dart';
+import 'room_login_dialog.dart';
+
+/// Map accent colour for a node type.
+Color mapNodeTypeColor(int type) {
+ switch (type) {
+ case advTypeChat:
+ return MapPalette.selected;
+ case advTypeRepeater:
+ return MapPalette.repeater;
+ case advTypeRoom:
+ return MapPalette.router;
+ case advTypeSensor:
+ return MapPalette.sensor;
+ default:
+ return MapPalette.offline;
+ }
+}
+
+/// Map icon for a node type.
+IconData mapNodeTypeIcon(int type) {
+ switch (type) {
+ case advTypeChat:
+ return Icons.person;
+ case advTypeRepeater:
+ return Icons.router;
+ case advTypeRoom:
+ return Icons.meeting_room;
+ case advTypeSensor:
+ return Icons.sensors;
+ default:
+ return Icons.device_unknown;
+ }
+}
+
+String formatNodeLastSeen(AppLocalizations l10n, DateTime lastSeen) {
+ final difference = DateTime.now().difference(lastSeen);
+ if (difference.inSeconds < 60) {
+ return l10n.time_justNow;
+ } else if (difference.inMinutes < 60) {
+ return l10n.time_minutesAgo(difference.inMinutes);
+ } else if (difference.inHours < 24) {
+ return l10n.time_hoursAgo(difference.inHours);
+ } else {
+ return l10n.time_daysAgo(difference.inDays);
+ }
+}
+
+/// Label above a selectable mono value, as used in node detail sheets.
+class NodeInfoRow extends StatelessWidget {
+ final String label;
+ final String value;
+
+ const NodeInfoRow({super.key, required this.label, required this.value});
+
+ @override
+ Widget build(BuildContext context) {
+ final scheme = Theme.of(context).colorScheme;
+ return Padding(
+ padding: const EdgeInsets.symmetric(vertical: 4.0),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ label,
+ style: TextStyle(
+ fontSize: 12,
+ color: scheme.onSurfaceVariant,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ const SizedBox(height: 2),
+ SelectableText(
+ value,
+ style: MeshTheme.mono(fontSize: 13, color: scheme.onSurface),
+ ),
+ ],
+ ),
+ );
+ }
+}
+
+/// Repeater login, then the repeater hub on success.
+void showRepeaterLoginDialog(BuildContext context, Contact repeater) {
+ showDialog(
+ context: context,
+ builder: (context) => RepeaterLoginDialog(
+ repeater: repeater,
+ onLogin: (password, isAdmin) {
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (context) => RepeaterHubScreen(
+ repeater: repeater,
+ password: password,
+ isAdmin: isAdmin,
+ ),
+ ),
+ );
+ },
+ ),
+ );
+}
+
+/// Room login, then the room chat (or the hub when [manage] is set).
+void showRoomLoginDialog(
+ BuildContext context,
+ Contact room, {
+ bool manage = false,
+}) {
+ showDialog(
+ context: context,
+ builder: (context) => RoomLoginDialog(
+ room: room,
+ onLogin: (password, isAdmin) {
+ final connector = context.read();
+ final unread = connector.getUnreadCountForContactKey(room.publicKeyHex);
+ connector.markContactRead(room.publicKeyHex);
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (context) => manage
+ ? RepeaterHubScreen(
+ repeater: room,
+ password: password,
+ isAdmin: isAdmin,
+ )
+ : ChatScreen(contact: room, initialUnreadCount: unread),
+ ),
+ );
+ },
+ ),
+ );
+}
+
+/// Node details sheet (path, location, last seen, key) with the actions for
+/// its type: open chat, manage repeater, or join/manage room.
+void showNodeInfoSheet(
+ BuildContext context,
+ Contact contact, {
+ LatLng? guessedPosition,
+}) {
+ final connector = context.read();
+ showMeshSheet(
+ context,
+ builder: (sheetContext) {
+ final l10n = context.l10n;
+ void importIfNeeded() {
+ if (!contact.isActive) {
+ connector.importDiscoveredContact(contact);
+ }
+ }
+
+ final actions = [];
+ if (contact.type == advTypeChat) {
+ actions.add(
+ FilledButton(
+ onPressed: () {
+ importIfNeeded();
+ final unread = connector.getUnreadCountForContactKey(
+ contact.publicKeyHex,
+ );
+ Navigator.pop(sheetContext);
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (context) =>
+ ChatScreen(contact: contact, initialUnreadCount: unread),
+ ),
+ );
+ },
+ child: Text(l10n.contacts_openChat),
+ ),
+ );
+ }
+ if (contact.type == advTypeRepeater) {
+ actions.add(
+ FilledButton(
+ onPressed: () {
+ importIfNeeded();
+ Navigator.pop(sheetContext);
+ showRepeaterLoginDialog(context, contact);
+ },
+ child: Text(l10n.map_manageRepeater),
+ ),
+ );
+ }
+ if (contact.type == advTypeRoom) {
+ actions.add(
+ FilledButton(
+ onPressed: () {
+ importIfNeeded();
+ Navigator.pop(sheetContext);
+ showRoomLoginDialog(context, contact);
+ },
+ child: Text(l10n.map_joinRoom),
+ ),
+ );
+ actions.add(
+ FilledButton(
+ onPressed: () {
+ importIfNeeded();
+ Navigator.pop(sheetContext);
+ showRoomLoginDialog(context, contact, manage: true);
+ },
+ child: Text(l10n.map_manageServer),
+ ),
+ );
+ }
+ return SafeArea(
+ child: SingleChildScrollView(
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ BottomSheetHeader(
+ title: contact.name,
+ subtitle: contact.typeLabel(l10n),
+ trailing: Icon(
+ mapNodeTypeIcon(contact.type),
+ color: mapNodeTypeColor(contact.type),
+ size: 20,
+ ),
+ ),
+ Padding(
+ padding: const EdgeInsets.fromLTRB(16, 0, 16, 16),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ NodeInfoRow(
+ label: l10n.map_path,
+ value: contact.pathLabel(
+ l10n,
+ pathHashByteWidth: connector.pathHashByteWidth,
+ ),
+ ),
+ if (contact.hasLocation)
+ NodeInfoRow(
+ label: l10n.map_location,
+ value:
+ '${contact.latitude!.toStringAsFixed(6)}, ${contact.longitude!.toStringAsFixed(6)}',
+ )
+ else if (guessedPosition != null)
+ NodeInfoRow(
+ label: l10n.map_estLocation,
+ value:
+ '~${guessedPosition.latitude.toStringAsFixed(6)}, ${guessedPosition.longitude.toStringAsFixed(6)}',
+ ),
+ NodeInfoRow(
+ label: l10n.map_lastSeen,
+ value: formatNodeLastSeen(l10n, contact.lastSeen),
+ ),
+ NodeInfoRow(
+ label: l10n.map_publicKey,
+ value: contact.publicKeyHex,
+ ),
+ const SizedBox(height: 16),
+ ...actions,
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ },
+ );
+}
diff --git a/lib/widgets/radio_settings_dialog.dart b/lib/widgets/radio_settings_dialog.dart
index 39a3a950..aa00e3d9 100644
--- a/lib/widgets/radio_settings_dialog.dart
+++ b/lib/widgets/radio_settings_dialog.dart
@@ -30,9 +30,9 @@ bool _isAllowedRepeatFreqKHz(MeshCoreConnector connector, int freqKHz) {
/// Lowest TX power companion firmware accepts (CMD_SET_RADIO_TX_POWER).
const int _minTxPowerDbm = -9;
-/// Radio parameter editor (preset, frequency, bandwidth, SF, CR, TX power and
-/// off-grid client repeat). Stays open when the radio rejects or fails to
-/// apply the settings so the user's edits are not lost.
+/// Radio parameter editor (preset, frequency, bandwidth, SF, CR, TX power,
+/// path-hash size and off-grid client repeat). Stays open when the radio
+/// rejects or fails to apply the settings so the user's edits are not lost.
class RadioSettingsDialog extends StatefulWidget {
final MeshCoreConnector connector;
@@ -49,11 +49,14 @@ class _RadioSettingsDialogState extends State {
LoRaCodingRate _codingRate = LoRaCodingRate.cr4_5;
final _txPowerController = TextEditingController(text: '20');
bool _clientRepeat = false;
+ int _pathHashByteWidth = 1;
int? _selectedPresetIndex;
_RadioSettingsSnapshot? _lastNonRepeatSnapshot;
String? _frequencyError;
String? _txPowerError;
+ bool get _supportsPathHashMode => widget.connector.supportsPathHashMode;
+
AppDebugLogService get _appLog =>
Provider.of(context, listen: false);
@@ -106,6 +109,7 @@ class _RadioSettingsDialogState extends State {
_txPowerController.text = widget.connector.currentTxPower.toString();
}
+ _pathHashByteWidth = widget.connector.pathHashByteWidth;
_clientRepeat = widget.connector.clientRepeat ?? false;
_selectedPresetIndex = _findMatchingPresetIndex();
if (_clientRepeat) {
@@ -439,11 +443,34 @@ class _RadioSettingsDialogState extends State {
return;
}
await widget.connector.sendFrame(buildSetRadioTxPowerFrame(txPower));
+ // setPathHashMode updates the local width optimistically; the refreshed
+ // DEVICE_INFO below overwrites it with what the radio actually stored.
+ final requestedPathHashWidth =
+ _supportsPathHashMode &&
+ _pathHashByteWidth != widget.connector.pathHashByteWidth
+ ? _pathHashByteWidth
+ : null;
+ if (requestedPathHashWidth != null) {
+ await widget.connector.setPathHashMode(requestedPathHashWidth - 1);
+ }
final selfInfo = widget.connector.receivedFrames
.firstWhere((f) => f.isNotEmpty && f[0] == respCodeSelfInfo)
.timeout(const Duration(seconds: 5));
+ final deviceInfo = requestedPathHashWidth == null
+ ? null
+ : widget.connector.receivedFrames
+ .firstWhere((f) => f.isNotEmpty && f[0] == respCodeDeviceInfo)
+ .timeout(const Duration(seconds: 5));
await widget.connector.refreshDeviceInfo();
- final applied = await selfInfo.then(
+ // Without a refreshed DEVICE_INFO the path hash change is unconfirmed
+ // (this also covers setPathHashMode skipping a disconnected radio).
+ final pathHashApplied =
+ deviceInfo == null ||
+ await deviceInfo.then(
+ (_) => widget.connector.pathHashByteWidth == requestedPathHashWidth,
+ onError: (_) => false,
+ );
+ final radioApplied = await selfInfo.then(
(_) => _deviceMatches(
freqHz: freqHz,
bwHz: bwHz,
@@ -454,7 +481,7 @@ class _RadioSettingsDialogState extends State {
),
onError: (_) => true,
);
- if (!applied) {
+ if (!radioApplied) {
_logRadioSettingsState('Radio did not apply requested settings');
if (!mounted) return;
showDismissibleSnackBar(
@@ -463,6 +490,17 @@ class _RadioSettingsDialogState extends State {
);
return;
}
+ if (!pathHashApplied) {
+ // Radio params and TX power were already applied; only the path
+ // hash size is outstanding, so say that rather than a generic error.
+ _logRadioSettingsState('Radio did not apply requested path hash size');
+ if (!mounted) return;
+ showDismissibleSnackBar(
+ context,
+ content: Text(l10n.settings_pathHashModeNotApplied),
+ );
+ return;
+ }
final rememberedSnapshot = _clientRepeat
? _lastNonRepeatSnapshot
: _currentSnapshot();
@@ -539,6 +577,7 @@ class _RadioSettingsDialogState extends State {
'sf=${_spreadingFactor.label} '
'cr=${_codingRate.label} '
'tx=${_txPowerController.text}dBm '
+ 'pathHash=${_pathHashByteWidth}B '
'repeat=$_clientRepeat '
'preset=${_presetLabel(_selectedPresetIndex)} '
'lastNonRepeat=${_formatSnapshot(_lastNonRepeatSnapshot)}',
@@ -673,6 +712,41 @@ class _RadioSettingsDialogState extends State {
},
),
const SizedBox(height: 16),
+ if (_supportsPathHashMode) ...[
+ // Values are path hash modes (0-2, byte width - 1), matching
+ // the selectors in settings_screen and repeater_settings_screen.
+ DropdownButtonFormField(
+ initialValue: (_pathHashByteWidth - 1).clamp(0, 2).toInt(),
+ decoration: InputDecoration(
+ labelText: l10n.repeater_pathHashMode,
+ helperText: l10n.settings_pathHashModeHelper,
+ helperMaxLines: 5,
+ border: const OutlineInputBorder(),
+ ),
+ items: [
+ DropdownMenuItem(
+ value: 0,
+ child: Text(l10n.repeater_pathHashModeOption0),
+ ),
+ DropdownMenuItem(
+ value: 1,
+ child: Text(l10n.repeater_pathHashModeOption1),
+ ),
+ DropdownMenuItem(
+ value: 2,
+ child: Text(l10n.repeater_pathHashModeOption2),
+ ),
+ ],
+ onChanged: (value) {
+ if (value == null) return;
+ setState(() => _pathHashByteWidth = value + 1);
+ _logRadioSettingsState(
+ 'Manual settings edit: path hash size',
+ );
+ },
+ ),
+ const SizedBox(height: 16),
+ ],
TextField(
controller: _txPowerController,
onChanged: (_) => _handleManualSettingsChanged('tx power'),
diff --git a/lib/widgets/set_my_location_dialog.dart b/lib/widgets/set_my_location_dialog.dart
new file mode 100644
index 00000000..5c611ff0
--- /dev/null
+++ b/lib/widgets/set_my_location_dialog.dart
@@ -0,0 +1,79 @@
+import 'package:flutter/material.dart';
+import 'package:latlong2/latlong.dart';
+
+import '../connector/meshcore_connector.dart';
+import '../helpers/snack_bar_builder.dart';
+import '../l10n/l10n.dart';
+
+/// Asks the user to confirm, then sets the radio's advertised location to
+/// [position] and waits for SELF_INFO to report it. Shows a success or
+/// failure snackbar and returns whether the radio confirmed the new location.
+Future confirmAndSetMyLocation(
+ BuildContext context,
+ MeshCoreConnector connector,
+ LatLng position,
+) async {
+ if (!connector.isConnected) return false;
+ final l10n = context.l10n;
+ final latText = position.latitude.toStringAsFixed(6);
+ final lonText = position.longitude.toStringAsFixed(6);
+ final confirmed = await showDialog(
+ context: context,
+ builder: (dialogContext) => AlertDialog(
+ title: Text(l10n.map_setLocationConfirmTitle),
+ content: Text(l10n.map_setLocationConfirmBody(latText, lonText)),
+ actions: [
+ TextButton(
+ onPressed: () => Navigator.pop(dialogContext, false),
+ child: Text(l10n.common_cancel),
+ ),
+ FilledButton(
+ onPressed: () => Navigator.pop(dialogContext, true),
+ child: Text(l10n.map_setLocationAction),
+ ),
+ ],
+ ),
+ );
+ if (confirmed != true || !context.mounted || !connector.isConnected) {
+ return false;
+ }
+
+ // The firmware stores coordinates as int32 micro-degrees.
+ bool matches() {
+ final lat = connector.selfLatitude;
+ final lon = connector.selfLongitude;
+ return lat != null &&
+ lon != null &&
+ (lat - position.latitude).abs() < 2e-6 &&
+ (lon - position.longitude).abs() < 2e-6;
+ }
+
+ var ok = false;
+ try {
+ await connector.setNodeLocation(
+ lat: position.latitude,
+ lon: position.longitude,
+ );
+ await connector.refreshDeviceInfo();
+ // Self info arrives asynchronously after the query; wait for it.
+ final deadline = DateTime.now().add(const Duration(seconds: 6));
+ while (context.mounted && connector.isConnected) {
+ if (matches()) {
+ ok = true;
+ break;
+ }
+ if (DateTime.now().isAfter(deadline)) break;
+ await Future.delayed(const Duration(milliseconds: 250));
+ }
+ } catch (e) {
+ debugPrint('Set node location failed: $e');
+ }
+ if (!context.mounted) return ok;
+ showDismissibleSnackBar(
+ context,
+ content: Text(
+ ok ? l10n.map_locationSetSuccess : l10n.map_locationSetFailed,
+ ),
+ );
+ return ok;
+}
diff --git a/lib/widgets/snr_indicator.dart b/lib/widgets/snr_indicator.dart
index d07e2bba..16cd36f5 100644
--- a/lib/widgets/snr_indicator.dart
+++ b/lib/widgets/snr_indicator.dart
@@ -9,6 +9,7 @@ import '../l10n/l10n.dart';
import '../models/contact.dart';
import '../theme/mesh_theme.dart';
import 'mesh_ui.dart';
+import 'node_info_sheet.dart';
import 'signal_ui.dart';
Contact? _getRepeaterPrefixMatchNearLocation(
@@ -276,53 +277,77 @@ class _SNRIndicatorState extends State {
);
final colorScheme = Theme.of(context).colorScheme;
- return Padding(
- padding: const EdgeInsets.symmetric(
- horizontal: 16,
- vertical: 10,
- ),
- child: Row(
- children: [
- AvatarCircle(
- name: name ?? prefixLabel,
- size: 36,
- color: colorScheme.onSurfaceVariant,
- ),
- const SizedBox(width: 12),
- Expanded(
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
+ return Semantics(
+ button: true,
+ hint: l10n.map_details,
+ child: InkWell(
+ onTap: () => contact != null
+ ? showNodeInfoSheet(context, contact)
+ : _showUnknownRepeaterSheet(
+ context,
+ repeater,
+ prefixLabel,
+ ),
+ child: ConstrainedBox(
+ constraints: const BoxConstraints(minHeight: 56),
+ child: Padding(
+ padding: const EdgeInsets.symmetric(
+ horizontal: 16,
+ vertical: 10,
+ ),
+ child: Row(
children: [
- Text(
- name ?? prefixLabel,
- style: Theme.of(context)
- .textTheme
- .bodyMedium
- ?.copyWith(
- color: colorScheme.onSurface,
- ),
+ AvatarCircle(
+ name: name ?? prefixLabel,
+ size: 36,
+ color: colorScheme.onSurfaceVariant,
),
- Row(
- children: [
- Icon(
- Icons.circle,
- size: 8,
- color: snrColor,
- ),
- const SizedBox(width: 6),
- Text(
- '${repeater.snr.toStringAsFixed(1)} dB • ${_formatLastUpdated(repeater.lastUpdated)}',
- style: MeshTheme.mono(
- fontSize: 12,
- color: colorScheme.onSurfaceVariant,
+ const SizedBox(width: 12),
+ Expanded(
+ child: Column(
+ crossAxisAlignment:
+ CrossAxisAlignment.start,
+ children: [
+ Text(
+ name ?? prefixLabel,
+ style: Theme.of(context)
+ .textTheme
+ .bodyMedium
+ ?.copyWith(
+ color: colorScheme.onSurface,
+ ),
),
- ),
- ],
+ Row(
+ children: [
+ Icon(
+ Icons.circle,
+ size: 8,
+ color: snrColor,
+ ),
+ const SizedBox(width: 6),
+ Text(
+ '${repeater.snr.toStringAsFixed(1)} dB • ${_formatLastUpdated(repeater.lastUpdated)}',
+ style: MeshTheme.mono(
+ fontSize: 12,
+ color: colorScheme
+ .onSurfaceVariant,
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ const SizedBox(width: 8),
+ Icon(
+ Icons.chevron_right,
+ size: 24,
+ color: colorScheme.onSurfaceVariant,
),
],
),
),
- ],
+ ),
),
);
},
@@ -341,4 +366,65 @@ class _SNRIndicatorState extends State {
),
);
}
+
+ void _showUnknownRepeaterSheet(
+ BuildContext context,
+ DirectRepeater repeater,
+ String prefixLabel,
+ ) {
+ showMeshSheet(
+ context,
+ builder: (sheetContext) {
+ final l10n = sheetContext.l10n;
+ final scheme = Theme.of(sheetContext).colorScheme;
+ return SafeArea(
+ child: SingleChildScrollView(
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ BottomSheetHeader(
+ title: prefixLabel,
+ subtitle: l10n.snrIndicator_unknownRepeater,
+ trailing: Icon(
+ mapNodeTypeIcon(advTypeRepeater),
+ color: mapNodeTypeColor(advTypeRepeater),
+ size: 20,
+ ),
+ ),
+ Padding(
+ padding: const EdgeInsets.fromLTRB(16, 0, 16, 16),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ NodeInfoRow(
+ label: l10n.map_publicKeyPrefix,
+ value: repeater.pubkeyPrefixHex,
+ ),
+ NodeInfoRow(
+ label: l10n.repeater_lastSnr,
+ value: '${repeater.snr.toStringAsFixed(1)} dB',
+ ),
+ NodeInfoRow(
+ label: l10n.map_lastSeen,
+ value: formatNodeLastSeen(l10n, repeater.lastUpdated),
+ ),
+ const SizedBox(height: 12),
+ Text(
+ l10n.snrIndicator_unknownRepeaterHint,
+ style: TextStyle(
+ fontSize: 15,
+ color: scheme.onSurfaceVariant,
+ ),
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ },
+ );
+ }
}
diff --git a/test/connector/mention_detection_test.dart b/test/connector/mention_detection_test.dart
new file mode 100644
index 00000000..91e84e54
--- /dev/null
+++ b/test/connector/mention_detection_test.dart
@@ -0,0 +1,33 @@
+import 'package:flutter_test/flutter_test.dart';
+import 'package:meshcore_open/connector/meshcore_connector.dart';
+
+void main() {
+ bool mentions(String text, String? name) =>
+ MeshCoreConnector.textMentionsName(text, name);
+
+ test('matches bracketed and plain mentions case-insensitively', () {
+ expect(mentions('@[Bob] hello', 'Bob'), isTrue);
+ expect(mentions('hey @[bob]', 'Bob'), isTrue);
+ expect(mentions('hey @bob, look', 'Bob'), isTrue);
+ expect(mentions('@BOB', 'Bob'), isTrue);
+ expect(mentions('ping @Иван!', 'иван'), isTrue);
+ });
+
+ test('requires a word boundary for plain mentions', () {
+ expect(mentions('hey @bobby', 'Bob'), isFalse);
+ expect(mentions('mail x@bob.com', 'Bob'), isFalse);
+ expect(mentions('hey bob', 'Bob'), isFalse);
+ });
+
+ test('names with spaces or regex characters must match in full', () {
+ expect(mentions('hi @Bob Smith', 'Bob Smith'), isTrue);
+ expect(mentions('hi @Bob', 'Bob Smith'), isFalse);
+ expect(mentions('@[Node (1)] ok', 'Node (1)'), isTrue);
+ expect(mentions('@[Node 1] ok', 'Node (1)'), isFalse);
+ });
+
+ test('no self name never matches', () {
+ expect(mentions('@[Bob] hi', null), isFalse);
+ expect(mentions('@ hi', ''), isFalse);
+ });
+}
diff --git a/test/connector/pending_command_replies_test.dart b/test/connector/pending_command_replies_test.dart
index c1a196d5..b9b116c9 100644
--- a/test/connector/pending_command_replies_test.dart
+++ b/test/connector/pending_command_replies_test.dart
@@ -65,7 +65,12 @@ void main() {
waitForReply: true,
);
queue.takeErr(6);
- await expectLater(pending!.completer!.future, throwsException);
+ await expectLater(
+ pending!.completer!.future,
+ throwsA(
+ isA().having((e) => e.errCode, 'errCode', 6),
+ ),
+ );
});
group('timed-out entries', () {
diff --git a/test/connector/remove_contact_test.dart b/test/connector/remove_contact_test.dart
new file mode 100644
index 00000000..9abb7eaf
--- /dev/null
+++ b/test/connector/remove_contact_test.dart
@@ -0,0 +1,106 @@
+import 'dart:typed_data';
+
+import 'package:flutter_test/flutter_test.dart';
+import 'package:meshcore_open/connector/meshcore_connector.dart';
+import 'package:meshcore_open/connector/meshcore_protocol.dart';
+import 'package:meshcore_open/review_mode/review_radio.dart';
+import 'package:meshcore_open/services/message_retry_service.dart';
+import 'package:meshcore_open/services/path_history_service.dart';
+import 'package:meshcore_open/services/storage_service.dart';
+import 'package:meshcore_open/storage/contact_store.dart';
+import 'package:meshcore_open/storage/prefs_manager.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+
+Future _waitFor(bool Function() condition, {int seconds = 8}) async {
+ final end = DateTime.now().add(Duration(seconds: seconds));
+ while (!condition()) {
+ if (DateTime.now().isAfter(end)) fail('Timed out waiting for condition');
+ await Future.delayed(const Duration(milliseconds: 25));
+ }
+}
+
+/// Review radio that records every frame the app sends.
+class _RecordingReviewRadio extends ReviewRadio {
+ final List sent = [];
+
+ _RecordingReviewRadio()
+ : super(scheduledMessageInterval: const Duration(hours: 1));
+
+ @override
+ void handle(Uint8List frame) {
+ sent.add(frame);
+ super.handle(frame);
+ }
+}
+
+void main() {
+ TestWidgetsFlutterBinding.ensureInitialized();
+
+ setUp(() async {
+ SharedPreferences.setMockInitialValues({});
+ PrefsManager.reset();
+ await PrefsManager.initialize();
+ });
+
+ test('removed contact stays gone from the radio, list and store', () async {
+ final connector = MeshCoreConnector();
+ addTearDown(connector.dispose);
+ final retryService = MessageRetryService();
+ addTearDown(retryService.dispose);
+ connector.initialize(
+ retryService: retryService,
+ pathHistoryService: PathHistoryService(StorageService()),
+ );
+ final radio = _RecordingReviewRadio();
+ connector.reviewRadioFactoryForTest = () => radio;
+
+ await connector.connectReview();
+ await _waitFor(
+ () => connector.hasLoadedContacts && connector.contacts.length >= 6,
+ );
+ final contact = connector.contacts.firstWhere((c) => c.name == 'Maya');
+
+ await connector.removeContact(contact);
+
+ bool listed() =>
+ connector.contacts.any((c) => c.publicKeyHex == contact.publicKeyHex);
+ expect(listed(), isFalse);
+ expect(
+ connector.discoveredContacts
+ .firstWhere((c) => c.publicKeyHex == contact.publicKeyHex)
+ .isActive,
+ isFalse,
+ );
+
+ // A full resync from the radio must not bring it back.
+ await connector.getContacts();
+ await _waitFor(() => connector.hasLoadedContacts);
+ expect(connector.contacts, isNotEmpty);
+ expect(listed(), isFalse);
+
+ final store = ContactStore()..setPublicKeyHex = connector.selfPublicKeyHex;
+ final saved = await store.loadContacts();
+ expect(saved.any((c) => c.publicKeyHex == contact.publicKeyHex), isFalse);
+
+ // An open chat/repeater screen still syncs the path before each send, and
+ // the favourite toggle writes flags. On firmware CMD_ADD_UPDATE_CONTACT
+ // adds unknown keys, so neither may be sent for the removed contact.
+ radio.sent.clear();
+ await connector.setContactPath(contact, Uint8List.fromList([0x42]), 1);
+ await connector.preparePathForContactSend(contact);
+ await connector.setContactFlags(contact, isFavorite: true);
+ expect(radio.sent.where((f) => f.first == cmdAddUpdateContact), isEmpty);
+
+ await connector.disconnect(manual: true);
+ });
+
+ test('auto-add config reports which contact types come back', () {
+ final connector = MeshCoreConnector();
+ addTearDown(connector.dispose);
+ connector.handleFrameForTest([respCodeAutoAddConfig, autoAddRepeaterFlag]);
+
+ expect(connector.autoAddsContactType(advTypeRepeater), isTrue);
+ expect(connector.autoAddsContactType(advTypeChat), isFalse);
+ expect(connector.autoAddsContactType(advTypeRoom), isFalse);
+ });
+}
diff --git a/test/models/channel_notification_modes_json_test.dart b/test/models/channel_notification_modes_json_test.dart
new file mode 100644
index 00000000..abd2bbef
--- /dev/null
+++ b/test/models/channel_notification_modes_json_test.dart
@@ -0,0 +1,37 @@
+import 'package:flutter_test/flutter_test.dart';
+import 'package:meshcore_open/models/app_settings.dart';
+
+void main() {
+ test('channel notification modes round-trip by name', () {
+ final settings = AppSettings(
+ channelNotificationModes: {
+ 'a': ChannelNotificationMode.mentionsOnly,
+ 'b': ChannelNotificationMode.muted,
+ },
+ );
+ final json = settings.toJson();
+ expect(json['channel_notification_modes'], {
+ 'a': 'mentionsOnly',
+ 'b': 'muted',
+ });
+ expect(json['muted_channels'], ['b']);
+ expect(
+ AppSettings.fromJson(json).channelNotificationModes,
+ settings.channelNotificationModes,
+ );
+ });
+
+ test('invalid channel notification mode entries are skipped', () {
+ final settings = AppSettings.fromJson({
+ 'channel_notification_modes': {
+ 'ok': 'muted',
+ 'unknown': 'loud',
+ 'int': 2,
+ 'null': null,
+ },
+ });
+ expect(settings.channelNotificationModes, {
+ 'ok': ChannelNotificationMode.muted,
+ });
+ });
+}
diff --git a/test/models/contact_key_prefix_test.dart b/test/models/contact_key_prefix_test.dart
new file mode 100644
index 00000000..6698398c
--- /dev/null
+++ b/test/models/contact_key_prefix_test.dart
@@ -0,0 +1,33 @@
+import 'dart:typed_data';
+
+import 'package:flutter_test/flutter_test.dart';
+import 'package:meshcore_open/connector/meshcore_protocol.dart';
+import 'package:meshcore_open/models/contact.dart';
+
+Contact _contact(List key) => Contact(
+ publicKey: Uint8List.fromList(key),
+ name: 'Node',
+ type: advTypeChat,
+ pathLength: -1,
+ path: Uint8List(0),
+ lastSeen: DateTime.fromMillisecondsSinceEpoch(0),
+);
+
+void main() {
+ final contact = _contact([0xA3, 0x0F, 0xB2, 0x44]);
+
+ test('formats the first pathHashByteWidth bytes as uppercase hex', () {
+ expect(contact.publicKeyPrefixHex(1), 'A3');
+ expect(contact.publicKeyPrefixHex(2), 'A30F');
+ expect(contact.publicKeyPrefixHex(3), 'A30FB2');
+ });
+
+ test('clamps width to the supported 1-3 range', () {
+ expect(contact.publicKeyPrefixHex(0), 'A3');
+ expect(contact.publicKeyPrefixHex(4), 'A30FB2');
+ });
+
+ test('handles keys shorter than the width', () {
+ expect(_contact([0x01]).publicKeyPrefixHex(3), '01');
+ });
+}
diff --git a/test/models/map_path_trace_draft_test.dart b/test/models/map_path_trace_draft_test.dart
new file mode 100644
index 00000000..d0c39e1f
--- /dev/null
+++ b/test/models/map_path_trace_draft_test.dart
@@ -0,0 +1,46 @@
+import 'dart:typed_data';
+
+import 'package:flutter_test/flutter_test.dart';
+import 'package:latlong2/latlong.dart';
+import 'package:meshcore_open/models/map_path_trace_draft.dart';
+import 'package:meshcore_open/services/ui_view_state_service.dart';
+
+void main() {
+ test('draft survives on the shared view state service', () {
+ final service = UiViewStateService();
+ final draft = service.mapPathTrace
+ ..active = true
+ ..returnPath = false;
+ draft.pathBytes.addAll([0xAB, 0xCD]);
+ draft.points.add(const LatLng(1, 2));
+
+ expect(identical(service.mapPathTrace, draft), isTrue);
+ expect(service.mapPathTrace.hasHops, isTrue);
+ expect(service.mapPathTrace.returnPath, isFalse);
+ });
+
+ test('clear drops hops and the last result but keeps the mode', () {
+ final draft = MapPathTraceDraft()
+ ..returnPath = false
+ ..lastResultFrame = Uint8List.fromList([1, 2, 3]);
+ draft.pathBytes.add(0xAB);
+ draft.hopWidths.add(1);
+ draft.points.add(const LatLng(1, 2));
+
+ draft.clear();
+
+ expect(draft.hasHops, isFalse);
+ expect(draft.hopWidths, isEmpty);
+ expect(draft.points, isEmpty);
+ expect(draft.lastResultFrame, isNull);
+ expect(draft.returnPath, isFalse);
+ });
+
+ test('belongsTo matches only the radio it was built on', () {
+ final draft = MapPathTraceDraft();
+ expect(draft.belongsTo(Uint8List.fromList([1, 2])), isTrue);
+ draft.radioKey = Uint8List.fromList([1, 2]);
+ expect(draft.belongsTo(Uint8List.fromList([1, 2])), isTrue);
+ expect(draft.belongsTo(Uint8List.fromList([3, 4])), isFalse);
+ });
+}
diff --git a/test/review_mode/review_mode_settings_revert_test.dart b/test/review_mode/review_mode_settings_revert_test.dart
index fcd6ce3c..493163dd 100644
--- a/test/review_mode/review_mode_settings_revert_test.dart
+++ b/test/review_mode/review_mode_settings_revert_test.dart
@@ -24,7 +24,10 @@ void main() {
test('channel mutes made in review mode are undone on exit', () async {
final settings = AppSettingsService();
await settings.loadSettings();
- await settings.muteChannel('Hiking Group');
+ await settings.setChannelNotificationMode(
+ 'Hiking Group',
+ ChannelNotificationMode.muted,
+ );
final connector = MeshCoreConnector();
addTearDown(connector.dispose);
final retryService = MessageRetryService();
@@ -39,23 +42,41 @@ void main() {
await connector.connectReview();
// Mutes are keyed by channel name, so these would leak into real radios.
- await settings.muteChannel('Public');
- await settings.unmuteChannel('Hiking Group');
+ await settings.setChannelNotificationMode(
+ 'Public',
+ ChannelNotificationMode.muted,
+ );
+ await settings.setChannelNotificationMode(
+ 'Hiking Group',
+ ChannelNotificationMode.all,
+ );
// Other app preferences are the user's to change, even while reviewing.
await PrefsManager.instance.setString('unrelated_key', 'changed');
await connector.disconnect(manual: true);
- expect(settings.isChannelMuted('Public'), isFalse);
- expect(settings.isChannelMuted('Hiking Group'), isTrue);
+ expect(
+ settings.getChannelNotificationMode('Public'),
+ ChannelNotificationMode.all,
+ );
+ expect(
+ settings.getChannelNotificationMode('Hiking Group'),
+ ChannelNotificationMode.muted,
+ );
expect(PrefsManager.instance.getString('unrelated_key'), 'changed');
// A fresh launch has nothing left to undo.
final relaunched = AppSettingsService();
await relaunched.loadSettings();
await endReviewModeSession(relaunched);
- expect(relaunched.isChannelMuted('Public'), isFalse);
- expect(relaunched.isChannelMuted('Hiking Group'), isTrue);
+ expect(
+ relaunched.getChannelNotificationMode('Public'),
+ ChannelNotificationMode.all,
+ );
+ expect(
+ relaunched.getChannelNotificationMode('Hiking Group'),
+ ChannelNotificationMode.muted,
+ );
});
test(
@@ -63,11 +84,20 @@ void main() {
() async {
final settings = AppSettingsService();
await settings.loadSettings();
- await settings.muteChannel('Hiking Group');
+ await settings.setChannelNotificationMode(
+ 'Hiking Group',
+ ChannelNotificationMode.muted,
+ );
await beginReviewModeSession(settings);
- await settings.muteChannel('Public');
- await settings.unmuteChannel('Hiking Group');
+ await settings.setChannelNotificationMode(
+ 'Public',
+ ChannelNotificationMode.muted,
+ );
+ await settings.setChannelNotificationMode(
+ 'Hiking Group',
+ ChannelNotificationMode.all,
+ );
await PrefsManager.instance.setString(
'contacts${ReviewRadio.storagePrefix}',
'[]',
@@ -76,11 +106,20 @@ void main() {
final relaunched = AppSettingsService();
await relaunched.loadSettings();
- expect(relaunched.isChannelMuted('Public'), isTrue);
+ expect(
+ relaunched.getChannelNotificationMode('Public'),
+ ChannelNotificationMode.muted,
+ );
await endReviewModeSession(relaunched);
- expect(relaunched.isChannelMuted('Public'), isFalse);
- expect(relaunched.isChannelMuted('Hiking Group'), isTrue);
+ expect(
+ relaunched.getChannelNotificationMode('Public'),
+ ChannelNotificationMode.all,
+ );
+ expect(
+ relaunched.getChannelNotificationMode('Hiking Group'),
+ ChannelNotificationMode.muted,
+ );
expect(
PrefsManager.instance.getKeys().where(
(k) => k.contains(ReviewRadio.storagePrefix),
@@ -90,6 +129,61 @@ void main() {
},
);
+ test('every channel notification mode is restored on exit', () async {
+ final settings = AppSettingsService();
+ await settings.loadSettings();
+ await settings.setChannelNotificationMode(
+ 'Hiking Group',
+ ChannelNotificationMode.mentionsOnly,
+ );
+ await settings.setChannelNotificationMode(
+ 'Noisy',
+ ChannelNotificationMode.muted,
+ );
+
+ await beginReviewModeSession(settings);
+ await settings.setChannelNotificationMode(
+ 'Hiking Group',
+ ChannelNotificationMode.all,
+ );
+ await settings.setChannelNotificationMode(
+ 'Noisy',
+ ChannelNotificationMode.mentionsOnly,
+ );
+ await settings.setChannelNotificationMode(
+ 'Public',
+ ChannelNotificationMode.mentionsOnly,
+ );
+ await endReviewModeSession(settings);
+
+ expect(
+ settings.getChannelNotificationMode('Hiking Group'),
+ ChannelNotificationMode.mentionsOnly,
+ );
+ expect(
+ settings.getChannelNotificationMode('Noisy'),
+ ChannelNotificationMode.muted,
+ );
+ expect(
+ settings.getChannelNotificationMode('Public'),
+ ChannelNotificationMode.all,
+ );
+ });
+
+ test('setting a channel back to all drops its stored mode', () async {
+ final settings = AppSettingsService();
+ await settings.loadSettings();
+ await settings.setChannelNotificationMode(
+ 'Public',
+ ChannelNotificationMode.muted,
+ );
+ await settings.setChannelNotificationMode(
+ 'Public',
+ ChannelNotificationMode.all,
+ );
+ expect(settings.settings.channelNotificationModes, isEmpty);
+ });
+
test('the review scope never adopts legacy unscoped data', () async {
await PrefsManager.instance.setString('contacts', '[]');
await beginReviewModeSession(null);
diff --git a/test/screens/map_marker_parse_test.dart b/test/screens/map_marker_parse_test.dart
index 53b846c2..b41f82b8 100644
--- a/test/screens/map_marker_parse_test.dart
+++ b/test/screens/map_marker_parse_test.dart
@@ -1,5 +1,5 @@
import 'package:flutter_test/flutter_test.dart';
-import 'package:meshcore_open/screens/map_screen.dart';
+import 'package:meshcore_open/helpers/marker_message.dart';
void main() {
test('parseMarkerText accepts in-range coordinates', () {
diff --git a/test/services/node_banner_service_test.dart b/test/services/node_banner_service_test.dart
new file mode 100644
index 00000000..061d7cdf
--- /dev/null
+++ b/test/services/node_banner_service_test.dart
@@ -0,0 +1,107 @@
+import 'dart:convert';
+
+import 'package:flutter_test/flutter_test.dart';
+import 'package:http/http.dart' as http;
+import 'package:http/testing.dart';
+import 'package:meshcore_open/services/node_banner_service.dart';
+import 'package:meshcore_open/storage/prefs_manager.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+
+const _record =
+ 'v=1;on=1;url=https%3A%2F%2Fshop.example.com%2Fnode%3Fref%3Da%26b%3Dc;'
+ 'title=Need%20a%20node%3F';
+
+String _doh(String data, {int status = 0, int ttl = 300}) => jsonEncode({
+ 'Status': status,
+ 'Answer': [
+ {'name': '_banner.meshcoreopen.org', 'type': 16, 'TTL': ttl, 'data': data},
+ ],
+});
+
+void main() {
+ setUp(() async {
+ SharedPreferences.setMockInitialValues({});
+ PrefsManager.reset();
+ await PrefsManager.initialize();
+ });
+
+ group('NodeBannerConfig.parse', () {
+ test('reads the link and decodes text overrides', () {
+ final config = NodeBannerConfig.parse(_record)!;
+ expect(config.url.toString(), 'https://shop.example.com/node?ref=a&b=c');
+ expect(config.title, 'Need a node?');
+ expect(config.body, isNull);
+ expect(config.action, isNull);
+ });
+
+ test('accepts plain-text values', () {
+ final config = NodeBannerConfig.parse(
+ 'v=1;on=1;url=https://shop.example.com/node?ref=a&b=c;'
+ 'title=Need a new node?;body=Waterproof, 50% off this week.;'
+ 'cta=Get one here',
+ )!;
+ expect(config.url.toString(), 'https://shop.example.com/node?ref=a&b=c');
+ expect(config.title, 'Need a new node?');
+ expect(config.body, 'Waterproof, 50% off this week.');
+ expect(config.action, 'Get one here');
+ });
+
+ test('is off for on=0, unknown versions, and non-https links', () {
+ expect(
+ NodeBannerConfig.parse(_record.replaceAll('on=1', 'on=0')),
+ isNull,
+ );
+ expect(NodeBannerConfig.parse(_record.replaceAll('v=1', 'v=2')), isNull);
+ expect(NodeBannerConfig.parse('v=1;on=1;url=http%3A%2F%2Fx.com'), isNull);
+ expect(NodeBannerConfig.parse('v=1;on=1'), isNull);
+ expect(NodeBannerConfig.parse('v=1;on=1;url=%E0%A4%A'), isNull);
+ });
+ });
+
+ test('joins split TXT character-strings and unescapes them', () {
+ final answer = NodeBannerService.txtFromDohJson(
+ _doh(r'"v=1;on=1;url=https%3A%2F%2Fa.com" ";title=Say \"hi\""'),
+ )!;
+ expect(answer.text, 'v=1;on=1;url=https%3A%2F%2Fa.com;title=Say "hi"');
+ expect(answer.ttl, 300);
+ });
+
+ test('no record or NXDOMAIN gives no answer', () {
+ expect(NodeBannerService.txtFromDohJson(jsonEncode({'Status': 3})), isNull);
+ expect(NodeBannerService.txtFromDohJson(jsonEncode({'Status': 0})), isNull);
+ });
+
+ test('load queries Cloudflare DoH and caches for the TTL', () async {
+ var calls = 0;
+ var now = DateTime(2026, 1, 1);
+ final client = MockClient((request) async {
+ calls++;
+ expect(request.url.host, 'cloudflare-dns.com');
+ expect(request.url.queryParameters['name'], '_banner.meshcoreopen.org');
+ expect(request.url.queryParameters['type'], 'TXT');
+ expect(request.headers['accept'], 'application/dns-json');
+ return http.Response(_doh('"$_record"'), 200);
+ });
+ final service = NodeBannerService(client: client, now: () => now);
+
+ expect((await service.load())?.title, 'Need a node?');
+ expect((await service.load())?.title, 'Need a node?');
+ expect(calls, 1);
+
+ now = now.add(const Duration(minutes: 6));
+ await service.load();
+ expect(calls, 2);
+ });
+
+ test('load returns null when the lookup fails', () async {
+ final failing = NodeBannerService(
+ client: MockClient((_) async => throw http.ClientException('offline')),
+ );
+ expect(await failing.load(), isNull);
+
+ final serverError = NodeBannerService(
+ client: MockClient((_) async => http.Response('', 503)),
+ );
+ expect(await serverError.load(), isNull);
+ });
+}
diff --git a/test/services/notification_text_test.dart b/test/services/notification_text_test.dart
new file mode 100644
index 00000000..8cd77249
--- /dev/null
+++ b/test/services/notification_text_test.dart
@@ -0,0 +1,45 @@
+import 'dart:ui';
+
+import 'package:flutter_test/flutter_test.dart';
+import 'package:meshcore_open/helpers/gif_helper.dart';
+import 'package:meshcore_open/helpers/reaction_helper.dart';
+import 'package:meshcore_open/l10n/app_localizations.dart';
+import 'package:meshcore_open/services/notification_service.dart';
+import 'package:meshcore_open/services/received_image_store.dart';
+import 'package:meshcore_open/widgets/marker_label_dialog.dart';
+
+void main() {
+ final l10n = lookupAppLocalizations(const Locale('en'));
+ String format(String text) =>
+ NotificationService.formatNotificationText(text, l10n);
+
+ test('shared locations show a summary instead of coordinates', () {
+ expect(
+ format(formatMarkerText(45.5, -122.6, 'Camp', 'poi')),
+ 'Shared a location: Camp',
+ );
+ expect(
+ format(formatMarkerText(45.5, -122.6, '', 'poi')),
+ 'Shared a location',
+ );
+ });
+
+ test('reactions, GIFs and images are summarized', () {
+ expect(
+ format(ReactionHelper.encodeReaction('ab12', '00')),
+ startsWith('Reacted '),
+ );
+ expect(format('👍\nabcd2345'), 'Reacted 👍');
+ expect(format(GifHelper.encodeGif('xT9IgG50Fb7Mi0prBC')), 'Sent a GIF');
+ expect(
+ format('https://media.giphy.com/media/xT9IgG50Fb7Mi0prBC/giphy.gif'),
+ 'Sent a GIF',
+ );
+ expect(format(ReceivedImageRef.encode('0a1b2c3d4e5f60')), 'Sent an image');
+ });
+
+ test('plain text is unchanged', () {
+ expect(format('see you at m:ain street'), 'see you at m:ain street');
+ expect(format('hello'), 'hello');
+ });
+}
diff --git a/test/services/tcp_transport_service_native_test.dart b/test/services/tcp_transport_service_native_test.dart
index 72edf22e..3cb9629c 100644
--- a/test/services/tcp_transport_service_native_test.dart
+++ b/test/services/tcp_transport_service_native_test.dart
@@ -61,30 +61,34 @@ int _readIntOption(Socket socket, int level, int option) {
}
void main() {
- test('connect enables TCP keepalive with short probe timings', () async {
- final server = await ServerSocket.bind(InternetAddress.loopbackIPv4, 0);
- final overrides = _CapturingConnectOverrides();
- final service = TcpTransportService();
- try {
- await IOOverrides.runZoned(
- () => service.connect(
- host: InternetAddress.loopbackIPv4.address,
- port: server.port,
- ),
- socketConnect: overrides.socketConnect,
- );
- final socket = overrides.socket!;
- // Linux values: SO_KEEPALIVE 9, TCP_KEEPIDLE 4, TCP_KEEPINTVL 5,
- // TCP_KEEPCNT 6.
- expect(_readIntOption(socket, RawSocketOption.levelSocket, 9), 1);
- expect(_readIntOption(socket, RawSocketOption.levelTcp, 4), 30);
- expect(_readIntOption(socket, RawSocketOption.levelTcp, 5), 10);
- expect(_readIntOption(socket, RawSocketOption.levelTcp, 6), 3);
- } finally {
- await service.disconnect();
- await server.close();
- }
- }, skip: Platform.isLinux ? false : 'Option numbers checked are Linux ones');
+ test(
+ 'connect enables TCP keepalive with short probe timings',
+ () async {
+ final server = await ServerSocket.bind(InternetAddress.loopbackIPv4, 0);
+ final overrides = _CapturingConnectOverrides();
+ final service = TcpTransportService();
+ try {
+ await IOOverrides.runZoned(
+ () => service.connect(
+ host: InternetAddress.loopbackIPv4.address,
+ port: server.port,
+ ),
+ socketConnect: overrides.socketConnect,
+ );
+ final socket = overrides.socket!;
+ // Linux values: SO_KEEPALIVE 9, TCP_KEEPIDLE 4, TCP_KEEPINTVL 5,
+ // TCP_KEEPCNT 6.
+ expect(_readIntOption(socket, RawSocketOption.levelSocket, 9), 1);
+ expect(_readIntOption(socket, RawSocketOption.levelTcp, 4), 30);
+ expect(_readIntOption(socket, RawSocketOption.levelTcp, 5), 10);
+ expect(_readIntOption(socket, RawSocketOption.levelTcp, 6), 3);
+ } finally {
+ await service.disconnect();
+ await server.close();
+ }
+ },
+ skip: Platform.isLinux ? false : 'Option numbers checked are Linux ones',
+ );
test('connect/disconnect updates TCP transport state', () async {
final server = await ServerSocket.bind(InternetAddress.loopbackIPv4, 0);
diff --git a/test/widgets/get_node_banner_test.dart b/test/widgets/get_node_banner_test.dart
index 5cb90bc9..6d573d0e 100644
--- a/test/widgets/get_node_banner_test.dart
+++ b/test/widgets/get_node_banner_test.dart
@@ -1,13 +1,18 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:meshcore_open/l10n/app_localizations.dart';
+import 'package:meshcore_open/services/node_banner_service.dart';
import 'package:meshcore_open/widgets/get_node_banner.dart';
+final _config = NodeBannerConfig(url: Uri.parse('https://example.com/node'));
+
void main() {
Future pumpBanner(
WidgetTester tester, {
required Size size,
required double textScale,
+ NodeBannerConfig? config,
+ bool hidden = false,
}) async {
tester.view.physicalSize = size;
tester.view.devicePixelRatio = 1;
@@ -21,7 +26,11 @@ void main() {
size: size,
textScaler: TextScaler.linear(textScale),
),
- child: const Scaffold(bottomNavigationBar: GetNodeBanner()),
+ child: Scaffold(
+ bottomNavigationBar: GetNodeBanner(
+ loadConfig: () async => hidden ? null : config ?? _config,
+ ),
+ ),
),
),
);
@@ -29,11 +38,11 @@ void main() {
testWidgets('shows the pitch and affiliate link', (tester) async {
await pumpBanner(tester, size: const Size(390, 844), textScale: 1);
+ await tester.pump();
expect(find.text('Need a new node?'), findsOneWidget);
expect(find.text('Get one here'), findsOneWidget);
expect(find.textContaining('Affiliate link'), findsOneWidget);
- expect(getNodeUrl, contains('sensecap_affiliate=JFWID0g'));
// Leaves most of the screen for the device list.
expect(
tester.getSize(find.byType(GetNodeBanner)).height,
@@ -43,6 +52,38 @@ void main() {
testWidgets('lays out on a narrow phone with large text', (tester) async {
await pumpBanner(tester, size: const Size(320, 800), textScale: 1.5);
+ await tester.pump();
expect(tester.takeException(), isNull);
});
+
+ testWidgets('uses text overrides from the record', (tester) async {
+ await pumpBanner(
+ tester,
+ size: const Size(390, 844),
+ textScale: 1,
+ config: NodeBannerConfig(
+ url: Uri.parse('https://example.com'),
+ title: 'Spring sale',
+ action: 'Shop now',
+ ),
+ );
+ await tester.pump();
+
+ expect(find.text('Spring sale'), findsOneWidget);
+ expect(find.text('Shop now'), findsOneWidget);
+ expect(find.textContaining('Affiliate link'), findsOneWidget);
+ });
+
+ testWidgets('shows nothing when there is no config', (tester) async {
+ await pumpBanner(
+ tester,
+ size: const Size(390, 844),
+ textScale: 1,
+ hidden: true,
+ );
+ await tester.pump();
+
+ expect(find.byType(InkWell), findsNothing);
+ expect(tester.getSize(find.byType(GetNodeBanner)).height, 0);
+ });
}
diff --git a/untranslated.json b/untranslated.json
index c4c655a3..337d70f9 100644
--- a/untranslated.json
+++ b/untranslated.json
@@ -1,5 +1,6 @@
{
"bg": [
+ "settings_pathHashModeNotApplied",
"appSettings_ipfsImageLinks",
"appSettings_ipfsImageLinksSubtitle",
"appSettings_publicIpfsGateway",
@@ -14,12 +15,35 @@
"appSettings_uploadIpfsEndpointSubtitle",
"appSettings_uploadIpfsApiKey",
"appSettings_ipfsImageLinksDescription",
+ "contacts_removeAutoAddNote",
+ "contacts_removeFailed",
+ "channels_notificationModeTooltip",
"chat_sendImageIpfs",
"chat_ipfsUploadFailed",
- "chat_ipfsUploadNotConfigured"
+ "chat_ipfsUploadNotConfigured",
+ "map_pathTraceAddMoreHint",
+ "map_pathTraceModeRoundTrip",
+ "map_pathTraceModeRoundTripHint",
+ "map_pathTraceModeAsEntered",
+ "map_pathTraceModeAsEnteredHint",
+ "map_pathTraceViewLast",
+ "notification_lowBatteryTitle",
+ "notification_lowBatteryBody",
+ "notification_sharedLocation",
+ "notification_sharedLocationNamed",
+ "notification_reacted",
+ "notification_sentGif",
+ "notification_sentImage",
+ "snrIndicator_unknownRepeater",
+ "snrIndicator_unknownRepeaterHint",
+ "contacts_keyPrefixSemantics",
+ "networkMap_sourceLocalHint",
+ "networkMap_sourceOnlineHint",
+ "networkMap_sourceBothHint"
],
"de": [
+ "settings_pathHashModeNotApplied",
"appSettings_ipfsImageLinks",
"appSettings_ipfsImageLinksSubtitle",
"appSettings_publicIpfsGateway",
@@ -34,12 +58,35 @@
"appSettings_uploadIpfsEndpointSubtitle",
"appSettings_uploadIpfsApiKey",
"appSettings_ipfsImageLinksDescription",
+ "contacts_removeAutoAddNote",
+ "contacts_removeFailed",
+ "channels_notificationModeTooltip",
"chat_sendImageIpfs",
"chat_ipfsUploadFailed",
- "chat_ipfsUploadNotConfigured"
+ "chat_ipfsUploadNotConfigured",
+ "map_pathTraceAddMoreHint",
+ "map_pathTraceModeRoundTrip",
+ "map_pathTraceModeRoundTripHint",
+ "map_pathTraceModeAsEntered",
+ "map_pathTraceModeAsEnteredHint",
+ "map_pathTraceViewLast",
+ "notification_lowBatteryTitle",
+ "notification_lowBatteryBody",
+ "notification_sharedLocation",
+ "notification_sharedLocationNamed",
+ "notification_reacted",
+ "notification_sentGif",
+ "notification_sentImage",
+ "snrIndicator_unknownRepeater",
+ "snrIndicator_unknownRepeaterHint",
+ "contacts_keyPrefixSemantics",
+ "networkMap_sourceLocalHint",
+ "networkMap_sourceOnlineHint",
+ "networkMap_sourceBothHint"
],
"es": [
+ "settings_pathHashModeNotApplied",
"appSettings_ipfsImageLinks",
"appSettings_ipfsImageLinksSubtitle",
"appSettings_publicIpfsGateway",
@@ -54,12 +101,35 @@
"appSettings_uploadIpfsEndpointSubtitle",
"appSettings_uploadIpfsApiKey",
"appSettings_ipfsImageLinksDescription",
+ "contacts_removeAutoAddNote",
+ "contacts_removeFailed",
+ "channels_notificationModeTooltip",
"chat_sendImageIpfs",
"chat_ipfsUploadFailed",
- "chat_ipfsUploadNotConfigured"
+ "chat_ipfsUploadNotConfigured",
+ "map_pathTraceAddMoreHint",
+ "map_pathTraceModeRoundTrip",
+ "map_pathTraceModeRoundTripHint",
+ "map_pathTraceModeAsEntered",
+ "map_pathTraceModeAsEnteredHint",
+ "map_pathTraceViewLast",
+ "notification_lowBatteryTitle",
+ "notification_lowBatteryBody",
+ "notification_sharedLocation",
+ "notification_sharedLocationNamed",
+ "notification_reacted",
+ "notification_sentGif",
+ "notification_sentImage",
+ "snrIndicator_unknownRepeater",
+ "snrIndicator_unknownRepeaterHint",
+ "contacts_keyPrefixSemantics",
+ "networkMap_sourceLocalHint",
+ "networkMap_sourceOnlineHint",
+ "networkMap_sourceBothHint"
],
"fr": [
+ "settings_pathHashModeNotApplied",
"appSettings_ipfsImageLinks",
"appSettings_ipfsImageLinksSubtitle",
"appSettings_publicIpfsGateway",
@@ -74,12 +144,35 @@
"appSettings_uploadIpfsEndpointSubtitle",
"appSettings_uploadIpfsApiKey",
"appSettings_ipfsImageLinksDescription",
+ "contacts_removeAutoAddNote",
+ "contacts_removeFailed",
+ "channels_notificationModeTooltip",
"chat_sendImageIpfs",
"chat_ipfsUploadFailed",
- "chat_ipfsUploadNotConfigured"
+ "chat_ipfsUploadNotConfigured",
+ "map_pathTraceAddMoreHint",
+ "map_pathTraceModeRoundTrip",
+ "map_pathTraceModeRoundTripHint",
+ "map_pathTraceModeAsEntered",
+ "map_pathTraceModeAsEnteredHint",
+ "map_pathTraceViewLast",
+ "notification_lowBatteryTitle",
+ "notification_lowBatteryBody",
+ "notification_sharedLocation",
+ "notification_sharedLocationNamed",
+ "notification_reacted",
+ "notification_sentGif",
+ "notification_sentImage",
+ "snrIndicator_unknownRepeater",
+ "snrIndicator_unknownRepeaterHint",
+ "contacts_keyPrefixSemantics",
+ "networkMap_sourceLocalHint",
+ "networkMap_sourceOnlineHint",
+ "networkMap_sourceBothHint"
],
"hu": [
+ "settings_pathHashModeNotApplied",
"appSettings_ipfsImageLinks",
"appSettings_ipfsImageLinksSubtitle",
"appSettings_publicIpfsGateway",
@@ -94,12 +187,35 @@
"appSettings_uploadIpfsEndpointSubtitle",
"appSettings_uploadIpfsApiKey",
"appSettings_ipfsImageLinksDescription",
+ "contacts_removeAutoAddNote",
+ "contacts_removeFailed",
+ "channels_notificationModeTooltip",
"chat_sendImageIpfs",
"chat_ipfsUploadFailed",
- "chat_ipfsUploadNotConfigured"
+ "chat_ipfsUploadNotConfigured",
+ "map_pathTraceAddMoreHint",
+ "map_pathTraceModeRoundTrip",
+ "map_pathTraceModeRoundTripHint",
+ "map_pathTraceModeAsEntered",
+ "map_pathTraceModeAsEnteredHint",
+ "map_pathTraceViewLast",
+ "notification_lowBatteryTitle",
+ "notification_lowBatteryBody",
+ "notification_sharedLocation",
+ "notification_sharedLocationNamed",
+ "notification_reacted",
+ "notification_sentGif",
+ "notification_sentImage",
+ "snrIndicator_unknownRepeater",
+ "snrIndicator_unknownRepeaterHint",
+ "contacts_keyPrefixSemantics",
+ "networkMap_sourceLocalHint",
+ "networkMap_sourceOnlineHint",
+ "networkMap_sourceBothHint"
],
"it": [
+ "settings_pathHashModeNotApplied",
"appSettings_ipfsImageLinks",
"appSettings_ipfsImageLinksSubtitle",
"appSettings_publicIpfsGateway",
@@ -114,12 +230,35 @@
"appSettings_uploadIpfsEndpointSubtitle",
"appSettings_uploadIpfsApiKey",
"appSettings_ipfsImageLinksDescription",
+ "contacts_removeAutoAddNote",
+ "contacts_removeFailed",
+ "channels_notificationModeTooltip",
"chat_sendImageIpfs",
"chat_ipfsUploadFailed",
- "chat_ipfsUploadNotConfigured"
+ "chat_ipfsUploadNotConfigured",
+ "map_pathTraceAddMoreHint",
+ "map_pathTraceModeRoundTrip",
+ "map_pathTraceModeRoundTripHint",
+ "map_pathTraceModeAsEntered",
+ "map_pathTraceModeAsEnteredHint",
+ "map_pathTraceViewLast",
+ "notification_lowBatteryTitle",
+ "notification_lowBatteryBody",
+ "notification_sharedLocation",
+ "notification_sharedLocationNamed",
+ "notification_reacted",
+ "notification_sentGif",
+ "notification_sentImage",
+ "snrIndicator_unknownRepeater",
+ "snrIndicator_unknownRepeaterHint",
+ "contacts_keyPrefixSemantics",
+ "networkMap_sourceLocalHint",
+ "networkMap_sourceOnlineHint",
+ "networkMap_sourceBothHint"
],
"ja": [
+ "settings_pathHashModeNotApplied",
"appSettings_ipfsImageLinks",
"appSettings_ipfsImageLinksSubtitle",
"appSettings_publicIpfsGateway",
@@ -134,12 +273,35 @@
"appSettings_uploadIpfsEndpointSubtitle",
"appSettings_uploadIpfsApiKey",
"appSettings_ipfsImageLinksDescription",
+ "contacts_removeAutoAddNote",
+ "contacts_removeFailed",
+ "channels_notificationModeTooltip",
"chat_sendImageIpfs",
"chat_ipfsUploadFailed",
- "chat_ipfsUploadNotConfigured"
+ "chat_ipfsUploadNotConfigured",
+ "map_pathTraceAddMoreHint",
+ "map_pathTraceModeRoundTrip",
+ "map_pathTraceModeRoundTripHint",
+ "map_pathTraceModeAsEntered",
+ "map_pathTraceModeAsEnteredHint",
+ "map_pathTraceViewLast",
+ "notification_lowBatteryTitle",
+ "notification_lowBatteryBody",
+ "notification_sharedLocation",
+ "notification_sharedLocationNamed",
+ "notification_reacted",
+ "notification_sentGif",
+ "notification_sentImage",
+ "snrIndicator_unknownRepeater",
+ "snrIndicator_unknownRepeaterHint",
+ "contacts_keyPrefixSemantics",
+ "networkMap_sourceLocalHint",
+ "networkMap_sourceOnlineHint",
+ "networkMap_sourceBothHint"
],
"ko": [
+ "settings_pathHashModeNotApplied",
"appSettings_ipfsImageLinks",
"appSettings_ipfsImageLinksSubtitle",
"appSettings_publicIpfsGateway",
@@ -154,12 +316,35 @@
"appSettings_uploadIpfsEndpointSubtitle",
"appSettings_uploadIpfsApiKey",
"appSettings_ipfsImageLinksDescription",
+ "contacts_removeAutoAddNote",
+ "contacts_removeFailed",
+ "channels_notificationModeTooltip",
"chat_sendImageIpfs",
"chat_ipfsUploadFailed",
- "chat_ipfsUploadNotConfigured"
+ "chat_ipfsUploadNotConfigured",
+ "map_pathTraceAddMoreHint",
+ "map_pathTraceModeRoundTrip",
+ "map_pathTraceModeRoundTripHint",
+ "map_pathTraceModeAsEntered",
+ "map_pathTraceModeAsEnteredHint",
+ "map_pathTraceViewLast",
+ "notification_lowBatteryTitle",
+ "notification_lowBatteryBody",
+ "notification_sharedLocation",
+ "notification_sharedLocationNamed",
+ "notification_reacted",
+ "notification_sentGif",
+ "notification_sentImage",
+ "snrIndicator_unknownRepeater",
+ "snrIndicator_unknownRepeaterHint",
+ "contacts_keyPrefixSemantics",
+ "networkMap_sourceLocalHint",
+ "networkMap_sourceOnlineHint",
+ "networkMap_sourceBothHint"
],
"nl": [
+ "settings_pathHashModeNotApplied",
"appSettings_ipfsImageLinks",
"appSettings_ipfsImageLinksSubtitle",
"appSettings_publicIpfsGateway",
@@ -174,12 +359,35 @@
"appSettings_uploadIpfsEndpointSubtitle",
"appSettings_uploadIpfsApiKey",
"appSettings_ipfsImageLinksDescription",
+ "contacts_removeAutoAddNote",
+ "contacts_removeFailed",
+ "channels_notificationModeTooltip",
"chat_sendImageIpfs",
"chat_ipfsUploadFailed",
- "chat_ipfsUploadNotConfigured"
+ "chat_ipfsUploadNotConfigured",
+ "map_pathTraceAddMoreHint",
+ "map_pathTraceModeRoundTrip",
+ "map_pathTraceModeRoundTripHint",
+ "map_pathTraceModeAsEntered",
+ "map_pathTraceModeAsEnteredHint",
+ "map_pathTraceViewLast",
+ "notification_lowBatteryTitle",
+ "notification_lowBatteryBody",
+ "notification_sharedLocation",
+ "notification_sharedLocationNamed",
+ "notification_reacted",
+ "notification_sentGif",
+ "notification_sentImage",
+ "snrIndicator_unknownRepeater",
+ "snrIndicator_unknownRepeaterHint",
+ "contacts_keyPrefixSemantics",
+ "networkMap_sourceLocalHint",
+ "networkMap_sourceOnlineHint",
+ "networkMap_sourceBothHint"
],
"pl": [
+ "settings_pathHashModeNotApplied",
"appSettings_ipfsImageLinks",
"appSettings_ipfsImageLinksSubtitle",
"appSettings_publicIpfsGateway",
@@ -194,12 +402,35 @@
"appSettings_uploadIpfsEndpointSubtitle",
"appSettings_uploadIpfsApiKey",
"appSettings_ipfsImageLinksDescription",
+ "contacts_removeAutoAddNote",
+ "contacts_removeFailed",
+ "channels_notificationModeTooltip",
"chat_sendImageIpfs",
"chat_ipfsUploadFailed",
- "chat_ipfsUploadNotConfigured"
+ "chat_ipfsUploadNotConfigured",
+ "map_pathTraceAddMoreHint",
+ "map_pathTraceModeRoundTrip",
+ "map_pathTraceModeRoundTripHint",
+ "map_pathTraceModeAsEntered",
+ "map_pathTraceModeAsEnteredHint",
+ "map_pathTraceViewLast",
+ "notification_lowBatteryTitle",
+ "notification_lowBatteryBody",
+ "notification_sharedLocation",
+ "notification_sharedLocationNamed",
+ "notification_reacted",
+ "notification_sentGif",
+ "notification_sentImage",
+ "snrIndicator_unknownRepeater",
+ "snrIndicator_unknownRepeaterHint",
+ "contacts_keyPrefixSemantics",
+ "networkMap_sourceLocalHint",
+ "networkMap_sourceOnlineHint",
+ "networkMap_sourceBothHint"
],
"pt": [
+ "settings_pathHashModeNotApplied",
"appSettings_ipfsImageLinks",
"appSettings_ipfsImageLinksSubtitle",
"appSettings_publicIpfsGateway",
@@ -214,12 +445,35 @@
"appSettings_uploadIpfsEndpointSubtitle",
"appSettings_uploadIpfsApiKey",
"appSettings_ipfsImageLinksDescription",
+ "contacts_removeAutoAddNote",
+ "contacts_removeFailed",
+ "channels_notificationModeTooltip",
"chat_sendImageIpfs",
"chat_ipfsUploadFailed",
- "chat_ipfsUploadNotConfigured"
+ "chat_ipfsUploadNotConfigured",
+ "map_pathTraceAddMoreHint",
+ "map_pathTraceModeRoundTrip",
+ "map_pathTraceModeRoundTripHint",
+ "map_pathTraceModeAsEntered",
+ "map_pathTraceModeAsEnteredHint",
+ "map_pathTraceViewLast",
+ "notification_lowBatteryTitle",
+ "notification_lowBatteryBody",
+ "notification_sharedLocation",
+ "notification_sharedLocationNamed",
+ "notification_reacted",
+ "notification_sentGif",
+ "notification_sentImage",
+ "snrIndicator_unknownRepeater",
+ "snrIndicator_unknownRepeaterHint",
+ "contacts_keyPrefixSemantics",
+ "networkMap_sourceLocalHint",
+ "networkMap_sourceOnlineHint",
+ "networkMap_sourceBothHint"
],
"ru": [
+ "settings_pathHashModeNotApplied",
"appSettings_ipfsImageLinks",
"appSettings_ipfsImageLinksSubtitle",
"appSettings_publicIpfsGateway",
@@ -234,12 +488,35 @@
"appSettings_uploadIpfsEndpointSubtitle",
"appSettings_uploadIpfsApiKey",
"appSettings_ipfsImageLinksDescription",
+ "contacts_removeAutoAddNote",
+ "contacts_removeFailed",
+ "channels_notificationModeTooltip",
"chat_sendImageIpfs",
"chat_ipfsUploadFailed",
- "chat_ipfsUploadNotConfigured"
+ "chat_ipfsUploadNotConfigured",
+ "map_pathTraceAddMoreHint",
+ "map_pathTraceModeRoundTrip",
+ "map_pathTraceModeRoundTripHint",
+ "map_pathTraceModeAsEntered",
+ "map_pathTraceModeAsEnteredHint",
+ "map_pathTraceViewLast",
+ "notification_lowBatteryTitle",
+ "notification_lowBatteryBody",
+ "notification_sharedLocation",
+ "notification_sharedLocationNamed",
+ "notification_reacted",
+ "notification_sentGif",
+ "notification_sentImage",
+ "snrIndicator_unknownRepeater",
+ "snrIndicator_unknownRepeaterHint",
+ "contacts_keyPrefixSemantics",
+ "networkMap_sourceLocalHint",
+ "networkMap_sourceOnlineHint",
+ "networkMap_sourceBothHint"
],
"sk": [
+ "settings_pathHashModeNotApplied",
"appSettings_ipfsImageLinks",
"appSettings_ipfsImageLinksSubtitle",
"appSettings_publicIpfsGateway",
@@ -254,12 +531,35 @@
"appSettings_uploadIpfsEndpointSubtitle",
"appSettings_uploadIpfsApiKey",
"appSettings_ipfsImageLinksDescription",
+ "contacts_removeAutoAddNote",
+ "contacts_removeFailed",
+ "channels_notificationModeTooltip",
"chat_sendImageIpfs",
"chat_ipfsUploadFailed",
- "chat_ipfsUploadNotConfigured"
+ "chat_ipfsUploadNotConfigured",
+ "map_pathTraceAddMoreHint",
+ "map_pathTraceModeRoundTrip",
+ "map_pathTraceModeRoundTripHint",
+ "map_pathTraceModeAsEntered",
+ "map_pathTraceModeAsEnteredHint",
+ "map_pathTraceViewLast",
+ "notification_lowBatteryTitle",
+ "notification_lowBatteryBody",
+ "notification_sharedLocation",
+ "notification_sharedLocationNamed",
+ "notification_reacted",
+ "notification_sentGif",
+ "notification_sentImage",
+ "snrIndicator_unknownRepeater",
+ "snrIndicator_unknownRepeaterHint",
+ "contacts_keyPrefixSemantics",
+ "networkMap_sourceLocalHint",
+ "networkMap_sourceOnlineHint",
+ "networkMap_sourceBothHint"
],
"sl": [
+ "settings_pathHashModeNotApplied",
"appSettings_ipfsImageLinks",
"appSettings_ipfsImageLinksSubtitle",
"appSettings_publicIpfsGateway",
@@ -274,12 +574,35 @@
"appSettings_uploadIpfsEndpointSubtitle",
"appSettings_uploadIpfsApiKey",
"appSettings_ipfsImageLinksDescription",
+ "contacts_removeAutoAddNote",
+ "contacts_removeFailed",
+ "channels_notificationModeTooltip",
"chat_sendImageIpfs",
"chat_ipfsUploadFailed",
- "chat_ipfsUploadNotConfigured"
+ "chat_ipfsUploadNotConfigured",
+ "map_pathTraceAddMoreHint",
+ "map_pathTraceModeRoundTrip",
+ "map_pathTraceModeRoundTripHint",
+ "map_pathTraceModeAsEntered",
+ "map_pathTraceModeAsEnteredHint",
+ "map_pathTraceViewLast",
+ "notification_lowBatteryTitle",
+ "notification_lowBatteryBody",
+ "notification_sharedLocation",
+ "notification_sharedLocationNamed",
+ "notification_reacted",
+ "notification_sentGif",
+ "notification_sentImage",
+ "snrIndicator_unknownRepeater",
+ "snrIndicator_unknownRepeaterHint",
+ "contacts_keyPrefixSemantics",
+ "networkMap_sourceLocalHint",
+ "networkMap_sourceOnlineHint",
+ "networkMap_sourceBothHint"
],
"sv": [
+ "settings_pathHashModeNotApplied",
"appSettings_ipfsImageLinks",
"appSettings_ipfsImageLinksSubtitle",
"appSettings_publicIpfsGateway",
@@ -294,12 +617,35 @@
"appSettings_uploadIpfsEndpointSubtitle",
"appSettings_uploadIpfsApiKey",
"appSettings_ipfsImageLinksDescription",
+ "contacts_removeAutoAddNote",
+ "contacts_removeFailed",
+ "channels_notificationModeTooltip",
"chat_sendImageIpfs",
"chat_ipfsUploadFailed",
- "chat_ipfsUploadNotConfigured"
+ "chat_ipfsUploadNotConfigured",
+ "map_pathTraceAddMoreHint",
+ "map_pathTraceModeRoundTrip",
+ "map_pathTraceModeRoundTripHint",
+ "map_pathTraceModeAsEntered",
+ "map_pathTraceModeAsEnteredHint",
+ "map_pathTraceViewLast",
+ "notification_lowBatteryTitle",
+ "notification_lowBatteryBody",
+ "notification_sharedLocation",
+ "notification_sharedLocationNamed",
+ "notification_reacted",
+ "notification_sentGif",
+ "notification_sentImage",
+ "snrIndicator_unknownRepeater",
+ "snrIndicator_unknownRepeaterHint",
+ "contacts_keyPrefixSemantics",
+ "networkMap_sourceLocalHint",
+ "networkMap_sourceOnlineHint",
+ "networkMap_sourceBothHint"
],
"uk": [
+ "settings_pathHashModeNotApplied",
"appSettings_ipfsImageLinks",
"appSettings_ipfsImageLinksSubtitle",
"appSettings_publicIpfsGateway",
@@ -314,12 +660,35 @@
"appSettings_uploadIpfsEndpointSubtitle",
"appSettings_uploadIpfsApiKey",
"appSettings_ipfsImageLinksDescription",
+ "contacts_removeAutoAddNote",
+ "contacts_removeFailed",
+ "channels_notificationModeTooltip",
"chat_sendImageIpfs",
"chat_ipfsUploadFailed",
- "chat_ipfsUploadNotConfigured"
+ "chat_ipfsUploadNotConfigured",
+ "map_pathTraceAddMoreHint",
+ "map_pathTraceModeRoundTrip",
+ "map_pathTraceModeRoundTripHint",
+ "map_pathTraceModeAsEntered",
+ "map_pathTraceModeAsEnteredHint",
+ "map_pathTraceViewLast",
+ "notification_lowBatteryTitle",
+ "notification_lowBatteryBody",
+ "notification_sharedLocation",
+ "notification_sharedLocationNamed",
+ "notification_reacted",
+ "notification_sentGif",
+ "notification_sentImage",
+ "snrIndicator_unknownRepeater",
+ "snrIndicator_unknownRepeaterHint",
+ "contacts_keyPrefixSemantics",
+ "networkMap_sourceLocalHint",
+ "networkMap_sourceOnlineHint",
+ "networkMap_sourceBothHint"
],
"zh": [
+ "settings_pathHashModeNotApplied",
"appSettings_ipfsImageLinks",
"appSettings_ipfsImageLinksSubtitle",
"appSettings_publicIpfsGateway",
@@ -334,8 +703,30 @@
"appSettings_uploadIpfsEndpointSubtitle",
"appSettings_uploadIpfsApiKey",
"appSettings_ipfsImageLinksDescription",
+ "contacts_removeAutoAddNote",
+ "contacts_removeFailed",
+ "channels_notificationModeTooltip",
"chat_sendImageIpfs",
"chat_ipfsUploadFailed",
- "chat_ipfsUploadNotConfigured"
+ "chat_ipfsUploadNotConfigured",
+ "map_pathTraceAddMoreHint",
+ "map_pathTraceModeRoundTrip",
+ "map_pathTraceModeRoundTripHint",
+ "map_pathTraceModeAsEntered",
+ "map_pathTraceModeAsEnteredHint",
+ "map_pathTraceViewLast",
+ "notification_lowBatteryTitle",
+ "notification_lowBatteryBody",
+ "notification_sharedLocation",
+ "notification_sharedLocationNamed",
+ "notification_reacted",
+ "notification_sentGif",
+ "notification_sentImage",
+ "snrIndicator_unknownRepeater",
+ "snrIndicator_unknownRepeaterHint",
+ "contacts_keyPrefixSemantics",
+ "networkMap_sourceLocalHint",
+ "networkMap_sourceOnlineHint",
+ "networkMap_sourceBothHint"
]
}