Skip to content

Commit b6a537f

Browse files
authored
Merge pull request #25 from oslabs-beta/feature/garrett
Feature/garrett
2 parents c9c9c44 + bf67b20 commit b6a537f

29 files changed

+108
-207
lines changed

.travis.yml

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

Dockerfile

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

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 reactime
3+
Copyright (c) 2025 reactime
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

docker-compose.yml

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

src/app/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import MainContainer from './containers/MainContainer';
1111
function App(): JSX.Element {
1212
return (
1313
<Router>
14-
{/* we wrap our application with the <Router> tag so that all components that are nested will have the react-router context */}
1514
<MainContainer />
1615
</Router>
1716
);

src/app/FrontendTypes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ export interface AxContainer {
399399
};
400400
snapshots: [];
401401
currLocation: object;
402+
setShowTree: any;
403+
setShowParagraph: any;
402404
}
403405

404406
export interface FilteredNode {

src/app/components/Actions/RouteDescription.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import Slider from 'rc-slider';
32
import VerticalSlider from '../TimeTravel/VerticalSlider';
43

54
/*

src/app/components/Buttons/Tutorial.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Component } from 'react';
77
import 'intro.js/introjs.css';
88
import { TutorialProps, TutorialState, StepsObj } from '../../FrontendTypes';
99
import { Button } from '@mui/material';
10-
const { Steps } = require('intro.js-react'); //Must be required in. This enables compatibility with TS. If imported in, throws ts error of not rendering steps as a class component correctly. The package 'intro.js-react' is small React wrapper around Intro.js. The wrapper provides support for both steps and hints. https://introjs.com/docs/
10+
const { Steps } = require('intro.js-react');
1111
import { setCurrentTabInApp, tutorialSaveSeriesToggle } from '../../slices/mainSlice';
1212
import { HelpCircle } from 'lucide-react';
1313

src/app/components/StateRoute/AxMap/Ax.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState, useRef } from 'react';
2-
import { useDispatch, useSelector } from 'react-redux';
2+
import { useDispatch } from 'react-redux';
33
import { Group } from '@visx/group';
44
import { hierarchy, Tree } from '@visx/hierarchy';
55
import { LinearGradient } from '@visx/gradient';
@@ -9,7 +9,7 @@ import { useTooltip, useTooltipInPortal, defaultStyles } from '@visx/tooltip';
99
import ToolTipDataDisplay from './ToolTipDataDisplay';
1010
import { ToolTipStyles } from '../../../FrontendTypes';
1111
import { localPoint } from '@visx/event';
12-
import { toggleExpanded, setCurrentTabInApp } from '../../../slices/mainSlice';
12+
import { toggleExpanded } from '../../../slices/mainSlice';
1313

1414
const defaultMargin = {
1515
top: 30,
@@ -32,7 +32,7 @@ export type LinkTypesProps = {
3232
};
3333

3434
export default function AxTree(props) {
35-
const { currLocation, axSnapshots, width, height } = props;
35+
const { currLocation, axSnapshots, width, height, setShowTree, setShowParagraph } = props;
3636

3737
let margin = defaultMargin;
3838
let totalWidth = width;
@@ -74,7 +74,7 @@ export default function AxTree(props) {
7474
};
7575

7676
const [orientation, setOrientation] = useState('horizontal');
77-
const [linkType, setLinkType] = useState('step');
77+
const [linkType, setLinkType] = useState('diagonal');
7878
const [stepPercent, setStepPercent] = useState(0.0);
7979

8080
const innerWidth: number = totalWidth - margin.left - margin.right;
@@ -157,6 +157,8 @@ export default function AxTree(props) {
157157
setOrientation={setOrientation}
158158
setLinkType={setLinkType}
159159
setStepPercent={setStepPercent}
160+
setShowTree={setShowTree}
161+
setShowParagraph={setShowParagraph}
160162
/>
161163
</div>
162164

@@ -408,7 +410,7 @@ export default function AxTree(props) {
408410
</div>
409411
<div>
410412
{/* Ax Node Info below names the tooltip title because of how its passed to the ToolTipDataDisplay container*/}
411-
<ToolTipDataDisplay containerName='Ax Node Info' dataObj={tooltipData} />
413+
<ToolTipDataDisplay containerName='Accessbility' dataObj={tooltipData} />
412414
</div>
413415
</div>
414416
</TooltipInPortal>

src/app/components/StateRoute/AxMap/AxContainer.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const AxContainer = (props: AxContainer) => {
1111
snapshot, // from 'tabs[currentTab]' object in 'MainContainer'
1212
snapshots, // from 'tabs[currentTab].snapshotDisplay' object in 'MainContainer'
1313
currLocation, // from 'tabs[currentTab]' object in 'MainContainer'
14+
setShowTree,
15+
setShowParagraph,
1416
} = props;
1517

1618
return (
@@ -28,6 +30,8 @@ const AxContainer = (props: AxContainer) => {
2830
currLocation={currLocation}
2931
width={width}
3032
height={h}
33+
setShowTree={setShowTree}
34+
setShowParagraph={setShowParagraph}
3135
/>
3236
);
3337
}}

0 commit comments

Comments
 (0)