Add Czech, in-chat search, typed-hash path trace and contact sharing

- Czech UI locale (app_cs.arb), selectable in the language picker and as a
  message translation language; language names added to every locale.
- Fix wrong language names: Slovak shown as Slovenian in it/ja/pt/sl,
  garbled Slovak/Bulgarian in pl, Ukrainian in ru, Hungarian in ko/zh.
- Search inside DM and channel chats across the full stored history, with
  highlighted matches; filtered channel messages are excluded.
- Path trace by typed hashes (e.g. A1,B2,C3) from the Contacts and map
  menus, without needing node locations; the map trace panel can hand its
  hops to it.
- Share contacts in chats using the official app's <pubkey:type:name>
  format; received cards have a one-tap Add contact button that reuses the
  QR card import path.
- Translations for all new strings in every locale; docs updated.
This commit is contained in:
zjs81 committed 2026-11-07 22:31:14 -07:00
1 parent e57f97616c
commit c939f7a29c
67 files changed
+17245 -381

No files matched your search

+30
View File
@@ -39,6 +39,7 @@ import '../widgets/quick_switch_bar.dart';
import '../widgets/sync_progress_overlay.dart';
import '../icons/los_icon.dart';
import 'channels_screen.dart';
import 'manual_path_trace_screen.dart';
import 'chat_screen.dart';
import 'contacts_screen.dart';
import '../theme/mesh_theme.dart';
@@ -781,6 +782,17 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
),
),
),
if (!_isBuildingPathTrace)
PopupMenuItem(
child: Row(
children: [
const Icon(Icons.radar),
const SizedBox(width: 8),
Text(context.l10n.manualTrace_menuItem),
],
),
onTap: () => ManualPathTraceScreen.open(context),
),
if (!_isBuildingPathTrace)
PopupMenuItem(
child: Row(
@@ -4005,6 +4017,18 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
});
}
void _openManualEntry() {
final text = PathHelper.splitPathBytes(
_pathTrace,
context.read<MeshCoreConnector>().pathHashByteWidth,
).map(PathHelper.formatHopHex).join(',');
ManualPathTraceScreen.open(
context,
initialText: text,
initialReturnPath: _traceDraft.returnPath,
);
}
void _openTraceResult({required bool reuseLastResult}) {
final draft = _traceDraft;
final path = Uint8List.fromList(_pathTrace);
@@ -4131,6 +4155,12 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
icon: const Icon(Icons.undo),
label: Text(l10n.map_removeLast),
),
TextButton.icon(
onPressed: _openManualEntry,
style: TextButton.styleFrom(minimumSize: buttonSize),
icon: const Icon(Icons.keyboard),
label: Text(l10n.manualTrace_enterHashes),
),
TextButton.icon(
onPressed: _clearPath,
style: TextButton.styleFrom(minimumSize: buttonSize),