-
- Downloads
feat(ProfileType): Handling profileTypes modifications over time
There can only be one profileType per month. A profileType can be active over many months. ProfileTypes are now set on the 1st of the month. If a profileType is being completed for the first time, the profileType will be linked to the current month. Before saving a new profileType, check for other occurences on the given time period. If occurences are found delete them, new profileType overrides them. Introduce a new migration to make sure no multiple profileTypes can exist over the same month.
Showing
- src/components/Analysis/AnalysisConsumption.tsx 1 addition, 1 deletionsrc/components/Analysis/AnalysisConsumption.tsx
- src/components/ProfileType/ProfileTypeFinished.tsx 47 additions, 10 deletionssrc/components/ProfileType/ProfileTypeFinished.tsx
- src/components/ProfileType/ProfileTypeFormDateSelection.tsx 249 additions, 0 deletionssrc/components/ProfileType/ProfileTypeFormDateSelection.tsx
- src/components/ProfileType/ProfileTypeNavigation.tsx 2 additions, 2 deletionssrc/components/ProfileType/ProfileTypeNavigation.tsx
- src/components/ProfileType/ProfileTypeView.tsx 25 additions, 9 deletionssrc/components/ProfileType/ProfileTypeView.tsx
- src/components/ProfileType/profileTypeForm.scss 72 additions, 0 deletionssrc/components/ProfileType/profileTypeForm.scss
- src/enum/profileType.enum.ts 3 additions, 1 deletionsrc/enum/profileType.enum.ts
- src/locales/fr.json 4 additions, 0 deletionssrc/locales/fr.json
- src/migrations/migration.data.ts 32 additions, 0 deletionssrc/migrations/migration.data.ts
- src/models/profileType.model.ts 2 additions, 1 deletionsrc/models/profileType.model.ts
- src/services/profileType.service.spec.ts 95 additions, 60 deletionssrc/services/profileType.service.spec.ts
- src/services/profileType.service.ts 2 additions, 229 deletionssrc/services/profileType.service.ts
- src/services/profileTypeEntity.service.ts 67 additions, 2 deletionssrc/services/profileTypeEntity.service.ts
- src/services/profileTypeForm.service.ts 142 additions, 2 deletionssrc/services/profileTypeForm.service.ts
Loading
Please register or sign in to comment