Build repeater settings from a spec list and stop fetching them on open

Repeater settings:
- Each setting is declared once in repeaterSettingSpecs (key, section,
  input type, range, step, labels); the screen builds its control,
  refresh and save command from that list.
- Add flood.max.advert, flood.max.unscoped, rxdelay, cad, adc.multiplier
  and extra.sf. adc.multiplier and extra.sf note their hardware limits
  (extra.sf is LR2021 only and its get reply has no "> " prefix).
- Settings can be edited before they are fetched; only edited ones are
  sent. set radio needs freq, bw, sf and cr together, so a missing one
  is reported instead of silently skipping the radio.
- Check tx delays against the firmware's 0-2 range.
- Keep the not-loaded hint's list slot so the Advanced card doesn't
  collapse when the first value arrives.
- New "Auto-fetch repeater settings" app setting, off by default: each
  get is a LoRa round trip.

Fixes:
- Adding a discovered contact sent its advert time as lastmod, making it
  the oldest contact; with overwrite-oldest on a full table the next add
  evicted it and it reappeared in the discovered list. Let the radio
  stamp its own clock.
- Snackbars replace each other instead of queueing.

Translations: add the new strings in all locales and fix widespread
mistranslations in hu, ko, sk, sl and uk.
This commit is contained in:
zjs81 committed 2026-10-25 14:46:31 -07:00
1 parent 929d371061
commit 705267d98f
47 files changed
+4160 -3819

No files matched your search

+61 -26
View File
@@ -3113,9 +3113,6 @@ class AppLocalizationsEn extends AppLocalizations {
String get repeater_rxGainHelper =>
'Higher sensitivity, more current draw (SX1262/SX1268 only)';
@override
String get repeater_refreshRxGain => 'Refresh boosted RX gain';
@override
String get repeater_multiAcks => 'Multi-ACKs';
@@ -3123,9 +3120,6 @@ class AppLocalizationsEn extends AppLocalizations {
String get repeater_multiAcksSubtitle =>
'Acknowledge messages over multiple paths for better delivery';
@override
String get repeater_refreshMultiAcks => 'Refresh multi-ACKs';
@override
String get repeater_networkHealth => 'Network health';
@@ -3165,9 +3159,6 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get repeater_ownerInfoHelper => 'Public metadata for this repeater';
@override
String get repeater_refreshOwnerInfo => 'Refresh operator info';
@override
String get repeater_floodMax => 'Flood max hops';
@@ -3300,21 +3291,9 @@ class AppLocalizationsEn extends AppLocalizations {
return 'Error saving settings: $error';
}
@override
String get repeater_refreshBasicSettings => 'Refresh Basic Settings';
@override
String get repeater_refreshRadioSettings => 'Refresh Radio Settings';
@override
String get repeater_refreshTxPower => 'Refresh TX power';
@override
String get repeater_refreshPacketForwarding => 'Refresh Packet Forwarding';
@override
String get repeater_refreshGuestAccess => 'Refresh Guest Access';
@override
String get repeater_refreshPrivacyMode => 'Refresh Privacy Mode';
@@ -5159,6 +5138,14 @@ class AppLocalizationsEn extends AppLocalizations {
String get appSettings_jumpToOldestUnreadSubtitle =>
'When opening a chat with unread messages, scroll to the first unread instead of the latest.';
@override
String get appSettings_autoFetchRepeaterSettings =>
'Auto-fetch repeater settings';
@override
String get appSettings_autoFetchRepeaterSettingsSubtitle =>
'Request every setting when opening a repeater\'s settings. Each one is a separate request over LoRa, so this is slow and uses airtime. When off, tap Refresh All or refresh individual sections.';
@override
String get appSettings_languageHu => 'Hungarian';
@@ -5845,6 +5832,59 @@ class AppLocalizationsEn extends AppLocalizations {
return '$field: enter a value';
}
@override
String get repeater_floodMaxAdvert => 'Advert flood max hops';
@override
String get repeater_floodMaxAdvertHelper =>
'Maximum hops a flooded advert may travel (0-64, default 8)';
@override
String get repeater_floodMaxUnscoped => 'Unscoped flood max hops';
@override
String get repeater_floodMaxUnscopedHelper =>
'Maximum hops for floods without a region scope (0-64, default 64). A low value such as 3 keeps unscoped traffic local.';
@override
String get repeater_floodMaxUnscopedUnset => 'Same as flood max';
@override
String get repeater_rxDelay => 'Receive delay';
@override
String get repeater_rxDelayHelper =>
'Holds flood packets heard with a weak signal before forwarding, so strong-signal paths go first and fewer duplicates are sent (0-20, 0 turns it off).';
@override
String get repeater_cad => 'Channel activity detection';
@override
String get repeater_cadHelper =>
'Listen for activity before transmitting and wait while the channel is busy. Works alongside the interference threshold.';
@override
String get repeater_adcMultiplier => 'Battery voltage calibration';
@override
String get repeater_adcMultiplierHelper =>
'Multiplier for the battery voltage reading (0-10). 0 uses the board\'s default.';
@override
String get repeater_boardSupportNote =>
'Not every board supports this. Unsupported boards reject the change.';
@override
String get repeater_extraSf => 'Extra spreading factors';
@override
String get repeater_extraSfHelper =>
'Up to 3 more spreading factors to listen on at the same time, separated by commas (for example 9,10). Leave empty to turn off.';
@override
String get repeater_lr2021Only =>
'Only for repeaters with an LR2021 radio. Other repeaters don\'t have this setting and reject it.';
@override
String get losMapDetailTooltip => 'Map detail';
@@ -6295,11 +6335,6 @@ class AppLocalizationsEn extends AppLocalizations {
return '$setting: $value is not valid';
}
@override
String repeater_txPowerOutOfRange(String value, int min, int max) {
return 'TX power $value is out of range ($min to $max dBm)';
}
@override
String repeater_prvKeyLengthError(int length) {
return 'Private key must be exactly $length hex characters';