Skip to content

Commit

Permalink
Merge pull request #200 from pangeachat/Adjusted-Learning-Settings
Browse files Browse the repository at this point in the history
Adjusted learning settings
  • Loading branch information
ggurdin authored May 15, 2024
2 parents 0d372cb + 09e4feb commit 0bb5361
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
10 changes: 5 additions & 5 deletions assets/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2504,7 +2504,7 @@
"type": "text",
"placeholders": {}
},
"interactiveTranslatorAllowedDesc": "Students can choose whether to use translation assistance in space group chats in Settings > Learning Settings.",
"interactiveTranslatorAllowedDesc": "Students can choose whether to use translation assistance in space group chats in Main Menu > My Learning Settings.",
"@interactiveTranslatorAllowedDesc": {
"type": "text",
"placeholders": {}
Expand Down Expand Up @@ -2984,9 +2984,9 @@
"errorDisableLanguageAssistanceClassDesc": "Translation assistance and grammar assistance are turned off for the space that this chat is in.",
"itIsDisabled": "Interactive Translation is disabled",
"igcIsDisabled": "Interactive Grammar Checking is disabled",
"goToLearningSettings": "Go to Learning Settings",
"goToLearningSettings": "Go to My Learning Settings",
"error405Title": "Languages not set",
"error405Desc": "Please set your languages in Settings > Learning Settings",
"error405Desc": "Please set your languages in Main Menu > My Learning Settings.",
"loginOrSignup": "Sign in with",
"@loginOrSignup": {
"type": "text",
Expand Down Expand Up @@ -3049,7 +3049,7 @@
"type": "text",
"placeholders": {}
},
"learningSettings": "Learning Settings",
"learningSettings": "My Learning Settings",
"classNameRequired": "Please enter a space name",
"@classNameRequired": {
"type": "text",
Expand Down Expand Up @@ -3947,4 +3947,4 @@
"noPaymentInfo": "No payment info necessary!",
"updatePhoneOS": "You may need to update your device's OS version.",
"wordsPerMinute": "Words per minute"
}
}
16 changes: 16 additions & 0 deletions lib/pages/chat_list/client_chooser_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,18 @@ class ClientChooserButton extends StatelessWidget {
],
),
),
// #Pangea
PopupMenuItem(
value: SettingsAction.learning,
child: Row(
children: [
const Icon(Icons.psychology_outlined),
const SizedBox(width: 18),
Expanded(child: Text(L10n.of(context)!.learningSettings)),
],
),
),
// Pangea#
PopupMenuItem(
value: SettingsAction.settings,
child: Row(
Expand Down Expand Up @@ -382,6 +394,9 @@ class ClientChooserButton extends StatelessWidget {
case SettingsAction.setStatus:
controller.setStatus();
// #Pangea
case SettingsAction.learning:
context.go('/rooms/settings/learning');
break;
case SettingsAction.newClass:
context.go('/rooms/newspace');
break;
Expand Down Expand Up @@ -493,6 +508,7 @@ enum SettingsAction {
settings,
archive,
// #Pangea
learning,
joinWithClassCode,
classAnalytics,
myAnalytics,
Expand Down
8 changes: 0 additions & 8 deletions lib/pages/settings/settings_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,6 @@ class SettingsView extends StatelessWidget {
trailing: const Icon(Icons.chevron_right_outlined),
),
// #Pangea
ListTile(
leading: const Icon(Icons.account_circle_outlined),
title: Text(L10n.of(context)!.learningSettings),
onTap: () => context.go('/rooms/settings/learning'),
trailing: const Icon(
Icons.chevron_right_outlined,
),
),
ListTile(
leading: const Icon(Icons.account_circle_outlined),
title: Text(L10n.of(context)!.subscriptionManagement),
Expand Down

0 comments on commit 0bb5361

Please sign in to comment.