Skip to content

Commit 3282352

Browse files
authored
Merge pull request #2 from Nkmai/reactime7
Reactime7
2 parents 7126d9e + b917264 commit 3282352

19 files changed

+503
-531
lines changed

src/app/components/PerformanceVisx.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ const tooltipStyles = {
7676

7777
// traverses a snapshot for data: rendering time, component type, or rtid
7878
const traverse = (snapshot, fetchData, data = {}) => {
79+
console.log("data in beg of traverse: ", data )
7980
if (!snapshot.children[0]) return;
8081
snapshot.children.forEach((child, idx) => {
8182
const componentName = child.name + -[idx + 1];
@@ -94,6 +95,7 @@ const traverse = (snapshot, fetchData, data = {}) => {
9495
}
9596
traverse(snapshot.children[idx], fetchData, data);
9697
})
98+
console.log("data in end of traverse: ", data )
9799
return data;
98100
};
99101

@@ -215,7 +217,7 @@ const PerformanceVisx = (props: BarStackProps) => {
215217
key={`bar-stack-${barStack.index}-${bar.index}`}
216218
x={bar.x}
217219
y={bar.y}
218-
height={bar.height === 0 ? idx + 1 : bar.height}
220+
height={bar.height === 0 ? null : bar.height}
219221
width={bar.width}
220222
fill={bar.color}
221223
/* TIP TOOL EVENT HANDLERS */

src/app/containers/ButtonsContainer.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function ButtonsContainer() {
5555
const [{ tabs, currentTab }, dispatch] = useStoreContext();
5656
const {
5757
snapshots,
58-
mode: { paused, locked, persist },
58+
mode: { paused, persist },
5959
} = tabs[currentTab];
6060

6161
return (
@@ -68,13 +68,6 @@ function ButtonsContainer() {
6868
{paused? <FontAwesomeIcon icon={faUnlock} /> : <FontAwesomeIcon icon={faLock} />}
6969
{paused ? 'Unlock' : 'Lock'}
7070
</button>
71-
{/* <button
72-
className="lock-button"
73-
type="button"
74-
onClick={() => dispatch(toggleMode('locked'))}
75-
>
76-
{locked ? 'Unlocked': 'Locked'}
77-
</button> */}
7871
<button
7972
className="persist-button"
8073
type="button"

src/app/reducers/mainReducer.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,6 @@ export default (state, action) => produce(state, draft => {
185185
case 'paused':
186186
actionText = 'setPause';
187187
break;
188-
case 'locked':
189-
actionText = 'setLock';
190-
break;
191188
case 'persist':
192189
actionText = 'setPersist';
193190
break;

src/app/styles/abstracts/_variables.scss

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,38 @@ $text-font-stack: 'Roboto', sans-serif !default;
55

66
/// @type Color
77
$fiery-rose: #ff6569;
8+
$blue-brand: #62d6fb;
89

910
/// @type Color
1011
$blue-color-gradient: linear-gradient(145deg, #69e5ff, #58c1e2);
12+
$red-color-gradient: linear-gradient(145deg, #ff6569, #e65558);
13+
$grey-color-gradient: linear-gradient(145deg, #5c6068, #4d5157);
1114

1215
/// @type Color:
1316
$box-shadow-blue: inset 5px 5px 10px #53b6d5, inset -5px -5px 10px #71f6ff;
17+
$box-shadow-red: inset 5px 5px 10px #d95053, inset -5px -5px 10px #ff6c71;
1418

1519
/// @type Color
1620
$text-color: #e7e7e7;
1721

1822
/// @type Color
1923
$brand-color: #242529 !default;
2024

25+
/// @type Color
26+
$background-color: #333333 !default;
27+
$medium-background-color: #51565e !default;
28+
$light-background-color: #585d65 !default;
29+
2130
/// Light grey
2231
/// @type Color
2332
$light-grey-one: #474c55 !default;
2433

2534
/// @type Color
2635
$light-grey-two: #5f6369 !default;
2736

28-
$light-grey-three: rgb(101, 104, 110) !default;
37+
$light-grey-three: #65686e !default;
38+
39+
$light-grey-four: #4c4c4d !default;
2940

3041
/// @type Color
3142
$navbar-color: #44484e !default;
@@ -34,7 +45,14 @@ $navbar-color: #44484e !default;
3445
$head-color: #242529 !default;
3546

3647
/// @type Color
37-
$border-color: rgb(41, 41, 41) !default;
48+
$border-color: #292929 !default;
49+
50+
/// @type Color
51+
$border-slider: #57c5f7 !default;
52+
53+
/// @type Color
54+
$border-rc: #373737 !default;
55+
$background-rc-color: #e9e9e9 !default;
3856

3957
/// @type Color
4058
$highlight-color: rgba(224, 224, 224, 0.5) !default;

src/app/styles/base/_typography.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
body {
2-
color: $text-color;
3-
font: normal 13px $text-font-stack;
4-
// font: normal 125% / 1.4 $text-font-stack;
2+
color: $text-color;
3+
font: normal 13px $text-font-stack;
54
}

src/app/styles/components/_buttons.scss

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
font: 300 14px 'Roboto', sans-serif;
1515
font-size: $button-text-size;
1616
width: 120px;
17-
background: linear-gradient(145deg, #ff6569, #e65558);
17+
background: $red-color-gradient;
1818
}
1919
.empty-button:hover {
2020
color: black;
21-
box-shadow: inset 5px 5px 10px #d95053, inset -5px -5px 10px #ff6c71;
21+
box-shadow: $box-shadow-red;
2222
}
2323

2424
.state-dropdown {
@@ -43,7 +43,7 @@
4343
width: 70px;
4444
border: none;
4545
border-radius: 3px;
46-
background: linear-gradient(145deg, #5c6068, #4d5157);
46+
background: $grey-color-gradient;
4747
font: normal 11px 'Roboto', sans-serif;
4848
color: #b0b0b0;
4949
}
@@ -66,7 +66,6 @@
6666
.jump-button:hover {
6767
// remove the blue border when button is clicked
6868
color: white;
69-
// color: black;
7069
background-color: $fiery-rose;
7170

7271
cursor: pointer;
@@ -127,7 +126,6 @@
127126
.import-button,
128127
.howToUse-button,
129128
.export-button,
130-
.lock-button,
131129
.pause-button,
132130
.persist-button {
133131
@extend %button-shared;
@@ -138,7 +136,6 @@
138136
.import-button:hover,
139137
.howToUse-button:hover,
140138
.export-button:hover,
141-
.lock-button:hover,
142139
.pause-button:hover,
143140
.persist-button:hover {
144141
@extend %button-shared;
@@ -148,7 +145,7 @@
148145
}
149146

150147
.svg-inline--fa {
151-
color: #62d6fb;
148+
color: $blue-brand;
152149
margin-right: 0.75em;
153150
display: inline-block;
154151
font-size: inherit;
@@ -167,10 +164,10 @@
167164
font: 300 14px 'Roboto', sans-serif;
168165
font-size: $button-text-size;
169166

170-
background: rgb(36, 37, 41);
167+
background: $brand-color;
171168
border-radius: 5px;
172169
position: relative;
173-
border: 1px solid rgba(184, 196, 194, 0.25);
170+
border: 1px solid #b8c4c240;
174171

175172
@extend %disable-highlight;
176173
}

0 commit comments

Comments
 (0)