@@ -2,6 +2,13 @@ import "reflect-metadata";
22import { container } from "tsyringe" ;
33import { useEffect , useRef , useState } from "react" ;
44import BounceLoader from "react-spinners/BounceLoader" ;
5+ import { Dialog , dialogClasses } from "@mui/material" ;
6+ import Divider from "@mui/material/Divider" ;
7+ import AppBar from "@mui/material/AppBar" ;
8+ import Toolbar from "@mui/material/Toolbar" ;
9+ import IconButton from "@mui/material/IconButton" ;
10+ import Typography from "@mui/material/Typography" ;
11+ import CloseIcon from "@mui/icons-material/Close" ;
512
613import MonoLogo from "assets/monoLogo.svg" ;
714import {
@@ -10,7 +17,7 @@ import {
1017 TemporalFilter ,
1118 ThemeSelector ,
1219 VerticalClusterList ,
13- FolderActivityFlow ,
20+ StorylineChart ,
1421} from "components" ;
1522import "./App.scss" ;
1623import type IDEPort from "ide/IDEPort" ;
@@ -19,20 +26,12 @@ import { RefreshButton } from "components/RefreshButton";
1926import type { IDESentEvents } from "types/IDESentEvents" ;
2027import { useBranchStore , useDataStore , useGithubInfo , useLoadingStore , useThemeStore } from "store" ;
2128import { THEME_INFO } from "components/ThemeSelector/ThemeSelector.const" ;
22- import { NetworkGraph } from "components/NetworkGraph" ;
2329import { InsightsButton } from "components/InsightsButton" ;
24- import { Dialog , dialogClasses } from "@mui/material" ;
25- import Divider from "@mui/material/Divider" ;
26- import AppBar from "@mui/material/AppBar" ;
27- import Toolbar from "@mui/material/Toolbar" ;
28- import IconButton from "@mui/material/IconButton" ;
29- import Typography from "@mui/material/Typography" ;
30- import CloseIcon from "@mui/icons-material/Close" ;
3130import { pxToRem } from "utils" ;
3231
3332const App = ( ) => {
3433 const initRef = useRef < boolean > ( false ) ;
35- const [ showFolderActivityFlowModal , setShowFolderActivityFlowModal ] = useState ( false ) ;
34+ const [ showStorylineChartModal , setShowStorylineChartModal ] = useState ( false ) ;
3635 const { handleChangeAnalyzedData } = useAnalayzedData ( ) ;
3736 const filteredData = useDataStore ( ( state ) => state . filteredData ) ;
3837 const { handleChangeBranchList } = useBranchStore ( ) ;
@@ -41,12 +40,12 @@ const App = () => {
4140 const { theme } = useThemeStore ( ) ;
4241 const ideAdapter = container . resolve < IDEPort > ( "IDEAdapter" ) ;
4342
44- const handleOpenFolderActivityFlowModal = ( ) => {
45- setShowFolderActivityFlowModal ( true ) ;
43+ const handleOpenStorylineChartModal = ( ) => {
44+ setShowStorylineChartModal ( true ) ;
4645 } ;
4746
48- const handleCloseFolderActivityFlowModal = ( ) => {
49- setShowFolderActivityFlowModal ( false ) ;
47+ const handleCloseStorylineChartModal = ( ) => {
48+ setShowStorylineChartModal ( false ) ;
5049 } ;
5150
5251 useEffect ( ( ) => {
@@ -94,7 +93,7 @@ const App = () => {
9493 height : "1.875rem" ,
9594 color : "white" ,
9695 } }
97- onClick = { handleOpenFolderActivityFlowModal }
96+ onClick = { handleOpenStorylineChartModal }
9897 />
9998 </ div >
10099 </ div >
@@ -114,15 +113,13 @@ const App = () => {
114113 < p > Make at least one commit to proceed.</ p >
115114 </ div >
116115 ) }
117- < NetworkGraph />
118116 </ div >
119-
120- { /* Folder Activity Flow Modal */ }
121- { showFolderActivityFlowModal && (
117+ { /* Storyline Chart Modal */ }
118+ { showStorylineChartModal && (
122119 < Dialog
123120 fullScreen
124- open = { showFolderActivityFlowModal }
125- onClose = { handleCloseFolderActivityFlowModal }
121+ open = { showStorylineChartModal }
122+ onClose = { handleCloseStorylineChartModal }
126123 sx = { {
127124 [ `& .${ dialogClasses . paper } ` ] : {
128125 backgroundColor : "#222324" ,
@@ -141,7 +138,7 @@ const App = () => {
141138 < IconButton
142139 edge = "end"
143140 color = "inherit"
144- onClick = { handleCloseFolderActivityFlowModal }
141+ onClick = { handleCloseStorylineChartModal }
145142 size = "large"
146143 aria-label = "close"
147144 >
@@ -154,7 +151,7 @@ const App = () => {
154151 backgroundColor : "#F7F7F780" ,
155152 } }
156153 />
157- < FolderActivityFlow />
154+ < StorylineChart />
158155 </ Dialog >
159156 ) }
160157 </ >
0 commit comments