Max activity participants (#2871)

* Use participants star for level bar

* Remove progress bar drop shadow

* Do not allow activities with >50 participants

* Fix intl_en comma placement

* Add validation to activity editing

* Formatting

---------

Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
This commit is contained in:
Kelrap 2025-05-22 14:33:57 -04:00 committed by GitHub
parent bc77056b96
commit 6a76a27312
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 0 deletions

View file

@ -4946,6 +4946,7 @@
"searchChats": "Search chats",
"selectChats": "Select chats",
"selectChatToStart": "Complete! Select a chat to start",
"maxFifty": "Max 50",
"configureSpace": "Configure space",
"pinMessages": "Pin messages",
"setJoinRules": "Set join rules",

View file

@ -176,6 +176,9 @@ class ActivityGeneratorView extends StatelessWidget {
if (n == null || n <= 0) {
return l10n.mustBeInteger;
}
if (n > 50) {
return l10n.maxFifty;
}
return null;
},
onChanged: (val) => controller

View file

@ -270,6 +270,10 @@ class ActivitySuggestionDialogState extends State<ActivitySuggestionDialog> {
return L10n.of(context)
.pleaseEnterInt;
}
if (val > 50) {
return L10n.of(context)
.maxFifty;
}
} catch (e) {
return L10n.of(context)
.pleaseEnterANumber;