Skip to content

Commit

Permalink
tried to remove all changes to MockConsultants
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaBonde committed Jan 10, 2025
1 parent 2fe421e commit d36e943
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
32 changes: 32 additions & 0 deletions frontend/mockdata/mockData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,38 @@ export const MockConsultants: ConsultantReadModel[] = [
mockForecast6,
],
},
];

export const MockConsultantsForForecast: ConsultantReadModel[] = [
{
id: 1,
name: "Test Consultant",
email: "[email protected]",
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",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Forecast/ForecastTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -127,7 +127,7 @@ export default function ForecastTable() {
</tr>
</thead>
<tbody>
{MockConsultants.map((consultant) => (
{MockConsultantsForForecast.map((consultant) => (
<ForecastRows
key={consultant.id}
consultant={consultant}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ function transformToMonthlyData(weeklyData: BookedHoursPerWeek[]) {
addToMonthlyData(secondaryMonthKey, secondaryBookingModel!);
}
});
console.log("monthlyData", Object.values(monthlyData));
return Object.values(monthlyData);
}

Expand Down

0 comments on commit d36e943

Please sign in to comment.