diff --git a/frontend/src/component/project/Project/Project.tsx b/frontend/src/component/project/Project/Project.tsx index f0edf72f03..7ae163c3b2 100644 --- a/frontend/src/component/project/Project/Project.tsx +++ b/frontend/src/component/project/Project/Project.tsx @@ -44,6 +44,7 @@ import { HiddenProjectIconWithTooltip } from './HiddenProjectIconWithTooltip/Hid import { ChangeRequestPlausibleProvider } from 'component/changeRequest/ChangeRequestContext'; import { ProjectApplications } from '../ProjectApplications/ProjectApplications'; import { useUiFlag } from 'hooks/useUiFlag'; +import { ProjectInsights } from './ProjectInsights/ProjectInsights'; const StyledBadge = styled(Badge)(({ theme }) => ({ position: 'absolute', @@ -311,7 +312,7 @@ export const Project = () => { } /> } /> {Boolean(projectOverviewRefactor) && ( - Hello world} /> + } /> )} } /> ({ + display: 'grid', + gap: theme.spacing(2), + gridTemplateColumns: 'repeat(10, 1fr)', +})); + +const Overview = styled(Box)(({ theme }) => ({ + gridColumn: '1 / -1', +})); + +const Health = styled(Box)(({ theme }) => ({ + gridColumn: 'span 5', +})); + +const LeadTime = styled(Box)(({ theme }) => ({ + gridColumn: 'span 5', +})); + +const ToggleTypesUsed = styled(Box)(({ theme }) => ({ + gridColumn: 'span 2', +})); + +const ProjectMembers = styled(Box)(({ theme }) => ({ + gridColumn: 'span 2', +})); + +const ChangeRequests = styled(Box)(({ theme }) => ({ + gridColumn: 'span 5', +})); + +export const ProjectInsights = () => { + return ( + + + Total changes / avg time to production / feature flags /stale + flags + + Project Health + Lead time + Toggle types used + Project members + Change Requests + + ); +};