From 3cfe97059d3e2c479344727d33f3656a5e9667ab Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Oct 2025 12:06:59 -0400 Subject: [PATCH] Add "Share course" tooltip to ShareRoomButton (#4375) * Initial plan * Add 'Share course' tooltip to ShareRoomButton Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com> * Move shareCourse localization to end of intl_en.arb Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com> --- lib/l10n/intl_en.arb | 7 ++++++- lib/pangea/common/widgets/share_room_button.dart | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index ff2c15c08..653636aac 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -5315,5 +5315,10 @@ "leaveDesc": "Leave this space and all chats within it", "selectAll": "Select all", "deselectAll": "Deselect all", - "newMessageInPangeaChat": "💬 New message in Pangea Chat" + "newMessageInPangeaChat": "💬 New message in Pangea Chat", + "shareCourse": "Share course", + "@shareCourse": { + "type": "String", + "placeholders": {} + } } diff --git a/lib/pangea/common/widgets/share_room_button.dart b/lib/pangea/common/widgets/share_room_button.dart index 21ff02189..04ec59091 100644 --- a/lib/pangea/common/widgets/share_room_button.dart +++ b/lib/pangea/common/widgets/share_room_button.dart @@ -26,6 +26,7 @@ class ShareRoomButton extends StatelessWidget { return PopupMenuButton( useRootNavigator: true, + tooltip: L10n.of(context).shareCourse, child: const Icon(Symbols.upload), onSelected: (value) async { final spaceCode = room.classCode!;