Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: insights grid initial layout (#6591)
- Loading branch information
Showing
2 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
frontend/src/component/project/Project/ProjectInsights/ProjectInsights.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { Box, styled } from '@mui/material'; | ||
|
||
const Grid = styled(Box)(({ theme }) => ({ | ||
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 ( | ||
<Grid> | ||
<Overview> | ||
Total changes / avg time to production / feature flags /stale | ||
flags | ||
</Overview> | ||
<Health>Project Health</Health> | ||
<LeadTime>Lead time</LeadTime> | ||
<ToggleTypesUsed>Toggle types used</ToggleTypesUsed> | ||
<ProjectMembers>Project members</ProjectMembers> | ||
<ChangeRequests>Change Requests</ChangeRequests> | ||
</Grid> | ||
); | ||
}; |