Skip to content

Commit e05483a

Browse files
authored
refactor(view): FolderActivityFlow -> StorylineChart 변경, 네트워크 그래프 삭제 (#1018)
* refactor(view): 네트워크 그래프 삭제 * refactor(view): FolderActivityFlow -> StorylineChart 파일명 변경 * refactor: 스토리라인 차트 핸들링 함수명 변경
1 parent 173eb85 commit e05483a

20 files changed

+56
-631
lines changed

packages/view/src/App.tsx

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ import "reflect-metadata";
22
import { container } from "tsyringe";
33
import { useEffect, useRef, useState } from "react";
44
import 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

613
import MonoLogo from "assets/monoLogo.svg";
714
import {
@@ -10,7 +17,7 @@ import {
1017
TemporalFilter,
1118
ThemeSelector,
1219
VerticalClusterList,
13-
FolderActivityFlow,
20+
StorylineChart,
1421
} from "components";
1522
import "./App.scss";
1623
import type IDEPort from "ide/IDEPort";
@@ -19,20 +26,12 @@ import { RefreshButton } from "components/RefreshButton";
1926
import type { IDESentEvents } from "types/IDESentEvents";
2027
import { useBranchStore, useDataStore, useGithubInfo, useLoadingStore, useThemeStore } from "store";
2128
import { THEME_INFO } from "components/ThemeSelector/ThemeSelector.const";
22-
import { NetworkGraph } from "components/NetworkGraph";
2329
import { 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";
3130
import { pxToRem } from "utils";
3231

3332
const 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
</>

packages/view/src/components/FolderActivityFlow/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/view/src/components/NetworkGraph/NetworkGraph.const.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/view/src/components/NetworkGraph/NetworkGraph.scss

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)