{ "CI_job_history_included": false, "approvals": [], "diff_versions": [ { "commits": [ { "authored_date": null, "commit_author_id": null, "committed_date": null, "committer_id": null, "merge_request_commits_metadata_id": 219, "merge_request_diff_id": 117, "message": null, "project_id": null, "relative_order": 0, "sha": null, "trailers": {} }, { "authored_date": null, "commit_author_id": null, "committed_date": null, "committer_id": null, "merge_request_commits_metadata_id": 220, "merge_request_diff_id": 117, "message": null, "project_id": null, "relative_order": 1, "sha": null, "trailers": {} }, { "authored_date": null, "commit_author_id": null, "committed_date": null, "committer_id": null, "merge_request_commits_metadata_id": 221, "merge_request_diff_id": 117, "message": null, "project_id": null, "relative_order": 2, "sha": null, "trailers": {} }, { "authored_date": null, "commit_author_id": null, "committed_date": null, "committer_id": null, "merge_request_commits_metadata_id": 222, "merge_request_diff_id": 117, "message": null, "project_id": null, "relative_order": 3, "sha": null, "trailers": {} }, { "authored_date": null, "commit_author_id": null, "committed_date": null, "committer_id": null, "merge_request_commits_metadata_id": 223, "merge_request_diff_id": 117, "message": null, "project_id": null, "relative_order": 4, "sha": null, "trailers": {} }, { "authored_date": null, "commit_author_id": null, "committed_date": null, "committer_id": null, "merge_request_commits_metadata_id": 224, "merge_request_diff_id": 117, "message": null, "project_id": null, "relative_order": 5, "sha": null, "trailers": {} }, { "authored_date": null, "commit_author_id": null, "committed_date": null, "committer_id": null, "merge_request_commits_metadata_id": 209, "merge_request_diff_id": 117, "message": null, "project_id": null, "relative_order": 6, "sha": null, "trailers": {} } ], "files": [ { "a_mode": "100644", "b_mode": "100644", "binary": false, "deleted_file": false, "diff": "@@ -20,7 +20,7 @@ jobs:\n cache: 'npm'\n \n - name: Install dependencies\n- run: npm ci\n+ run: npm ci --legacy-peer-deps\n \n - name: Check code formatting with Prettier\n run: npx prettier --check \"src/**/*.{ts,html,scss,css,json}\"\n@@ -41,7 +41,7 @@ jobs:\n cache: 'npm'\n \n - name: Install dependencies\n- run: npm ci\n+ run: npm ci --legacy-peer-deps\n \n - name: Run TypeScript compiler\n run: npx tsc --noEmit\n@@ -59,7 +59,7 @@ jobs:\n cache: 'npm'\n \n - name: Install dependencies\n- run: npm ci\n+ run: npm ci --legacy-peer-deps\n \n - name: Run unit tests\n run: npm test -- --watch=false --browsers=ChromeHeadless --code-coverage\n@@ -85,7 +85,7 @@ jobs:\n cache: 'npm'\n \n - name: Install dependencies\n- run: npm ci\n+ run: npm ci --legacy-peer-deps\n \n - name: Build production bundle\n run: npm run build -- --configuration production\n", "encoded_file_path": false, "external_diff_offset": null, "external_diff_size": null, "generated": false, "merge_request_diff_id": 117, "new_file": false, "new_path": null, "old_path": ".github/workflows/pr-validation.yml", "project_id": 35, "relative_order": 0, "renamed_file": false, "too_large": false }, { "a_mode": "100644", "b_mode": "100644", "binary": false, "deleted_file": false, "diff": "@@ -3,14 +3,14 @@ import { UserInputService } from '../../services/user-input-service';\n import { MatCard, MatCardContent } from '@angular/material/card';\n import { CalendarMonth } from '../calendar-month/calendar-month';\n import { CalendarService, SelectedDates } from '../../services/calendar-service';\n-import { CommonModule } from '@angular/common';\n+\n import { MatProgressSpinner } from '@angular/material/progress-spinner';\n import { CalendarSettingsService } from '../../services/calendar-settings-service';\n import { DateCacheService } from '../../services/date-cache.service';\n \n @Component({\n \tselector: 'app-calendar-year',\n-\timports: [MatCard, CalendarMonth, MatCardContent, CommonModule, MatProgressSpinner],\n+\timports: [MatCard, CalendarMonth, MatCardContent, MatProgressSpinner],\n \ttemplateUrl: './calendar-year.html',\n \tstyleUrl: './calendar-year.scss',\n })\n@@ -45,9 +45,10 @@ export class CalendarYear {\n \t\t\tqueueMicrotask(() => {\n \t\t\t\tvoid (async () => {\n \t\t\t\t\tif (this.selectedDates) {\n-\t\t\t\t\t\t// Create a copy to avoid mutating the original signal data\n+\t\t\t\t\t\t// Create a deep copy to avoid mutating the original signal data\n+\t\t\t\t\t\tconst vacationDaysCopy = vacationData.map((vd) => ({ ...vd }));\n \t\t\t\t\t\tconst remainingDays = await this.selectedDates.optimizeVacations(\n-\t\t\t\t\t\t\t{ ...vacationData },\n+\t\t\t\t\t\t\tvacationDaysCopy,\n \t\t\t\t\t\t\tthis.calendarSettingsService,\n \t\t\t\t\t\t\tthis.calendarService,\n \t\t\t\t\t\t\t(progress: number) => {\n", "encoded_file_path": false, "external_diff_offset": null, "external_diff_size": null, "generated": false, "merge_request_diff_id": 117, "new_file": false, "new_path": null, "old_path": "src/app/components/calendar-year/calendar-year.ts", "project_id": 35, "relative_order": 1, "renamed_file": false, "too_large": false }, { "a_mode": "100644", "b_mode": "100644", "binary": false, "deleted_file": false, "diff": "@@ -1,29 +1,40 @@\n
Optimisez vos jours de vacances en fonction des jours fériés et des week-ends !
\n-\t\n+\tOptimisez vos jours\n de vacances en fonction des jours fériés et des week-ends !
\\n-\\t\\n+\\tOptimisez vos jours\n de vacances en fonction des jours fériés et des week-ends !
\\n-\\t\\n+\\t