fix(#33): make signal indicator tappable when gray, explain no-neighbors state

pull/44/head v1.1.0-rc.3
Strycher 1 month ago
parent 3dce8b4545
commit 54016b1d65

@ -2321,6 +2321,7 @@
"settings_gpxExportShareText": "Map data exported from meshcore-open",
"settings_gpxExportShareSubject": "meshcore-open GPX map data export",
"snrIndicator_nearByRepeaters": "Nearby Repeaters",
"snrIndicator_noNeighbors": "No neighbors heard currently — messages still broadcast and route.",
"snrIndicator_lastSeen": "Last seen",
"contactsSettings_title": "Contacts settings",
"contactsSettings_autoAddTitle": "Automatic Discovery",

@ -7066,6 +7066,12 @@ abstract class AppLocalizations {
/// **'Nearby Repeaters'**
String get snrIndicator_nearByRepeaters;
/// No description provided for @snrIndicator_noNeighbors.
///
/// In en, this message translates to:
/// **'No neighbors heard currently — messages still broadcast and route.'**
String get snrIndicator_noNeighbors;
/// No description provided for @snrIndicator_lastSeen.
///
/// In en, this message translates to:

@ -4126,6 +4126,10 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => 'Близки повтарящи се устройства';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => 'Последно видян';

@ -4140,6 +4140,10 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => 'In der Nähe befindliche Repeater';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => 'Zuletzt gesehen';

@ -4057,6 +4057,10 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => 'Nearby Repeaters';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => 'Last seen';

@ -4126,6 +4126,10 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => 'Repetidores cercanos';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => 'Visto por última vez';

@ -4155,6 +4155,10 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => 'Répéteurs à proximité';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => 'Dernière fois vu';

@ -4145,6 +4145,10 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => 'Helyszíni erősítők';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => 'Utoljára, amikor látták';

@ -4134,6 +4134,10 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => 'Ripetitori vicini';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => 'Ultimo accesso';

@ -3920,6 +3920,10 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => '近くの電波中継局';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => '最後に確認された場所';

@ -3921,6 +3921,10 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => '주변의 중계기';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => '마지막으로 목격';

@ -4112,6 +4112,10 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => 'Nabije herhalingseenheden';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => 'Laatst gezien';

@ -4150,6 +4150,10 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => 'Pobliskie przekaźniki';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => 'Ostatnio widziany';

@ -4123,6 +4123,10 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => 'Repetidores Próximos';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => 'Visto pela última vez';

@ -4141,6 +4141,10 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => 'Ближайшие ретрансляторы';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => 'Последний раз видели';

@ -4109,6 +4109,10 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => 'Miestne opakovače';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => 'Naposledy videný';

@ -4106,6 +4106,10 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => 'Bližnji ponovitelji';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => 'Zadnjič videno';

@ -4079,6 +4079,10 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => 'Närliggande uppreparstationer';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => 'Senast sedd';

@ -4140,6 +4140,10 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => 'Найближчі ретранслятори';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => 'Останній раз бачили';

@ -3801,6 +3801,10 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get snrIndicator_nearByRepeaters => '附近的重复器';
@override
String get snrIndicator_noNeighbors =>
'No neighbors heard currently — messages still broadcast and route.';
@override
String get snrIndicator_lastSeen => '最近访问';

@ -4,6 +4,7 @@ import 'package:latlong2/latlong.dart';
import '../connector/meshcore_connector.dart';
import '../connector/meshcore_protocol.dart';
import '../l10n/l10n.dart';
import '../helpers/snack_bar_builder.dart';
import '../models/contact.dart';
import 'signal_ui.dart';
@ -146,9 +147,16 @@ class _SNRIndicatorState extends State<SNRIndicator> {
return ConstrainedBox(
constraints: const BoxConstraints(minWidth: 40, minHeight: 40),
child: InkWell(
onTap: directRepeater != null
? () => _showFullPathDialog(context, directBestRepeaters)
: null,
onTap: () {
if (directRepeater != null) {
_showFullPathDialog(context, directBestRepeaters);
} else {
showDismissibleSnackBar(
context,
content: Text(context.l10n.snrIndicator_noNeighbors),
);
}
},
borderRadius: BorderRadius.circular(8),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 8),

@ -1,86 +1,103 @@
{
"bg": [
"settings_messageSettings",
"settings_messageSettingsSubtitle"
"settings_messageSettingsSubtitle",
"snrIndicator_noNeighbors"
],
"de": [
"settings_messageSettings",
"settings_messageSettingsSubtitle"
"settings_messageSettingsSubtitle",
"snrIndicator_noNeighbors"
],
"es": [
"settings_messageSettings",
"settings_messageSettingsSubtitle"
"settings_messageSettingsSubtitle",
"snrIndicator_noNeighbors"
],
"fr": [
"settings_messageSettings",
"settings_messageSettingsSubtitle"
"settings_messageSettingsSubtitle",
"snrIndicator_noNeighbors"
],
"hu": [
"settings_messageSettings",
"settings_messageSettingsSubtitle"
"settings_messageSettingsSubtitle",
"snrIndicator_noNeighbors"
],
"it": [
"settings_messageSettings",
"settings_messageSettingsSubtitle"
"settings_messageSettingsSubtitle",
"snrIndicator_noNeighbors"
],
"ja": [
"settings_messageSettings",
"settings_messageSettingsSubtitle"
"settings_messageSettingsSubtitle",
"snrIndicator_noNeighbors"
],
"ko": [
"settings_messageSettings",
"settings_messageSettingsSubtitle"
"settings_messageSettingsSubtitle",
"snrIndicator_noNeighbors"
],
"nl": [
"settings_messageSettings",
"settings_messageSettingsSubtitle"
"settings_messageSettingsSubtitle",
"snrIndicator_noNeighbors"
],
"pl": [
"settings_messageSettings",
"settings_messageSettingsSubtitle"
"settings_messageSettingsSubtitle",
"snrIndicator_noNeighbors"
],
"pt": [
"settings_messageSettings",
"settings_messageSettingsSubtitle"
"settings_messageSettingsSubtitle",
"snrIndicator_noNeighbors"
],
"ru": [
"settings_messageSettings",
"settings_messageSettingsSubtitle"
"settings_messageSettingsSubtitle",
"snrIndicator_noNeighbors"
],
"sk": [
"settings_messageSettings",
"settings_messageSettingsSubtitle"
"settings_messageSettingsSubtitle",
"snrIndicator_noNeighbors"
],
"sl": [
"settings_messageSettings",
"settings_messageSettingsSubtitle"
"settings_messageSettingsSubtitle",
"snrIndicator_noNeighbors"
],
"sv": [
"settings_messageSettings",
"settings_messageSettingsSubtitle"
"settings_messageSettingsSubtitle",
"snrIndicator_noNeighbors"
],
"uk": [
"settings_messageSettings",
"settings_messageSettingsSubtitle"
"settings_messageSettingsSubtitle",
"snrIndicator_noNeighbors"
],
"zh": [
"settings_messageSettings",
"settings_messageSettingsSubtitle"
"settings_messageSettingsSubtitle",
"snrIndicator_noNeighbors"
]
}

Loading…
Cancel
Save

Powered by TurnKey Linux.