Skip to content

Commit

Permalink
feat: add lt charts to status report
Browse files Browse the repository at this point in the history
  • Loading branch information
lhguerra committed Dec 9, 2024
1 parent 2baaae2 commit 01e5dda
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app/spa/src/components/Projects/ProjectDemandsCharts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ const ProjectDemandsCharts = ({
: []

return (
<Grid container spacing={2} rowSpacing={8} sx={{ marginTop: 4 }}>
<Grid container spacing={2} rowSpacing={8}>
<ChartGridItem
title={t(
"chartsTab.projectCharts.operational_math_risk_evolution_chart"
Expand Down
55 changes: 43 additions & 12 deletions app/spa/src/pages/Projects/StatusReport.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { gql, useQuery } from "@apollo/client"
import { Box } from "@mui/material"
import { Box, Grid } from "@mui/material"
import { useParams } from "react-router-dom"
import {
ProjectPage,
PROJECT_STANDARD_FRAGMENT,
ProjectPage,
} from "../../components/Projects/ProjectPage"
import { Project } from "../../modules/project/project.types"
import ActiveContractsHoursTicket from "../../modules/contracts/ActiveContractsHoursTicket"
import ProjectBurnup from "./Charts/ProjectBurnup"
import ProjectHoursBurnup from "./Charts/ProjectHoursBurnup"
import ProjectLeadTime from "./Charts/ProjectLeadTime"
import ProjectLeadTimeControlChart from "./Charts/ProjectLeadTimeControlChart"

export const QUERY = gql`
query ProjectStatusReport($id: ID!) {
Expand All @@ -31,6 +33,37 @@ export const QUERY = gql`
idealBurn
currentBurn
}
demandsFinishedWithLeadtime {
id
leadtime
externalId
}
lastProjectConsolidationsWeekly {
leadTimeP65
leadTimeP80
leadTimeP95
}
projectConsolidationsWeekly {
leadTimeP80
projectQuality
consolidationDate
operationalRisk
codeNeededBlocksCount
codeNeededBlocksPerDemand
flowEfficiency
hoursPerDemand
projectThroughput
projectThroughputHours
projectThroughputHoursAdditional
bugsOpened
bugsClosed
projectThroughputHoursManagement
projectThroughputHoursDevelopment
projectThroughputHoursDesign
projectThroughputHoursUpstream
projectThroughputHoursDownstream
}
}
}
${PROJECT_STANDARD_FRAGMENT}
Expand All @@ -56,18 +89,16 @@ const StatusReport = () => {
<ProjectPage pageName={"Status Report"} loading={loading}>
<>
{project && (
<Box sx={{ padding: 4, gap: 4 }}>
<Box sx={{ width: "50%" }}>
<Box sx={{ padding: 4 }}>
<Box sx={{ width: "50%", marginBottom: 6 }}>
<ActiveContractsHoursTicket project={project} />
</Box>
<Box sx={{ display: "flex" }}>
<Box sx={{ width: "50%" }}>
<ProjectBurnup project={project} />
</Box>
<Box sx={{ width: "50%" }}>
<ProjectHoursBurnup project={project} />
</Box>
</Box>
<Grid container spacing={2} rowSpacing={8}>
<ProjectBurnup project={project} />
<ProjectHoursBurnup project={project} />
<ProjectLeadTime project={project} />
<ProjectLeadTimeControlChart project={project} />
</Grid>
</Box>
)}
</>
Expand Down

0 comments on commit 01e5dda

Please sign in to comment.