Skip to content

Commit fdfeb7e

Browse files
authored
Merge pull request #7 from oslabs-beta/mergedev
Merge mergedev into dev
2 parents 9fc9f48 + f4f4175 commit fdfeb7e

File tree

132 files changed

+26552
-30990
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+26552
-30990
lines changed

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# JS Project-Specific #
22
#######################
33
# node_modules
4-
dist
5-
build
4+
/dist
5+
/build
66
release-builds
77
coverage
88
__tests__/**/__snapshots__
99
.env
10-
users.json
11-
test_users.json
10+
databases.txt
1211

1312
# Compiled source #
1413
###################
@@ -48,3 +47,5 @@ test_users.json
4847
ehthumbs.db
4948
Thumbs.db
5049
node_modules
50+
51+
out/

.vscode/launch.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
{
22
"version": "0.2.0",
33
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "launch",
7+
"name": "File",
8+
"skipFiles": [
9+
"<node_internals>/**",
10+
],
11+
"program": "${file}"
12+
},
413
{
514
"type": "node",
615
"request": "launch",

__tests__/test_settings.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
{"setupRequired":false,"services":[["chronosDB","MongoDB","mongodb+srv://jj289:[email protected]/chronosDB?retryWrites=true&w=majority","","Dec 13, 2022 2:58 PM"],["test","MongoDB","mongodb+srv://troyprejusa:[email protected]/test?retryWrites=true&w=majority","","Dec 13, 2022 5:14 PM"]],"mode":"light mode","splash":true,"landingPage":"dashBoard"}
1+
{
2+
"services": [
3+
[
4+
"chronosDB",
5+
"MongoDB",
6+
"mongodb+srv://troyprejusa:[email protected]/test?retryWrites=true&w=majority",
7+
"",
8+
"Dec 19, 2022 4:50 PM"
9+
]
10+
],
11+
"mode": "light",
12+
"splash": true,
13+
"landingPage": "dashBoard"
14+
}

app/App.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ import DashboardContainer from './containers/DashboardContainer';
44
import './stylesheets/scrollBar.scss';
55

66
const App: React.FC = React.memo(() => {
7-
return <DashboardContainer />;
7+
return (
8+
<>
9+
<Splash />
10+
<DashboardContainer />
11+
</>
12+
13+
)
814
});
915

1016
export default App;

app/charts/RouteChart.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const RouteChart = React.memo(() => {
160160
// },
161161
// };
162162

163-
if (communicationsData[0].endpoint !== '/') {
163+
if (communicationsData.length > 0 && communicationsData[0].endpoint !== '/') {
164164
return (
165165
<div className="traceContainer">
166166
<span id="tracesTitle">Route Traces</span>

app/components/About.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const About: React.FC = React.memo(() => {
77
const { mode } = useContext(DashboardContext.DashboardContext);
88

99
const currentMode =
10-
mode === 'light mode' ? lightAndDark.lightModeText : lightAndDark.darkModeText;
10+
mode === 'light' ? lightAndDark.lightModeText : lightAndDark.darkModeText;
1111

1212
return (
1313
<div className="about">

app/components/AwaitingApproval.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
2-
import { useHistory } from 'react-router-dom';
2+
import { useNavigate } from 'react-router-dom';
33

44
function AwaitingApproval() {
5-
const history = useHistory();
6-
const reroute = () => history.push('/');
5+
const navigate = useNavigate();
6+
const reroute = () => navigate('/');
77
return (
88
<div className="home">
99
<p className="welcomeMessage" data-testid="awaitingApprovalMessage">

app/components/Contact.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const Contact = React.memo(() => {
88
const { mode } = useContext(DashboardContext);
99

1010
const currentMode =
11-
mode === 'light mode' ? lightAndDark.lightModeText : lightAndDark.darkModeText;
11+
mode === 'light' ? lightAndDark.lightModeText : lightAndDark.darkModeText;
1212

1313
return (
1414
<div className="contact">

app/components/Copyright.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import '../stylesheets/Applications.scss';
55

66
export interface CopyrightProps {}
77

8-
const Copyright: React.SFC = React.memo(() => {
8+
const Copyright: React.FC = React.memo(() => {
99
const useStyles = makeStyles(theme => ({
1010
copyright: {
1111
fontFamily: 'Roboto',

app/components/Header.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useContext, useState } from 'react';
2-
import { useHistory } from 'react-router-dom';
2+
import { useNavigate} from 'react-router-dom';
33
import { ApplicationContext } from '../context/ApplicationContext';
44
import { DashboardContext } from '../context/DashboardContext';
55
import '../stylesheets/Header.scss';
@@ -13,7 +13,7 @@ export interface HeaderProps {
1313
}
1414

1515
const Header: React.FC<HeaderProps> = React.memo(({ app, service, setLive, live }) => {
16-
const history = useHistory();
16+
const navigate = useNavigate();
1717
const { servicesData } = useContext(ApplicationContext);
1818
const { mode } = useContext(DashboardContext);
1919
const [selectModal, setSelectModal] = useState(false);
@@ -53,12 +53,12 @@ const Header: React.FC<HeaderProps> = React.memo(({ app, service, setLive, live
5353

5454
const handleServices = () => {
5555
const joinedServices = selectedServices.join(' ');
56-
history.replace(joinedServices);
56+
navigate(joinedServices);
5757
setLive(false);
5858
};
5959

6060
const currentModeCSS =
61-
mode === 'light mode' ? lightAndDark.lightModeHeader : lightAndDark.darkModeHeader;
61+
mode === 'light' ? lightAndDark.lightModeHeader : lightAndDark.darkModeHeader;
6262

6363
return (
6464
<div className="microservice-header" style={currentModeCSS} data-testid="Header">

0 commit comments

Comments
 (0)