Skip to content

Commit c5748f1

Browse files
davidkim7773fscgoldenRobbyTiptonjoeeparkkhobread
committed
mergeMessageHere
Co-authored-by: Chris LeBrett <[email protected]> Co-authored-by: Robby Tipton <[email protected]> Co-authored-by: Joseph Park <[email protected]> Co-authored-by: David Kim <[email protected]> Co-authored-by: Kevin HoEun Lee <[email protected]>
1 parent 4de4439 commit c5748f1

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

src/app/components/BarGraph.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// @ts-nocheck
22
import React, { useEffect, useState } from 'react';
33
import { FormControl, InputLabel, Select, MenuItem } from '@mui/material';
4-
// import Select from 'react-select';
54
import { BarStack } from '@visx/shape';
65
import { SeriesPoint } from '@visx/shape/lib/types';
76
import { Group } from '@visx/group';
@@ -139,18 +138,9 @@ const BarGraph = props => {
139138
dispatch(save(toStorage));
140139
};
141140

142-
console.log('data-barstack', data.barStack)
143-
144-
// const [isMenuOpen, setIsMenuOpen] = useState(false);
145-
146-
// const onMenuOpen = () => setIsMenuOpen(true);
147-
// const onMenuClose = () => setIsMenuOpen(false);
148-
149141
const textbox = tabs[currentTab].seriesSavedStatus === 'inputBoxOpen' ? <input type="text" id="seriesname" placeholder="Enter Series Name" onChange={e => setSeriesNameInput(e.target.value)} /> : null;
150142
return (
151143
<div className="bargraph-position">
152-
153-
{/* <input type="text" id ="seriesname" placeholder="Series Name" /> */}
154144
<div className="saveSeriesContainer">
155145
{textbox}
156146
<button
@@ -161,13 +151,11 @@ const BarGraph = props => {
161151
Save Series
162152
</button>
163153
</div>
164-
{/* <div className="routesContainer"> */}
165154
<FormControl className="routesForm" id="routes-formcontrol" size="small">
166155
<InputLabel id="routes-dropdown">Select Route</InputLabel>
167156
<Select
168157
labelId="demo-simple-select-label"
169158
id="routes-select"
170-
// label="Routes"
171159
onChange={e => setRoute(e.target.value)}
172160
>
173161
<MenuItem value={null}>
@@ -180,7 +168,6 @@ const BarGraph = props => {
180168
))}
181169
</Select>
182170
</FormControl>
183-
{/* </div> */}
184171
<svg ref={containerRef} width={width} height={height}>
185172
<rect
186173
x={0}

src/app/components/PerformanceVisx.tsx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ const PerformanceVisx = (props: BarStackProps) => {
232232

233233
const allRoutes = [];
234234
const filteredSnapshots = [];
235-
const copyOfBars = [];
236235

237236
for (let i = 0; i < data.barStack.length; i += 1) {
238237
const url = new URL(data.barStack[i].route);
@@ -244,15 +243,9 @@ const PerformanceVisx = (props: BarStackProps) => {
244243
}
245244
}
246245
if (route) {
247-
// copyOfBars = data.barStack;
248246
data.barStack = filteredSnapshots;
249247
}
250-
// console.log('Data', data);
251-
// console.log('URL is ', url);
252-
console.log('data.barStack is ', data.barStack);
253-
console.log('filtered snapshots are ', filteredSnapshots);
254-
// console.log('AllRoutes', allRoutes);
255-
248+
256249
const renderBargraph = () => {
257250
if (hierarchy) {
258251
return (
@@ -264,17 +257,13 @@ const PerformanceVisx = (props: BarStackProps) => {
264257
comparison={allStorage()}
265258
setRoute={setRoute}
266259
allRoutes={allRoutes}
267-
copyOfBars={copyOfBars}
268260
filteredSnapshots={filteredSnapshots}
269261
/>
270262
</div>
271263
);
272264
}
273265
};
274266

275-
console.log('data', data)
276-
277-
278267
const renderComponentDetailsView = () => {
279268
if (hierarchy) {
280269
return <RenderingFrequency data={data.componentData} />;
@@ -294,7 +283,6 @@ const PerformanceVisx = (props: BarStackProps) => {
294283
<div className="performance-nav-bar-container">
295284
<NavLink
296285
className="router-link-performance"
297-
// className="router-link"
298286
activeClassName="is-active"
299287
exact
300288
to="/"
@@ -304,15 +292,13 @@ const PerformanceVisx = (props: BarStackProps) => {
304292
<NavLink
305293
className="router-link-performance"
306294
id="router-link-performance-comparison"
307-
// className="router-link"
308295
activeClassName="is-active"
309296
to="/comparison"
310297
>
311298
Comparison View
312299
</NavLink>
313300
<NavLink
314301
className="router-link-performance"
315-
// className="router-link"
316302
activeClassName="is-active"
317303
to="/componentdetails"
318304
>

0 commit comments

Comments
 (0)