From 7f730de7185f27a27c9a46b57ac772116314a240 Mon Sep 17 00:00:00 2001 From: Kelrap Date: Mon, 9 Jun 2025 12:59:31 -0400 Subject: [PATCH 1/2] Updates chat creation buttons to match functionality - Space view button text changed to "Group Chat" - Chat list view button icon changed to message icon - Chat list view button text changed to "Direct Message" - DM creation title changed to "New direct message" --- assets/l10n/intl_en.arb | 5 ++++- lib/pages/chat_list/chat_list_view.dart | 10 ++++++++-- lib/pages/chat_list/space_view.dart | 2 +- lib/pages/new_private_chat/new_private_chat_view.dart | 5 ++++- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/assets/l10n/intl_en.arb b/assets/l10n/intl_en.arb index e12ec2356..d5ffaae9d 100644 --- a/assets/l10n/intl_en.arb +++ b/assets/l10n/intl_en.arb @@ -5008,5 +5008,8 @@ "getStartedComplete": "You've completed this section!\nKeep exploring our amazing features by chatting with friends!", "getStartedFriendsComplete": "Woohoo! You've got friends! 😉", "getStartedBotChatButton": "Start chatting!", - "getStartedFriendsButton": "Invite a friend" + "getStartedFriendsButton": "Invite a friend", + "groupChat": "Group Chat", + "directMessage": "Direct Message", + "newDirectMessage": "New direct message" } diff --git a/lib/pages/chat_list/chat_list_view.dart b/lib/pages/chat_list/chat_list_view.dart index 9b090f207..541731cc8 100644 --- a/lib/pages/chat_list/chat_list_view.dart +++ b/lib/pages/chat_list/chat_list_view.dart @@ -71,9 +71,15 @@ class ChatListView extends StatelessWidget { // Pangea# ? FloatingActionButton.extended( onPressed: () => context.go('/rooms/newprivatechat'), - icon: const Icon(Icons.add_outlined), + // #Pangea + icon: const Icon(Icons.message_outlined), + // icon: const Icon(Icons.add_outlined), + // Pangea# label: Text( - L10n.of(context).chat, + // #Pangea + L10n.of(context).directMessage, + // L10n.of(context).chat, + // Pangea# overflow: TextOverflow.fade, ), ) diff --git a/lib/pages/chat_list/space_view.dart b/lib/pages/chat_list/space_view.dart index d6f964a22..6f60cef4b 100644 --- a/lib/pages/chat_list/space_view.dart +++ b/lib/pages/chat_list/space_view.dart @@ -686,7 +686,7 @@ class _SpaceViewState extends State { // label: Text(L10n.of(context).group), onPressed: () => context.go("/rooms/newgroup?space=${widget.spaceId}"), - label: Text(L10n.of(context).chat), + label: Text(L10n.of(context).groupChat), // Pangea# icon: const Icon(Icons.group_add_outlined), ) diff --git a/lib/pages/new_private_chat/new_private_chat_view.dart b/lib/pages/new_private_chat/new_private_chat_view.dart index b850ea916..171691af5 100644 --- a/lib/pages/new_private_chat/new_private_chat_view.dart +++ b/lib/pages/new_private_chat/new_private_chat_view.dart @@ -30,7 +30,10 @@ class NewPrivateChatView extends StatelessWidget { appBar: AppBar( scrolledUnderElevation: 0, leading: const Center(child: BackButton()), - title: Text(L10n.of(context).newChat), + // #Pangea + title: Text(L10n.of(context).newDirectMessage), + // title: Text(L10n.of(context).newChat), + // Pangea# backgroundColor: theme.scaffoldBackgroundColor, // #Pangea // actions: [ From ccf77b70dd6e540d8b1cdc40fa6943199951be20 Mon Sep 17 00:00:00 2001 From: ggurdin Date: Mon, 9 Jun 2025 14:30:07 -0400 Subject: [PATCH 2/2] chore: update chat icon --- lib/pages/chat_list/chat_list_view.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/chat_list/chat_list_view.dart b/lib/pages/chat_list/chat_list_view.dart index 541731cc8..3351a67fe 100644 --- a/lib/pages/chat_list/chat_list_view.dart +++ b/lib/pages/chat_list/chat_list_view.dart @@ -72,7 +72,7 @@ class ChatListView extends StatelessWidget { ? FloatingActionButton.extended( onPressed: () => context.go('/rooms/newprivatechat'), // #Pangea - icon: const Icon(Icons.message_outlined), + icon: const Icon(Icons.chat_bubble_outline), // icon: const Icon(Icons.add_outlined), // Pangea# label: Text(