Add dedicated Add Contact page with manual public key entry

Replace the Contacts add-contact modal sheet and separate menu shortcuts with a unified Add Contact screen supporting manual type/name/public-key entry, clipboard import (meshcore:// URIs, share tokens, and bare 64-hex keys), discovered contacts, and QR scanning.
This commit is contained in:
zjs81 committed 2026-11-21 14:03:18 -07:00
1 parent 3a93481bdf
commit f45b511bcb
35 files changed
+2315 -188

No files matched your search

+12 -1
View File
@@ -4423,5 +4423,16 @@
"chatCompression_profile": "Cyr2Lat profile",
"chatCompression_noStorageId": "Can't change compression until this channel has synced from the radio.",
"chatCompression_saveFailed": "Couldn't save the compression setting. Showing the saved setting.",
"messageMeta_smazCompressed": "SMAZ compressed"
"messageMeta_smazCompressed": "SMAZ compressed",
"addContact_title": "Add Contact",
"addContact_infoBanner": "If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.",
"addContact_contactType": "Contact Type",
"addContact_name": "Name",
"addContact_nameRequired": "Please enter a name",
"addContact_publicKeyHex": "Public Key (hex)",
"addContact_publicKeyRequired": "Please enter a public key",
"addContact_publicKeyInvalid": "Public key must be 64 hex characters (32 bytes)",
"addContact_clipboardKeyLoaded": "Public key filled in. Choose a contact type, enter a name, and tap save.",
"addContact_fromDiscovered": "Add from Discovered Contacts",
"addContact_saveFailed": "Failed to add contact."
}
+66
View File
@@ -12867,6 +12867,72 @@ abstract class AppLocalizations {
/// In en, this message translates to:
/// **'SMAZ compressed'**
String get messageMeta_smazCompressed;
/// No description provided for @addContact_title.
///
/// In en, this message translates to:
/// **'Add Contact'**
String get addContact_title;
/// No description provided for @addContact_infoBanner.
///
/// In en, this message translates to:
/// **'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.'**
String get addContact_infoBanner;
/// No description provided for @addContact_contactType.
///
/// In en, this message translates to:
/// **'Contact Type'**
String get addContact_contactType;
/// No description provided for @addContact_name.
///
/// In en, this message translates to:
/// **'Name'**
String get addContact_name;
/// No description provided for @addContact_nameRequired.
///
/// In en, this message translates to:
/// **'Please enter a name'**
String get addContact_nameRequired;
/// No description provided for @addContact_publicKeyHex.
///
/// In en, this message translates to:
/// **'Public Key (hex)'**
String get addContact_publicKeyHex;
/// No description provided for @addContact_publicKeyRequired.
///
/// In en, this message translates to:
/// **'Please enter a public key'**
String get addContact_publicKeyRequired;
/// No description provided for @addContact_publicKeyInvalid.
///
/// In en, this message translates to:
/// **'Public key must be 64 hex characters (32 bytes)'**
String get addContact_publicKeyInvalid;
/// No description provided for @addContact_clipboardKeyLoaded.
///
/// In en, this message translates to:
/// **'Public key filled in. Choose a contact type, enter a name, and tap save.'**
String get addContact_clipboardKeyLoaded;
/// No description provided for @addContact_fromDiscovered.
///
/// In en, this message translates to:
/// **'Add from Discovered Contacts'**
String get addContact_fromDiscovered;
/// No description provided for @addContact_saveFailed.
///
/// In en, this message translates to:
/// **'Failed to add contact.'**
String get addContact_saveFailed;
}
class _AppLocalizationsDelegate
+36
View File
@@ -7726,4 +7726,40 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
+36
View File
@@ -7697,4 +7697,40 @@ class AppLocalizationsCs extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
+36
View File
@@ -7740,4 +7740,40 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
+36
View File
@@ -7611,4 +7611,40 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
+36
View File
@@ -7718,4 +7718,40 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
+36
View File
@@ -7746,4 +7746,40 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
+36
View File
@@ -7709,4 +7709,40 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
+36
View File
@@ -7729,4 +7729,40 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
+36
View File
@@ -7371,4 +7371,40 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
+36
View File
@@ -7383,4 +7383,40 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
+36
View File
@@ -7685,4 +7685,40 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
+36
View File
@@ -7763,4 +7763,40 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
+36
View File
@@ -7707,6 +7707,42 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
/// The translations for Portuguese, as used in Portugal (`pt_PT`).
+36
View File
@@ -7743,4 +7743,40 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
+36
View File
@@ -7708,4 +7708,40 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
+36
View File
@@ -7702,4 +7702,40 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
+36
View File
@@ -7662,4 +7662,40 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
+36
View File
@@ -7755,4 +7755,40 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}
+36
View File
@@ -7213,4 +7213,40 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get messageMeta_smazCompressed => 'SMAZ compressed';
@override
String get addContact_title => 'Add Contact';
@override
String get addContact_infoBanner =>
'If you know the public key of someone you want to contact, you can add them manually without waiting for them to advert.';
@override
String get addContact_contactType => 'Contact Type';
@override
String get addContact_name => 'Name';
@override
String get addContact_nameRequired => 'Please enter a name';
@override
String get addContact_publicKeyHex => 'Public Key (hex)';
@override
String get addContact_publicKeyRequired => 'Please enter a public key';
@override
String get addContact_publicKeyInvalid =>
'Public key must be 64 hex characters (32 bytes)';
@override
String get addContact_clipboardKeyLoaded =>
'Public key filled in. Choose a contact type, enter a name, and tap save.';
@override
String get addContact_fromDiscovered => 'Add from Discovered Contacts';
@override
String get addContact_saveFailed => 'Failed to add contact.';
}