From d36e943a13c23456c512403e844faf37d981477e Mon Sep 17 00:00:00 2001 From: Maria Katrin Bonde Date: Fri, 10 Jan 2025 09:51:35 +0100 Subject: [PATCH] tried to remove all changes to MockConsultants --- frontend/mockdata/mockData.ts | 32 +++++++++++++++++++ .../src/components/Forecast/ForecastTable.tsx | 4 +-- .../Forecast/TransformWeekDataToMonth.ts | 1 - 3 files changed, 34 insertions(+), 3 deletions(-) diff --git a/frontend/mockdata/mockData.ts b/frontend/mockdata/mockData.ts index 80b9cf8b..80ef4c8d 100644 --- a/frontend/mockdata/mockData.ts +++ b/frontend/mockdata/mockData.ts @@ -100,6 +100,38 @@ export const MockConsultants: ConsultantReadModel[] = [ mockForecast6, ], }, +]; + +export const MockConsultantsForForecast: ConsultantReadModel[] = [ + { + id: 1, + name: "Test Consultant", + email: "test@company.io", + competences: [{ id: "development", name: "Utvikling" }], + department: { id: "mydepartment", name: "My Department" }, + bookings: [ + { + year: 2023, + weekNumber: 10, + dateString: "", + bookingModel: MockWeeklyBookingReadModel, + sortableWeek: 202310, + }, + ], + yearsOfExperience: 23, + detailedBooking: [], + isOccupied: true, + graduationYear: 2010, + degree: Degree.Bachelor, + forecasts: [ + mockForecast1, + mockForecast2, + mockForecast3, + mockForecast4, + mockForecast5, + mockForecast6, + ], + }, { id: 2, name: "2test Consultant", diff --git a/frontend/src/components/Forecast/ForecastTable.tsx b/frontend/src/components/Forecast/ForecastTable.tsx index 3ecc15f3..b7b183c6 100644 --- a/frontend/src/components/Forecast/ForecastTable.tsx +++ b/frontend/src/components/Forecast/ForecastTable.tsx @@ -7,7 +7,7 @@ import { Calendar } from "react-feather"; import React, { useContext } from "react"; import { FilteredContext } from "@/hooks/ConsultantFilterProvider"; import ForecastRows from "./ForecastRows"; -import { MockConsultants } from "../../../mockdata/mockData"; +import { MockConsultantsForForecast } from "../../../mockdata/mockData"; const months = [ "Januar", @@ -127,7 +127,7 @@ export default function ForecastTable() { - {MockConsultants.map((consultant) => ( + {MockConsultantsForForecast.map((consultant) => (