Skip to content

Commit 9148285

Browse files
Haider AliHaider Ali
authored andcommitted
Merge branch 'dev' into freeze
2 parents b1e7c6f + 06d1e05 commit 9148285

File tree

11 files changed

+81
-17
lines changed

11 files changed

+81
-17
lines changed

demo-app/src/client/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<title>Reactime MVP</title>
4+
<title>Reactime</title>
5+
<!-- <link rel="icon" type="image/x-icon" href="../../../assets/logos/blackWhiteSquareIcon.png"> -->
56
<link rel="stylesheet" type="text/css" href="./style.css">
67
</head>
78
<body>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ const AxContainer = (props: AxContainer) => {
3737
};
3838

3939
export default AxContainer;
40+
41+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from "react";
2+
3+
export default function HeatMapLegend() {
4+
return (
5+
<div className="heat-map-legend-container">
6+
<div className="heat-level-one"></div>
7+
<div className="heat-level-two"></div>
8+
<div className="heat-level-three"></div>
9+
<div className="heat-level-four"></div>
10+
</div>
11+
);
12+
}

src/app/components/StateRoute/StateRoute.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const StateRoute = (props: StateRouteProps) => {
6969
<NavLink
7070
to='/'
7171
className={(navData) =>
72-
navData.isActive ? 'is-active router-link map-tab' : 'router-link map-tab'
72+
navData.isActive ? 'is-active router-link map-tab map-tab1' : 'router-link map-tab map-tab1'
7373
}
7474
end
7575
>

src/app/containers/ActionContainer.tsx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,19 +197,29 @@ function ActionContainer(props: ActionContainerProps): JSX.Element {
197197
</aside>
198198
<div className='collapse'>Collapse</div>
199199
</div>
200-
<a type='button' id='recordBtn' onClick={toggleRecord}>
200+
{/* <a type='button' id='recordBtn' onClick={toggleRecord}>
201201
<i />
202202
<div
203203
className='toggle-record'
204204
style={{ display: 'flex', alignItems: 'center', textAlign: 'right' }}
205205
>
206-
Toggle Record
206+
Record
207207
</div>
208208
{recordingActions ? <Switch defaultChecked /> : <Switch />}
209-
</a>
209+
</a> */}
210210
</div>
211211
{actionView ? (
212212
<div className='action-button-wrapper'>
213+
<a type='button' id='recordBtn' onClick={toggleRecord}>
214+
<i />
215+
<div
216+
className='toggle-record'
217+
style={{ display: 'flex', alignItems: 'center', textAlign: 'right' }}
218+
>
219+
Record
220+
</div>
221+
{recordingActions ? <Switch defaultChecked /> : <Switch />}
222+
</a>
213223
<SwitchAppDropdown />
214224
<div className='action-component exclude'>
215225
<Button

src/app/containers/MainContainer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
} from '../slices/mainSlice';
2020
import { useDispatch, useSelector } from 'react-redux';
2121
import { MainState, RootState } from '../FrontendTypes';
22+
import HeatMapLegend from '../components/StateRoute/ComponentMap/heatMapLegend';
2223

2324
/*
2425
This is the main container where everything in our application is rendered

src/app/containers/StateContainer.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import StateRoute from '../components/StateRoute/StateRoute';
88
import DiffRoute from '../components/DiffRoute/DiffRoute';
99
import { StateContainerProps } from '../FrontendTypes';
1010
import { Outlet } from 'react-router';
11+
import HeatMapLegend from '../components/StateRoute/ComponentMap/heatMapLegend';
1112

1213
// eslint-disable-next-line react/prop-types
1314
const StateContainer = (props: StateContainerProps): JSX.Element => {
@@ -22,6 +23,7 @@ const StateContainer = (props: StateContainerProps): JSX.Element => {
2223
} = props;
2324

2425
return (
26+
<>
2527
<div className='state-container'>
2628
<div className='main-navbar-container'>
2729
<div className='main-navbar-text' />
@@ -44,6 +46,7 @@ const StateContainer = (props: StateContainerProps): JSX.Element => {
4446
</NavLink>
4547
</div>
4648
</div>
49+
<HeatMapLegend />
4750
<Routes>
4851
<Route
4952
path='/diff/*'
@@ -68,11 +71,13 @@ const StateContainer = (props: StateContainerProps): JSX.Element => {
6871
currLocation={currLocation}
6972
/>
7073
{/* <Outlet/> */}
74+
{/* <HeatMapLegend /> */}
7175
</div>
7276
}
7377
/>
7478
</Routes>
7579
</div>
80+
</>
7681
);
7782
};
7883

src/app/styles/abstracts/_variablesLM.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ $background-color-weak: #d9d9d9;
2525
$contrasting-color: #161617;
2626
$contrasting-color-weak: #353536;
2727

28+
/// HEATMAP COLORS
29+
$heat-level-1: #F1B476;
30+
$heat-level-2: #E4765B;
31+
$heat-level-3: #C64442;
32+
$heat-level-4: #8C2743;
33+
2834
/////////////////////////////////////////////////////////////////////
2935
// ALL OF THE FOLLOWING COLORS SHOULD REFERENCE A COLOR FROM ABOVE //
3036
/////////////////////////////////////////////////////////////////////

src/app/styles/components/_componentMap.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,3 @@
4444
fill: $map-root-text;
4545
}
4646

47-

src/app/styles/layout/_actionContainer.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@
1818
color: #ffb3b3;
1919
height: 100%;
2020
display: flex;
21+
margin-left: 10px;
2122
}
2223

2324
.actionToolContainer {
2425
color: #873b3b;
2526
display: flex;
2627
justify-content: space-between;
2728
align-items: center;
29+
height: 35px;
2830
}
2931

3032
#recordBtn .fa-regular {

0 commit comments

Comments
 (0)