Add chess games over channel data

Play and watch chess on a channel via the Chess games entry in the
channel overflow menu. Moves travel as GRP_DATA packets (type 0x0100)
carrying the full position and a hash-chain value for authentication.
Includes translations for all locales.
This commit is contained in:
zjs81 committed 2026-11-22 17:00:35 -07:00
1 parent 9ac915bdf2
commit 185b026a0d
66 files changed
+15314 -25

No files matched your search

+10
View File
@@ -11,6 +11,7 @@ import 'package:image_picker/image_picker.dart';
import 'package:provider/provider.dart';
import '../connector/meshcore_connector.dart';
import '../games/chess/ui/chess_games_sheet.dart';
import '../models/community.dart';
import '../storage/community_store.dart';
import '../utils/platform_info.dart';
@@ -594,6 +595,8 @@ class _ChannelChatScreenState extends State<ChannelChatScreen>
onSelected: (value) {
final connector = context.read<MeshCoreConnector>();
switch (value) {
case 'games':
showChessGamesSheet(context, widget.channel);
case 'messageFilter':
_toggleChannelFiltering();
case 'notifications':
@@ -636,6 +639,13 @@ class _ChannelChatScreenState extends State<ChannelChatScreen>
.getChannelNotificationMode(muteKey);
final readOnly = isRadioReadOnly(context.read<MeshCoreConnector>());
return [
PopupMenuItem(
value: 'games',
child: _menuRow(
Icons.sports_esports_outlined,
chessMenuLabel(context, widget.channel),
),
),
if (_messageFilter case final filter? when filter.settings.enabled)
PopupMenuItem(
value: 'messageFilter',