Skip to content

Commit 71ebe21

Browse files
Integrated analytics dashboard into tracker workflow
1 parent 4ae0ef6 commit 71ebe21

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/pages/Tracker/Tracker.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ import { useTheme } from "@mui/material/styles";
3333
import { useGitHubAuth } from "../../hooks/useGitHubAuth";
3434
import { useGitHubData } from "../../hooks/useGitHubData";
3535
import { KeyIcon } from "lucide-react";
36+
import Dashboard from "../../components/Dashboard";
37+
3638

3739
const ROWS_PER_PAGE = 10;
3840

@@ -335,7 +337,14 @@ const Home: React.FC = () => {
335337
<CircularProgress />
336338
</Box>
337339
) : (
338-
<Box sx={{ maxHeight: "400px", overflowY: "auto" }}>
340+
<>
341+
<Dashboard
342+
totalIssues={totalIssues}
343+
totalPrs={totalPrs}
344+
data={[...issues, ...prs]}
345+
theme={theme}
346+
/>
347+
<Box sx={{ maxHeight: "400px", overflowY: "auto" }}>
339348

340349
<TableContainer component={Paper}>
341350

@@ -395,6 +404,7 @@ const Home: React.FC = () => {
395404

396405
</TableContainer>
397406
</Box>
407+
</>
398408
)}
399409
</Container>
400410
);

0 commit comments

Comments
 (0)