feat(TrainingGroup): add excludeFromQuickDiaryCreate feature and update related logic
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 44s

- Introduced a new boolean field `excludeFromQuickDiaryCreate` in the TrainingGroup model to control group visibility in quick diary creation.
- Updated the `updateTrainingGroup` service method to handle the new field, allowing for dynamic updates based on user input.
- Enhanced the TrainingTimesTab component to include a checkbox for excluding groups from quick diary creation, improving user interaction.
- Updated localization files to include new strings related to the exclude feature, ensuring clarity in multiple languages.
- Refactored logic in DiaryView and mobile app to consider the new exclusion criteria when suggesting training slots.
This commit is contained in:
Torsten Schulz (local)
2026-05-14 22:47:02 +02:00
parent 83294406a4
commit bf3e1af084
12 changed files with 239 additions and 63 deletions

View File

@@ -25,6 +25,7 @@ data class TrainingGroupDto(
val clubId: Int? = null,
val name: String = "",
val sortOrder: Int = 0,
val excludeFromQuickDiaryCreate: Boolean = false,
val isPreset: Boolean = false,
val presetType: String? = null,
val trainingTimes: List<TrainingTimeDto> = emptyList(),

View File

@@ -2480,6 +2480,8 @@ object MobileStrings {
"trainingTimesTab.delete" to "Löschen",
"trainingTimesTab.edit" to "Bearbeiten",
"trainingTimesTab.editTime" to "Trainingszeit bearbeiten",
"trainingTimesTab.excludeFromQuickDiaryCreate" to "Vom Schnellanlegen (Tagebuch) ausnehmen",
"trainingTimesTab.excludeFromQuickDiarySaveError" to "Die Einstellung konnte nicht gespeichert werden.",
"trainingTimesTab.friday" to "Freitag",
"trainingTimesTab.from" to "Von:",
"trainingTimesTab.loading" to "Lade Trainingszeiten...",
@@ -4967,6 +4969,8 @@ object MobileStrings {
"trainingTimesTab.delete" to "Löschen",
"trainingTimesTab.edit" to "Bearbeiten",
"trainingTimesTab.editTime" to "Trainingszeit bearbeiten",
"trainingTimesTab.excludeFromQuickDiaryCreate" to "Vom Schnellanlegen (Tagebuch) ausnehmen",
"trainingTimesTab.excludeFromQuickDiarySaveError" to "Die Einstellung konnte nicht gespeichert werden.",
"trainingTimesTab.friday" to "Freitag",
"trainingTimesTab.from" to "Von:",
"trainingTimesTab.loading" to "Lade Trainingszeiten...",
@@ -7441,6 +7445,8 @@ object MobileStrings {
"trainingTimesTab.delete" to "Löschen",
"trainingTimesTab.edit" to "Bearbeiten",
"trainingTimesTab.editTime" to "Trainingszeit bearbeiten",
"trainingTimesTab.excludeFromQuickDiaryCreate" to "Vom Schnellanlegen (Tagebuch) ausnehmen",
"trainingTimesTab.excludeFromQuickDiarySaveError" to "Die Einstellung konnte nicht gespeichert werden.",
"trainingTimesTab.friday" to "Freitag",
"trainingTimesTab.from" to "Von:",
"trainingTimesTab.loading" to "Lade Trainingszeiten...",
@@ -9915,6 +9921,8 @@ object MobileStrings {
"trainingTimesTab.delete" to "Löschen",
"trainingTimesTab.edit" to "Bearbeiten",
"trainingTimesTab.editTime" to "Trainingszeit bearbeiten",
"trainingTimesTab.excludeFromQuickDiaryCreate" to "Vom Schnellanlegen (Tagebuch) ausnehmen",
"trainingTimesTab.excludeFromQuickDiarySaveError" to "Die Einstellung konnte nicht gespeichert werden.",
"trainingTimesTab.friday" to "Freitag",
"trainingTimesTab.from" to "Von:",
"trainingTimesTab.loading" to "Lade Trainingszeiten...",
@@ -12389,6 +12397,8 @@ object MobileStrings {
"trainingTimesTab.delete" to "Löschen",
"trainingTimesTab.edit" to "Bearbeiten",
"trainingTimesTab.editTime" to "Trainingszeit bearbeiten",
"trainingTimesTab.excludeFromQuickDiaryCreate" to "Vom Schnellanlegen (Tagebuch) ausnehmen",
"trainingTimesTab.excludeFromQuickDiarySaveError" to "Die Einstellung konnte nicht gespeichert werden.",
"trainingTimesTab.friday" to "Freitag",
"trainingTimesTab.from" to "Von:",
"trainingTimesTab.loading" to "Lade Trainingszeiten...",
@@ -14863,6 +14873,8 @@ object MobileStrings {
"trainingTimesTab.delete" to "Löschen",
"trainingTimesTab.edit" to "Bearbeiten",
"trainingTimesTab.editTime" to "Trainingszeit bearbeiten",
"trainingTimesTab.excludeFromQuickDiaryCreate" to "Vom Schnellanlegen (Tagebuch) ausnehmen",
"trainingTimesTab.excludeFromQuickDiarySaveError" to "Die Einstellung konnte nicht gespeichert werden.",
"trainingTimesTab.friday" to "Freitag",
"trainingTimesTab.from" to "Von:",
"trainingTimesTab.loading" to "Lade Trainingszeiten...",
@@ -17337,6 +17349,8 @@ object MobileStrings {
"trainingTimesTab.delete" to "Löschen",
"trainingTimesTab.edit" to "Bearbeiten",
"trainingTimesTab.editTime" to "Trainingszeit bearbeiten",
"trainingTimesTab.excludeFromQuickDiaryCreate" to "Vom Schnellanlegen (Tagebuch) ausnehmen",
"trainingTimesTab.excludeFromQuickDiarySaveError" to "Die Einstellung konnte nicht gespeichert werden.",
"trainingTimesTab.friday" to "Freitag",
"trainingTimesTab.from" to "Von:",
"trainingTimesTab.loading" to "Lade Trainingszeiten...",
@@ -19811,6 +19825,8 @@ object MobileStrings {
"trainingTimesTab.delete" to "Löschen",
"trainingTimesTab.edit" to "Bearbeiten",
"trainingTimesTab.editTime" to "Trainingszeit bearbeiten",
"trainingTimesTab.excludeFromQuickDiaryCreate" to "Vom Schnellanlegen (Tagebuch) ausnehmen",
"trainingTimesTab.excludeFromQuickDiarySaveError" to "Die Einstellung konnte nicht gespeichert werden.",
"trainingTimesTab.friday" to "Freitag",
"trainingTimesTab.from" to "Von:",
"trainingTimesTab.loading" to "Lade Trainingszeiten...",
@@ -22285,6 +22301,8 @@ object MobileStrings {
"trainingTimesTab.delete" to "Löschen",
"trainingTimesTab.edit" to "Bearbeiten",
"trainingTimesTab.editTime" to "Trainingszeit bearbeiten",
"trainingTimesTab.excludeFromQuickDiaryCreate" to "Vom Schnellanlegen (Tagebuch) ausnehmen",
"trainingTimesTab.excludeFromQuickDiarySaveError" to "Die Einstellung konnte nicht gespeichert werden.",
"trainingTimesTab.friday" to "Freitag",
"trainingTimesTab.from" to "Von:",
"trainingTimesTab.loading" to "Lade Trainingszeiten...",
@@ -24759,6 +24777,8 @@ object MobileStrings {
"trainingTimesTab.delete" to "Löschen",
"trainingTimesTab.edit" to "Bearbeiten",
"trainingTimesTab.editTime" to "Trainingszeit bearbeiten",
"trainingTimesTab.excludeFromQuickDiaryCreate" to "Vom Schnellanlegen (Tagebuch) ausnehmen",
"trainingTimesTab.excludeFromQuickDiarySaveError" to "Die Einstellung konnte nicht gespeichert werden.",
"trainingTimesTab.friday" to "Freitag",
"trainingTimesTab.from" to "Von:",
"trainingTimesTab.loading" to "Lade Trainingszeiten...",
@@ -27233,6 +27253,8 @@ object MobileStrings {
"trainingTimesTab.delete" to "Löschen",
"trainingTimesTab.edit" to "Bearbeiten",
"trainingTimesTab.editTime" to "Trainingszeit bearbeiten",
"trainingTimesTab.excludeFromQuickDiaryCreate" to "Vom Schnellanlegen (Tagebuch) ausnehmen",
"trainingTimesTab.excludeFromQuickDiarySaveError" to "Die Einstellung konnte nicht gespeichert werden.",
"trainingTimesTab.friday" to "Freitag",
"trainingTimesTab.from" to "Von:",
"trainingTimesTab.loading" to "Lade Trainingszeiten...",
@@ -29707,6 +29729,8 @@ object MobileStrings {
"trainingTimesTab.delete" to "Löschen",
"trainingTimesTab.edit" to "Bearbeiten",
"trainingTimesTab.editTime" to "Trainingszeit bearbeiten",
"trainingTimesTab.excludeFromQuickDiaryCreate" to "Vom Schnellanlegen (Tagebuch) ausnehmen",
"trainingTimesTab.excludeFromQuickDiarySaveError" to "Die Einstellung konnte nicht gespeichert werden.",
"trainingTimesTab.friday" to "Freitag",
"trainingTimesTab.from" to "Von:",
"trainingTimesTab.loading" to "Lade Trainingszeiten...",
@@ -32181,6 +32205,8 @@ object MobileStrings {
"trainingTimesTab.delete" to "Löschen",
"trainingTimesTab.edit" to "Bearbeiten",
"trainingTimesTab.editTime" to "Trainingszeit bearbeiten",
"trainingTimesTab.excludeFromQuickDiaryCreate" to "Vom Schnellanlegen (Tagebuch) ausnehmen",
"trainingTimesTab.excludeFromQuickDiarySaveError" to "Die Einstellung konnte nicht gespeichert werden.",
"trainingTimesTab.friday" to "Freitag",
"trainingTimesTab.from" to "Von:",
"trainingTimesTab.loading" to "Lade Trainingszeiten...",
@@ -34655,6 +34681,8 @@ object MobileStrings {
"trainingTimesTab.delete" to "Löschen",
"trainingTimesTab.edit" to "Bearbeiten",
"trainingTimesTab.editTime" to "Trainingszeit bearbeiten",
"trainingTimesTab.excludeFromQuickDiaryCreate" to "Vom Schnellanlegen (Tagebuch) ausnehmen",
"trainingTimesTab.excludeFromQuickDiarySaveError" to "Die Einstellung konnte nicht gespeichert werden.",
"trainingTimesTab.friday" to "Freitag",
"trainingTimesTab.from" to "Von:",
"trainingTimesTab.loading" to "Lade Trainingszeiten...",
@@ -37129,6 +37157,8 @@ object MobileStrings {
"trainingTimesTab.delete" to "Löschen",
"trainingTimesTab.edit" to "Bearbeiten",
"trainingTimesTab.editTime" to "Trainingszeit bearbeiten",
"trainingTimesTab.excludeFromQuickDiaryCreate" to "Vom Schnellanlegen (Tagebuch) ausnehmen",
"trainingTimesTab.excludeFromQuickDiarySaveError" to "Die Einstellung konnte nicht gespeichert werden.",
"trainingTimesTab.friday" to "Freitag",
"trainingTimesTab.from" to "Von:",
"trainingTimesTab.loading" to "Lade Trainingszeiten...",