Skip to content

Commit

Permalink
Fix: Shrunken Team Dashboard Page to try better loading
Browse files Browse the repository at this point in the history
  • Loading branch information
j-fborges committed Sep 6, 2023
1 parent 1c9a92a commit 4935cb6
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions app/spa/src/pages/Teams/TeamDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,6 @@ const TEAM_DASHBOARD_QUERY = gql`
keys
values
}
biggestFiveLeadTimes: latestDeliveries(orderField: "leadtime", sortDirection: DESC, limit: 5) {
...demand
}
biggestFiveLeadTimesInFourWeeks: latestDeliveries(
orderField: "leadtime"
sortDirection: DESC
limit: 5
startDate: "${format(subWeeks(new Date(), 4), "yyyy-MM-dd")}"
) {
...demand
}
teamConsolidationsWeekly(startDate: $startDate, endDate: $endDate) {
leadTimeP80
consolidationDate
Expand All @@ -83,20 +72,6 @@ const TEAM_DASHBOARD_QUERY = gql`
}
}
}
fragment demand on Demand {
id
leadtime
endDate
product {
id
name
}
project {
id
name
}
}
`

type TeamDashboardDTO = {
Expand Down Expand Up @@ -228,13 +203,13 @@ const TeamDashboard = () => {
</Grid>
)}

<Grid item xs={4}>
<Grid item xs={4} display={'none'}>
<Table
title={t("dashboard.biggestFiveLeadTimes")}
rows={biggestFiveLeadTimesRows}
/>
</Grid>
<Grid item xs={4}>
<Grid item xs={4} display={'none'}>
<Table
title={t("dashboard.biggestFiveLeadTimesInFourWeeks")}
rows={biggestFiveLeadTimesInFourWeeksRows}
Expand Down

0 comments on commit 4935cb6

Please sign in to comment.