diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 8e94bea3d..2c514961c 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -171,6 +171,7 @@ "slotEntryTypeNormal": "Normal", "slotEntryTypeDropset": "Dropset", "slotEntryTypeMyo": "Myo", + "slotEntryTypeWarmup": "Warmup", "slotEntryTypePartial": "Partial", "slotEntryTypeForced": "Forced", "slotEntryTypeTut": "Time under Tension", diff --git a/lib/models/workouts/set_config_data.g.dart b/lib/models/workouts/set_config_data.g.dart index 6f22528b9..e415005b7 100644 --- a/lib/models/workouts/set_config_data.g.dart +++ b/lib/models/workouts/set_config_data.g.dart @@ -83,6 +83,7 @@ Map _$SetConfigDataToJson(SetConfigData instance) => . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -27,13 +27,15 @@ import 'package:wger/models/workouts/weight_unit.dart'; part 'slot_entry.g.dart'; -enum SlotEntryType { normal, dropset, myo, partial, forced, tut, iso, jump } +enum SlotEntryType { normal, warmup, dropset, myo, partial, forced, tut, iso, jump } extension SlotEntryTypeExtension on SlotEntryType { String i18Label(AppLocalizations i18n) { switch (this) { case SlotEntryType.normal: return i18n.slotEntryTypeNormal; + case SlotEntryType.warmup: + return i18n.slotEntryTypeWarmup; case SlotEntryType.dropset: return i18n.slotEntryTypeDropset; case SlotEntryType.myo: diff --git a/lib/models/workouts/slot_entry.g.dart b/lib/models/workouts/slot_entry.g.dart index e17c05a15..5fb23dc78 100644 --- a/lib/models/workouts/slot_entry.g.dart +++ b/lib/models/workouts/slot_entry.g.dart @@ -102,6 +102,7 @@ Map _$SlotEntryToJson(SlotEntry instance) => { const _$SlotEntryTypeEnumMap = { SlotEntryType.normal: 'normal', + SlotEntryType.warmup: 'warmup', SlotEntryType.dropset: 'dropset', SlotEntryType.myo: 'myo', SlotEntryType.partial: 'partial', diff --git a/test/core/validators_test.mocks.dart b/test/core/validators_test.mocks.dart index b89be4522..aa892c4f5 100644 --- a/test/core/validators_test.mocks.dart +++ b/test/core/validators_test.mocks.dart @@ -723,6 +723,17 @@ class MockAppLocalizations extends _i1.Mock implements _i2.AppLocalizations { ) as String); + @override + String get slotEntryTypeWarmup => + (super.noSuchMethod( + Invocation.getter(#slotEntryTypeWarmup), + returnValue: _i3.dummyValue( + this, + Invocation.getter(#slotEntryTypeWarmup), + ), + ) + as String); + @override String get slotEntryTypePartial => (super.noSuchMethod( @@ -3832,6 +3843,28 @@ class MockAppLocalizations extends _i1.Mock implements _i2.AppLocalizations { ) as String); + @override + String get productNotFoundOpenFoodFacts => + (super.noSuchMethod( + Invocation.getter(#productNotFoundOpenFoodFacts), + returnValue: _i3.dummyValue( + this, + Invocation.getter(#productNotFoundOpenFoodFacts), + ), + ) + as String); + + @override + String get addToOpenFoodFacts => + (super.noSuchMethod( + Invocation.getter(#addToOpenFoodFacts), + returnValue: _i3.dummyValue( + this, + Invocation.getter(#addToOpenFoodFacts), + ), + ) + as String); + @override String exerciseNr(String? nr) => (super.noSuchMethod(