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

@@ -38,7 +38,13 @@ const TrainingGroup = sequelize.define('TrainingGroup', {
allowNull: false,
defaultValue: 0,
comment: 'Order for displaying groups'
}
},
excludeFromQuickDiaryCreate: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: false,
comment: 'If true, group is skipped when suggesting/creating diary dates via quick-create'
},
}, {
tableName: 'training_group',
underscored: true,