Skip to content

Commit 997062b

Browse files
authored
Merge pull request #377 from oslabs-beta/dev
v15.0 Release
2 parents 8b4cb13 + ea86757 commit 997062b

File tree

293 files changed

+49278
-15688
lines changed

Some content is hidden

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

293 files changed

+49278
-15688
lines changed

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This is an example .env file for you to create in order to insert your private URI for /electron
2+
# Your .env file should live in the root directory for the current configuration used in UserModel.ts
3+
MONGO_URI='<MongoDB-URI-for-private-User-DB-here>'

README.md

Lines changed: 46 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,57 @@ Chronos is a comprehensive developer tool that monitors the health and web traff
2020

2121
## What's New?
2222

23-
### Chronos 14.0
23+
### Chronos 15.0
2424

2525
<div>
2626

27+
Contributors:
28+
[Arnold Pinkhasov](https://github.com/apinkhasov101),
29+
[Ashley Bisram](https://github.com/ashleybisram),
30+
[Fridchard Chery](https://github.com/Gitfrich),
31+
[Peter Toussaint](https://github.com/Peter2oussaint)
32+
33+
</div>
34+
Updates:
35+
<li>Improved runtime by incorporating esbuild-loader, removing deprecated syntax/unused node modules, and other bundling optimizations.</li>
36+
<li>Refactored SASS by updating deprecated syntax and import statements.</li>
37+
<li>Grafana dashboard updates include deprecated syntax removal and a more intuitive layout, making it simpler for users to visualize key metrics in the newest version of Grafana.</li>
38+
<li>TypeScript migration allows contributors and users to catch errors early and work with a more robust codebase, making the app more reliable.</li>
39+
<li>Introduced ChroNotes, full documentation of our file structure and their purposes.</li>
40+
<li>Refactored the UI of the app to give it a more intuitive appearance regarding where/how to initialize network monitoring.</li>
41+
42+
43+
<a href='(https://ashleybisram.medium.com/a-new-chapter-for-chronos-introducing-version-15-0-12b83def342b)'>Version 15.0 Medium Article</a>
44+
45+
### **Iteration Log**
46+
<details><summary>Chronos 14.0</summary>
47+
<ul>
48+
<div>
49+
50+
2751
Contributors:
2852
[Michael Tagg](https://github.com/mdtagg),
2953
[Ted Pham](https://github.com/TedPham397),
3054
[Sofia Sarhiri](https://github.com/sarhiri),
31-
[Stephen Yang](https://github.com/stephenhyang),
55+
[Stephen Yang](https://github.com/stephenhyang)
3256

3357
</div>
3458
Updates:
35-
<li>Implemented a new visualization button (example) to expedite data rendering processes.</li>
36-
<li>Refactored microservices example, switched over to community version of MongoDB for easier URI implementation.</li>
37-
<li>Modularized cluttered components into modular units to improve code readability and reusability.</li>
38-
<li>Optimized startup scripts to reduce application load time and streamline environment configuration.</li>
39-
<li>Upgraded Material-UI from version 4 to version 5, adapting to new API changes and improving UI responsiveness. </li>
40-
<li>Refactored portions of the electron app </li>
41-
<li>Refactored data parsing logic to reduce unnecessary rerenders and improve app performance</li>
42-
<li>Fixed data bottle necks in the local npm packages, data is now able to flow to microservices for data visualization</li>
43-
59+
<ul>
60+
<li>Implemented a new visualization button (example) to expedite data rendering processes.</li>
61+
<li>Refactored microservices example, switched over to community version of MongoDB for easier URI implementation.</li>
62+
<li>Modularized cluttered components into modular units to improve code readability and reusability.</li>
63+
<li>Optimized startup scripts to reduce application load time and streamline environment configuration.</li>
64+
<li>Upgraded Material-UI from version 4 to version 5, adapting to new API changes and improving UI responsiveness. </li>
65+
<li>Refactored portions of the electron app </li>
66+
<li>Refactored data parsing logic to reduce unnecessary rerenders and improve app performance</li>
67+
<li>Fixed data bottle necks in the local npm packages, data is now able to flow to microservices for data visualization</li>
68+
</ul>
4469

45-
<a href='link here'>Version 14.0 Medium Article</a>
70+
<a href='https://medium.com/@m.sofiasarhiri/a-tale-as-old-as-time-for-the-modern-developer-chronos-v-14-f84733fd4f93'>Version 14.0 Medium Article</a>
4671

47-
### **Iteration Log**
72+
</ul>
73+
</details>
4874

4975
<details><summary>Chronos 13.0</summary>
5076
<ul>
@@ -216,7 +242,7 @@ Updates:
216242
</ul>
217243
</details>
218244

219-
### With Chronos 14.0
245+
### With Chronos 15.0
220246

221247
<a href="https://chronoslany.com/">
222248
<img src="assets/demo.gif" alt="Chronos" title="Chronos" align="center" height="500" width="auto" />
@@ -226,10 +252,14 @@ Updates:
226252

227253
## Overview of the CodeBase
228254

255+
- In our ChroNotes, we have a full overview of all the files in the codebase, and their purpose.
256+
<a href='https://docs.google.com/document/d/e/2PACX-1vTWIX6Is3uuvWX73ab5K521X7Ddr_fVN64F82bJ8l4VNF45cM9PbfDj2gVV9MVi_HhDrbNmZK51-dHP/pub'>Click here to view</a>!
257+
<img src='./assets/ChroNotes.png' alt='ChroNotes screenshot' align='center' height='500'/>
229258
- If you want to visualize the way the files in the app are connected, we suggest using this data visualizer. Below, it's showing the same repository, but instead of a directory structure, each file and folder as a circle: the circle’s color is the type of file, and the circle’s size represents the size of the file. See live demo
230259
<a href='https://mango-dune-07a8b7110.1.azurestaticapps.net/?repo=oslabs-beta%2FChronos'>here</a>.
231260
<img src="assets/codebase_visulization.png" alt="codebase visulization" align="center" height="500"/>
232261

262+
233263
## Features
234264

235265
- Cloud-Based Instances:
@@ -245,7 +275,7 @@ Updates:
245275

246276
# Installation
247277

248-
This is for the latest Chronos **version 13.0 release**.
278+
This is for the latest Chronos **version 15.0 release**.
249279

250280
## NPM Package
251281

@@ -310,7 +340,7 @@ export DISPLAY="`sed -n 's/nameserver //p' /etc/resolv.conf`:0"
310340

311341
**NOTE: You must create your own user database for extended features**
312342

313-
1. Create a MongoDB database in which to store user information and insert it on line 2 within the [UserModel.ts](./electron/models/UserModel.ts) (_electron/models/UserModel.ts_) file.
343+
1. Create a MongoDB database in which to store user information and insert it within a root .env file based on .env.example [.env.example](./.env.example) (_.env.example_) file.
314344
- This database will privately store user information.
315345
2. Once this is set up, you can create new users, log in, and have your data persist between sessions.
316346

__backend-tests__/chronosMethods.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { EcoTwoTone } = require('@mui/icons-material');
2-
const Chronos = require('../chronos_npm_package/chronos.js');
2+
const Chronos = require('../chronos_npm_package/chronos.ts');
33
const helpers = require('../chronos_npm_package/controllers/utilities.js');
44
const hpropagate = require('hpropagate');
55
const mongo = require('../chronos_npm_package/controllers/mongo.js');

app/charts/GrafanaEventChart/styles.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
13
#graphType {
24
min-width: 100px;
35
height: 25px;

app/components/About/About.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ const About: React.FC = React.memo(() => {
1313
const currentMode = mode === 'light' ? lightAndDark.lightModeText : lightAndDark.darkModeText;
1414
const currentStyle = mode === 'light' ? lightAndDark.lightModeData : lightAndDark.darkModeData;
1515
return (
16-
17-
18-
<div className="about" >
16+
<div className="about">
1917
<div className="blurb" data-testid="aboutPage" style={currentStyle}>
20-
<h3 style={currentStyle} className="mainTitle">About</h3>
21-
<p style={currentStyle} className="text" >
22-
The Chronos Team has a passion for building tools that are powerful, beautifully
23-
designed, and easy to use. Chronos was conceived as an Open Source endeavor that directly benefits the developer
24-
community. It can also monitor applications deployed using AWS, EC2, and ECS from Amazon.
18+
<h3 style={currentStyle} className="mainTitle">About </h3>
19+
<p style={currentStyle} className="text">
20+
The Chronos Team has a passion for building tools that are powerful, beautifully designed,
21+
and easy to use. Chronos was conceived as an Open Source endeavor that directly benefits
22+
the developer community. It can also monitor applications deployed using AWS, EC2, and ECS
23+
from Amazon.
2524
</p>
2625
<br></br>
2726
<TeamMembers />
@@ -31,4 +30,4 @@ const About: React.FC = React.memo(() => {
3130
);
3231
});
3332

34-
export default About;
33+
export default About;

app/components/About/PastContributors.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { useStylingContext } from './StylingContext';
33

44
const contributors = [
5-
'Haoyu', 'Eisha', 'Edwin', 'Tyler', 'Snow', 'Taylor', 'Tim', 'Roberto', 'Nachiket', 'Tiffany', 'Bruno', 'Danny', 'Vince',
5+
'Mike', 'Stephen', 'Ted', 'Sofia', 'Haoyu', 'Eisha', 'Edwin', 'Tyler', 'Snow', 'Taylor', 'Tim', 'Roberto', 'Nachiket', 'Tiffany', 'Bruno', 'Danny', 'Vince',
66
'Matt', 'Derek', 'Kit', 'Grace', 'Jen', 'Patty', 'Stella', 'Michael', 'Ronelle', 'Todd',
77
'Greg', 'Brianna', 'Brian', 'Alon', 'Alan', 'Ousman', 'Ben', 'Chris', 'Jenae', 'Tim',
88
'Kirk', 'Jess', 'William', 'Alexander', 'Elisa', 'Josh', 'Troy', 'Gahl', 'Brisa', 'Kelsi',

app/components/About/TeamMembers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { useStylingContext } from './StylingContext';
33

4-
const names = ['Mike', 'Stephen', 'Ted', 'Sofia'];
4+
const names = ['Arnold', 'Ashley', 'Pete', 'Rich'];
55

66
const TeamMembers: React.FC = () => {
77
const currentMode = useStylingContext();

app/components/About/styles.scss

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../index.scss';
1+
@use '../../index.scss' as *; // @use '../../index' as index;
22

33
.about {
44
min-width: 421px;
@@ -9,31 +9,39 @@
99
align-items: center;
1010
width: 100%;
1111
height: 100%;
12+
padding: 0;
13+
1214
}
1315

1416
.sprout {
1517
margin: 0;
18+
1619
}
1720

1821
.mainTitle {
1922
font-size: 36px;
2023
color: $background;
2124
text-align: left;
2225
font-weight: 600;
26+
margin: 0;
2327
}
2428

2529
.title {
2630
font-size: 18px;
2731
color: $background;
2832
text-align: left;
2933
font-weight: 600;
34+
padding: 0;
35+
margin: 0;
3036
}
3137

3238
.text {
3339
font-size: 20px;
3440
color: $background;
3541
text-align: left;
3642
font-weight: 300;
43+
padding: 0;
44+
margin: 0;
3745
}
3846

3947
.blurb {
@@ -46,7 +54,7 @@
4654
border: none;
4755
box-shadow: $boxshadow2;
4856
padding: 30px;
49-
57+
margin: 0;
5058
&:hover {
5159
background-color: rgba(255, 255, 255, 0.1);
5260
}
@@ -63,13 +71,19 @@
6371
background-color: transparent;
6472
border-radius: 50%;
6573
background-size: scale-down;
74+
padding: 0;
75+
margin: 0;
6676
&:hover {
6777
background-color: $hover;
6878
opacity: 0.85;
6979
animation: none;
7080
}
7181
}
72-
82+
#OSPNames p{
83+
margin: 10px 0px;
84+
}
7385
p {
7486
padding-left: 10px;
87+
margin: 0;
88+
// border:2px green solid;
7589
}

app/components/ApplicationsCard/ApplicationsCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const ApplicationsCard:React.FC<ApplicationCardProps> = (props) => {
2626
key={`card-${i}`}
2727
className={classes.paper}
2828
variant="outlined"
29-
onClick={() => handleClick(application[0], application[3], i)}
29+
onClick={() => handleClick(application[0], application[3], i)}
3030
>
3131
<div className="databaseIconContainer">
3232
<div className="databaseIconHeader"></div>

app/components/ApplicationsCard/styles.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../index.scss';
1+
@use '../../index.scss' as *;
22

33
.card {
44
display: flex;
@@ -8,7 +8,7 @@
88
padding: 0;
99
cursor: pointer;
1010
transition: all 0.5s;
11-
11+
// border: 2px solid green;
1212
&:after,
1313
&:before {
1414
content: ' ';

app/components/Contact/styles.scss

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../index.scss';
1+
@use '../../index' as *;
22

33
.contact {
44
display: flex;
@@ -10,13 +10,13 @@
1010
justify-items: center;
1111
top: 0;
1212
left: 0;
13+
height: auto;
1314
min-height: 100vh;
1415
opacity: 1;
1516
vertical-align: top;
1617
justify-content: center;
1718
align-items: center;
1819
color: $background;
19-
2020
}
2121
.contact-border {
2222
display: flex;
@@ -167,6 +167,12 @@ input[type='file'] {
167167
}
168168
}
169169

170-
.contact-blurb p{
170+
.contact-blurb p {
171+
margin: 0;
171172
font-weight: 300;
172-
}
173+
174+
}
175+
.contact-blurb h1 {
176+
margin: 0;
177+
padding: 0;
178+
}

app/components/DashboardIcons/styles.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
@import '../../index.scss';
1+
@use '../../index.scss' as *;
22

33
.dashboardIconWrapper {
44
margin-right: 37px;
5+
56
}
67

78
.dashboardIconArea {
@@ -25,6 +26,7 @@
2526
z-index: 1;
2627
top: 50px;
2728
right: -14px;
29+
2830
}
2931

3032
.dashboardIconArea .dashboardTooltip::after {
@@ -134,6 +136,7 @@
134136
.personIconArea {
135137
position: relative;
136138
display: inline-block;
139+
137140
}
138141

139142
.personIconArea:hover .personTooltip {

app/components/FirstLaunch/styles.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
.home {
99
background: $darkblue;
10+
1011
display: flex;
1112
flex-direction: column;
1213
align-content: center;

app/components/Header/styles.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
@import '../../index.scss';
1+
@use '../../index.scss' as *;
2+
23
.microservice-header {
34
width: 100%;
45
@include centerWithFlex(center);

0 commit comments

Comments
 (0)