Add channel management features and localization support

- Implemented functionality to add new channels with a dialog interface.
- Added validation for channel name and secret inputs, ensuring they meet specified criteria.
- Integrated channel creation logic into the connection provider, including automatic slot assignment and MD5 hashing for channel secrets.
- Updated localization files for multiple languages (Spanish, French, Croatian, Italian, German, Slovenian, and English) to include new channel-related strings.
- Enhanced the contacts tab to display the add channel button conditionally based on device connection status.
- Refactored the contacts tab to improve readability and maintainability.
This commit is contained in:
Janez T
2025-10-28 10:17:02 +01:00
parent 6b15006d4e
commit e6289199ba
20 changed files with 1092 additions and 122 deletions

View File

@@ -1937,4 +1937,55 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get recentMessages => 'Mensajes Recientes';
@override
String get addChannel => 'Agregar Canal';
@override
String get channelName => 'Nombre del Canal';
@override
String get channelNameHint => 'ej. Equipo de Rescate Alfa';
@override
String get channelSecret => 'Contraseña del Canal';
@override
String get channelSecretHint => 'Contraseña compartida para este canal';
@override
String get channelSecretHelp =>
'Esta contraseña debe compartirse con todos los miembros del equipo que necesiten acceso a este canal';
@override
String get channelNameRequired => 'El nombre del canal es obligatorio';
@override
String get channelNameTooLong =>
'El nombre del canal debe tener 31 caracteres o menos';
@override
String get channelSecretRequired => 'La contraseña del canal es obligatoria';
@override
String get channelSecretTooLong =>
'La contraseña del canal debe tener 32 caracteres o menos';
@override
String get invalidAsciiCharacters => 'Solo se permiten caracteres ASCII';
@override
String get channelCreatedSuccessfully => 'Canal creado exitosamente';
@override
String channelCreationFailed(String error) {
return 'Error al crear el canal: $error';
}
@override
String get allChannelSlotsInUse =>
'Todos los espacios de canales están en uso (máximo 39 canales personalizados)';
@override
String get createChannel => 'Crear Canal';
}