Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chronos V14.0.0 #372

Merged
merged 250 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
250 commits
Select commit Hold shift + click to select a range
018bc83
dev env set up
sarhiri Apr 24, 2024
6b0d8bf
imports for new search bar component added
mdtagg Apr 25, 2024
8f6206f
Modularlized search bar component
mdtagg Apr 25, 2024
1f6f808
Dashboard icons extracted into seperate component
mdtagg Apr 25, 2024
f85b8db
search bar styles import added
mdtagg Apr 25, 2024
371b96f
extracted dashboard icons component
mdtagg Apr 25, 2024
f70d764
styles moved to repective compoents folders
mdtagg Apr 25, 2024
548ed0b
Applications card extracted into separate component
mdtagg Apr 25, 2024
f5c4584
styles moved to applicationsCard component
mdtagg Apr 25, 2024
1f0b31e
extracted from occupied component
mdtagg Apr 25, 2024
a63c7f8
stylesheets for Occupied component moved to Occupied
mdtagg Apr 25, 2024
5eddf77
stylesheets moved to Occupied folder
mdtagg Apr 25, 2024
c87a97c
import changed for occupied component
mdtagg Apr 25, 2024
c62f683
occupied folder added
mdtagg Apr 25, 2024
ceee56e
spacing added
mdtagg Apr 25, 2024
e855891
extracted svg into search bar component
mdtagg Apr 25, 2024
5863f13
spaces added
mdtagg Apr 26, 2024
2ac7c3e
added example state
mdtagg Apr 26, 2024
e573e05
added example button
mdtagg Apr 26, 2024
5e2a8a3
added styles for example button
mdtagg Apr 26, 2024
c9db5cb
deleted icons folder
mdtagg Apr 26, 2024
01ef0f9
Merge pull request #1 from oslabs-beta/modularization
sarhiri Apr 26, 2024
dcc33a1
Merge branch 'dev' of github.com:oslabs-beta/Chronos-MTSS into dev
sarhiri Apr 26, 2024
a6903d6
extracted styles from occupied component
mdtagg Apr 27, 2024
ac8d98b
mui styles now live in helper folder
mdtagg Apr 27, 2024
b173708
spacing removed
mdtagg Apr 27, 2024
401f04a
added types for new modal and set modal state to be imported to each …
mdtagg Apr 27, 2024
dfdc00e
Condensed modal states into single state
mdtagg Apr 27, 2024
57d1f73
Modal component refactor
mdtagg Apr 27, 2024
f918bf6
Merge pull request #2 from oslabs-beta/modularization
stephenhyang Apr 27, 2024
bcf52ac
Merge branch 'dev' of github.com:oslabs-beta/Chronos-MTSS into dev
sarhiri Apr 27, 2024
2630911
removed unused styles
mdtagg Apr 28, 2024
fbd0a9b
removed commented out code
mdtagg Apr 28, 2024
7697e43
Occupied component styling broken up and extracted to components
mdtagg Apr 28, 2024
b299a5f
removed redundant div and associated styles. Added padding to retain …
mdtagg Apr 28, 2024
1480d17
explanation for where connect db is function gets fired added
mdtagg Apr 28, 2024
3e0afbf
explanations added
mdtagg Apr 28, 2024
dae6b8b
explanations added
mdtagg Apr 28, 2024
70ff8d0
updated array destructured values with appropriate names
mdtagg Apr 28, 2024
cff8f92
start of modularizing modals
stephenhyang Apr 29, 2024
5f874ce
Merge pull request #3 from oslabs-beta/modularization
stephenhyang Apr 29, 2024
194185c
Merge pull request #4 from oslabs-beta/stateUpdate
stephenhyang Apr 29, 2024
9527960
initial search bar feature
sarhiri Apr 29, 2024
de6ccfc
Updated file paths for modularization changes
stephenhyang Apr 29, 2024
d2092a2
Merge branch 'dev' of github.com:oslabs-beta/Chronos-MTSS into dev
sarhiri Apr 29, 2024
970d048
Merge branch 'dev' into stephenfeature
stephenhyang Apr 29, 2024
3f5b941
Removed examples state from dashboard container
mdtagg Apr 30, 2024
fb76bf4
unused props removed from memoized componetns
mdtagg Apr 30, 2024
7593af1
console logs removed
mdtagg Apr 30, 2024
b2bdf1d
button removed from material UI not being used
mdtagg Apr 30, 2024
81825c9
styling added to example button
mdtagg Apr 30, 2024
14ac040
Merge pull request #5 from oslabs-beta/mvp
sarhiri Apr 30, 2024
bae3625
nav in graphs bar extracted into seperate component
mdtagg Apr 30, 2024
3b55a6e
extracted string to color function into helper folder
mdtagg Apr 30, 2024
1e2ee13
Metric containers now rendered through ternary
mdtagg Apr 30, 2024
a6f09a9
created About folder to modularizing About.tsx
tedpham3 Apr 30, 2024
e889a46
added modulized About, added Contact folder for next modulization
tedpham3 Apr 30, 2024
4db81c3
modularized addmodal and servicesmodal components
stephenhyang Apr 30, 2024
bafcdbf
light adjustments to structure of compoment
mdtagg Apr 30, 2024
855da62
completed Contact modularization
tedpham3 Apr 30, 2024
809958c
Merge pull request #6 from oslabs-beta/graphContainer/refactor
sarhiri Apr 30, 2024
e46be48
Modularized AddModal and ServicesModal components
stephenhyang Apr 30, 2024
0c47451
Merge pull request #8 from oslabs-beta/stephenfeature
mdtagg Apr 30, 2024
8f55a4d
premerge
tedpham3 Apr 30, 2024
618fd39
merged dev
tedpham3 Apr 30, 2024
72125a5
Merge pull request #9 from oslabs-beta/ted-module
mdtagg Apr 30, 2024
cc6d949
Merge branch 'dev' of github.com:oslabs-beta/Chronos-MTSS into dev
sarhiri Apr 30, 2024
7eb60c1
deleted unused files, moved some work in progress file in the folder,…
tedpham3 Apr 30, 2024
ba68df7
modularized header, define an interface in Header that describe all t…
tedpham3 Apr 30, 2024
d1ae658
added comments, removed console.log
mdtagg Apr 30, 2024
2c8157e
modularized AwsModal, deleted unnecessary code in other modals
stephenhyang Apr 30, 2024
5c51f61
modularized Setting, moved scss to its folder
tedpham3 Apr 30, 2024
dae52ca
modularized WindowBar, added its scss file
tedpham3 Apr 30, 2024
ac3ec98
Merge pull request #10 from oslabs-beta/stephenfeature
sarhiri Apr 30, 2024
00a7a20
Merge branch 'dev' of github.com:oslabs-beta/Chronos-MTSS into dev
sarhiri Apr 30, 2024
ccfb1ba
pre-pull dev
tedpham3 Apr 30, 2024
75fb379
pre merge
tedpham3 Apr 30, 2024
3833b31
Merge pull request #11 from oslabs-beta/ted-module
mdtagg Apr 30, 2024
8ebe547
Merge branch 'dev' of github.com:oslabs-beta/Chronos-MTSS into dev
sarhiri Apr 30, 2024
524cc1e
dev merge
mdtagg Apr 30, 2024
a028ae5
Merge pull request #12 from oslabs-beta/graphContainer/refactor
tedpham3 Apr 30, 2024
08f900e
Merge branch 'dev' into sofia
sarhiri Apr 30, 2024
c84e723
Merge branch 'dev' of github.com:oslabs-beta/Chronos-MTSS into dev
sarhiri Apr 30, 2024
343bdd9
Merge branch 'dev' of github.com:oslabs-beta/Chronos-MTSS into sofia
sarhiri Apr 30, 2024
205d793
Merge branch 'dev' into sofia
sarhiri Apr 30, 2024
83f3be7
Bug fix: Settings component
mdtagg May 1, 2024
16e06be
Merge pull request #13 from oslabs-beta/componentsrefactor
sarhiri May 1, 2024
9c1ce04
Merge branch 'dev' of github.com:oslabs-beta/Chronos-MTSS into dev
sarhiri May 1, 2024
9c87bb3
Merge branch 'dev' into sofia
sarhiri May 1, 2024
520d8b8
Bug fix: when graphs container loaded it did not have correct app tit…
mdtagg May 1, 2024
8ffa343
Merge pull request #14 from oslabs-beta/bug-fix
sarhiri May 1, 2024
c68dafa
Merge branch 'dev' of github.com:oslabs-beta/Chronos-MTSS into dev
sarhiri May 1, 2024
97de0f4
Merge branch 'dev' into sofia
sarhiri May 1, 2024
d258407
Bare minimum mvp working
mdtagg May 1, 2024
0e0e25c
Merge pull request #15 from oslabs-beta/mvp
sarhiri May 1, 2024
95b4775
Merge branch 'dev' of github.com:oslabs-beta/Chronos-MTSS into dev
sarhiri May 1, 2024
baccfe0
Merge branch 'dev' into sofia
sarhiri May 1, 2024
292585f
new button styling
sarhiri May 1, 2024
a7e362e
Merge pull request #16 from oslabs-beta/sofia
mdtagg May 1, 2024
5691e51
branch protection test
mdtagg May 1, 2024
ff9ae32
console log removed
mdtagg May 1, 2024
c0b6b77
Merge pull request #17 from oslabs-beta/mvp
sarhiri May 1, 2024
7044222
fixed example bug
mdtagg May 1, 2024
09a8717
Merge pull request #18 from oslabs-beta/branchFix
sarhiri May 1, 2024
a410461
branch protection test
mdtagg May 1, 2024
9703c7d
branch protection test
mdtagg May 1, 2024
4b0da1d
console log removed from branch test
mdtagg May 1, 2024
a60cd78
Exit example implemented
mdtagg May 2, 2024
2f33208
awscomtainer modularized
tedpham3 May 2, 2024
4cd02fc
moved scss file to AwsGraphContainer and DashboardContainer
tedpham3 May 2, 2024
ef2e600
modularized Inspect
tedpham3 May 2, 2024
7f881bf
MainContainer modularized
tedpham3 May 2, 2024
af08add
search bar function removed to facilitate rendering multiple components
mdtagg May 2, 2024
3337f85
Multple cards can now be added at once
mdtagg May 2, 2024
e0e538e
Moved search filter in occupied component
mdtagg May 3, 2024
aef3529
Modularized container, move every scss files to its own component, mo…
tedpham3 May 3, 2024
3fda80e
removed stylesheet for app, merge every global files into index.scss
tedpham3 May 3, 2024
6cccea8
Delete card functionality refactor
mdtagg May 3, 2024
0a0ed94
made Ifield data type any temporarily
mdtagg May 3, 2024
83d19e5
Merge pull request #19 from oslabs-beta/ted-modular
mdtagg May 3, 2024
0ec96c0
merged ted-modular branch
mdtagg May 3, 2024
5e8a6fd
resolved conflicts with ted-modular
mdtagg May 3, 2024
b75a750
Merge pull request #20 from oslabs-beta/feature/example
stephenhyang May 4, 2024
c60fc6e
added redux devTools, working on adding react devTools
stephenhyang May 4, 2024
ef1cb41
MUI updated package installed
sarhiri May 5, 2024
c8c5ccd
main MUI update, app working
sarhiri May 5, 2024
c607f6a
final MUI update before deleting old version. app not crashed
sarhiri May 5, 2024
047a49d
Fully updated MUI
sarhiri May 5, 2024
1382d3e
console logs added for traverseal of npm package
mdtagg May 6, 2024
832c4f1
console logs added
mdtagg May 6, 2024
1801909
console logs added
mdtagg May 6, 2024
94460b2
Ports changed to 5001
mdtagg May 6, 2024
77ce10f
changed port to 5001
mdtagg May 6, 2024
dcf2840
changed default ports to 5001
mdtagg May 6, 2024
35a35eb
Merge branch 'dev' into stephenfeature
stephenhyang May 6, 2024
bdf3b1c
Merge pull request #21 from oslabs-beta/MUI
mdtagg May 6, 2024
38b7b07
Merge branch 'dev' into stephenfeature
stephenhyang May 6, 2024
b48f4c3
working toward a solution for data presistance issue in mongo.health …
mdtagg May 9, 2024
5aa4ed2
added redux devtools to electron app, installed react devtools versio…
stephenhyang May 9, 2024
73895c5
created eventHandler.ts for ApplicationCard.tsx, the file itself hold…
tedpham3 May 9, 2024
2087549
updated ApplicationCard, functioning
tedpham3 May 9, 2024
4c62f5b
added logic handler for GraphNavBar.tsx
tedpham3 May 9, 2024
3730a14
console logs added to check execution order
mdtagg May 9, 2024
8adbc25
Health metrics function rewrite
mdtagg May 9, 2024
6328d2f
mongo.health rewrite
mdtagg May 9, 2024
bde42f8
updated serviceslink component with deconstructed props
stephenhyang May 9, 2024
0cb3058
Merge pull request #22 from oslabs-beta/stephenfeature
tedpham3 May 10, 2024
06a3f35
Filter modified to prevent mongo error
mdtagg May 10, 2024
d9b5017
Current metrics now used to determine how new metrics are added to db
mdtagg May 10, 2024
40f68b2
sample envs deleted
mdtagg May 10, 2024
3ceb4c0
personal helper function removed in favor of original
mdtagg May 10, 2024
51d8d98
Refactored mongo.health function further
mdtagg May 11, 2024
e2cb1be
pre push commit
tedpham3 May 11, 2024
373ca45
added select all services button
stephenhyang May 11, 2024
53eafb6
Added comments to explain sections of code, removed inaccuratly descr…
mdtagg May 11, 2024
adcc071
Removed sections of code not in use, adjusted tabbing
mdtagg May 11, 2024
88a527d
Current metrics moved inside of health metrics function
mdtagg May 11, 2024
6d430d4
deconstructed props in all modal components
stephenhyang May 11, 2024
7762c3e
Grafana api key section commented out temporarily
mdtagg May 11, 2024
f2168fd
Merge pull request #24 from oslabs-beta/stephenfeature
mdtagg May 11, 2024
14b2319
Merge branch 'dev' into chronos-npm
sarhiri May 11, 2024
2a00b5d
Merge pull request #25 from oslabs-beta/chronos-npm
sarhiri May 11, 2024
f3e688f
modularized ApplicationCard,added EventHandler
tedpham3 May 11, 2024
7918cf5
Merge branch 'dev' into ted-modular
tedpham3 May 11, 2024
387e9bc
Merge pull request #26 from oslabs-beta/ted-modular
stephenhyang May 11, 2024
9885eaf
updated splash time loading and speed optimization
sarhiri May 12, 2024
a624301
Example button updated
sarhiri May 12, 2024
4e0f68d
added chronos npm package folder locally to each service for containe…
mdtagg May 12, 2024
af075c4
refactoring fetch health data
mdtagg May 12, 2024
2fc0ee2
removed promise.all as well as a couple unnessary awaits
mdtagg May 12, 2024
e63a018
temp console log add
mdtagg May 13, 2024
2d8b048
Merge pull request #27 from oslabs-beta/splash
mdtagg May 13, 2024
b1bf47a
corrected file path for About, Contact, Header, and Settings react te…
stephenhyang May 13, 2024
8dbc4b3
metric search functionality updated
sarhiri May 13, 2024
322d335
Updated seach functionality
sarhiri May 13, 2024
26a93f8
Merge pull request #28 from oslabs-beta/search-metrics
stephenhyang May 13, 2024
689b356
updating contributors
sarhiri May 13, 2024
cdcf391
text styling
sarhiri May 13, 2024
2483c09
centered about component
sarhiri May 13, 2024
cd13e57
updated About and Header tests to reflect new updates to components
stephenhyang May 13, 2024
938fd9b
updated EnvModal
sarhiri May 14, 2024
c689f88
updated ease of readability for contact component
sarhiri May 14, 2024
edf4013
updated light and dark
sarhiri May 14, 2024
d148a54
Merge pull request #29 from oslabs-beta/styling
mdtagg May 14, 2024
39d684e
Added saved metrics from application context to component
mdtagg May 14, 2024
508ed0e
unused variable removed
mdtagg May 14, 2024
183e886
Changed the metrics model schema to include category
mdtagg May 14, 2024
4f4e149
changed charts back to all to start at the metrics page on app card c…
mdtagg May 14, 2024
ee7ed1c
console logs removed
mdtagg May 14, 2024
c236686
The targeted keys state is now set from the rows function
mdtagg May 14, 2024
43e0b09
opened up element to seperate lines
mdtagg May 14, 2024
0c483b7
The selected metrics state is now in sidebar container
mdtagg May 14, 2024
aae092c
SQL examples were removed from example list
mdtagg May 14, 2024
4c3cf60
first level UI updates
sarhiri May 14, 2024
b476ae5
second level UI updates
sarhiri May 14, 2024
c3a465f
Merge branch 'dev' into styling
sarhiri May 14, 2024
033010c
style finalized
sarhiri May 14, 2024
2540496
removal of unused code
mdtagg May 14, 2024
0858a89
conditional render moved to own line for readability
mdtagg May 14, 2024
3c0222a
Merge pull request #30 from oslabs-beta/styling
mdtagg May 14, 2024
1142b44
merge from dev
mdtagg May 14, 2024
b7df553
merged dev
mdtagg May 14, 2024
fc15b2b
grafana tokens removed
mdtagg May 14, 2024
6f8890a
Removed local chronos npm packages in docker folder
mdtagg May 14, 2024
794b813
Merge pull request #32 from oslabs-beta/health-context-refactor
tedpham3 May 14, 2024
54dcee9
updated button hover
sarhiri May 15, 2024
1b79a98
grid table done
sarhiri May 15, 2024
a97353f
added makefile
tedpham3 May 15, 2024
bc2a0a7
added makefile DIRS for auth client and client-dev
tedpham3 May 15, 2024
75db115
added makefileDIRS for common and event-bus
tedpham3 May 15, 2024
f084b7e
added makeFile DIRS for inventory and items
tedpham3 May 15, 2024
dc54bf3
defined ENV_CONTENT in makefile
tedpham3 May 15, 2024
e6c58da
redirect the ENV content mongo to localhost instead of the public dat…
tedpham3 May 15, 2024
fb343ed
added makeFile script to run create dir
tedpham3 May 15, 2024
af1deb9
added makeFile script to do makefile all which create all the directo…
tedpham3 May 15, 2024
c04b89d
adjust the run start to run start:electron
tedpham3 May 15, 2024
fa30e98
added new script start:mciroservices
tedpham3 May 15, 2024
d53b43e
added new script start:electron
tedpham3 May 15, 2024
d15fd85
adjust the script location
tedpham3 May 15, 2024
78000fa
moved makefile, adjust its DIRS
tedpham3 May 15, 2024
8a4aca2
rename .env file in microservices example to sample, deleted all depe…
tedpham3 May 15, 2024
35406b8
Merge pull request #33 from oslabs-beta/styling
stephenhyang May 15, 2024
2edc85a
finished file automation, prepush commit
tedpham3 May 15, 2024
fce0ca1
Merge pull request #34 from oslabs-beta/ted-dev
stephenhyang May 15, 2024
4f8c54c
AWSGraphsContainer remodularization
mdtagg May 15, 2024
7af63fd
moved styles associated with aws charts to component folders
mdtagg May 15, 2024
0403094
updated Header component and Header.test to reflect changes
stephenhyang May 15, 2024
55cdab1
Merge branch 'dev' into stephenfeature
stephenhyang May 15, 2024
c1b8301
removed redundant code
mdtagg May 15, 2024
e982757
Merge pull request #35 from oslabs-beta/stephenfeature
tedpham3 May 15, 2024
8fd611d
merged dev
mdtagg May 15, 2024
f883fcd
sample.env changed to env
mdtagg May 15, 2024
6123883
edited Readme
tedpham3 May 15, 2024
a8a3a24
Merge branch 'dev' into ted-dev
tedpham3 May 15, 2024
8732cd6
Changed initial page route
mdtagg May 15, 2024
454f3fe
redundant code removed
mdtagg May 15, 2024
e3f7955
console logs removed
mdtagg May 15, 2024
09992bf
docker npm package changed from local version to remote version
mdtagg May 15, 2024
244ce69
fixed the Readme to run the app and microservices, added gif for card…
tedpham3 May 15, 2024
c25bf35
Merge pull request #38 from oslabs-beta/health-context-refactor
stephenhyang May 15, 2024
b522de7
merge with dev
tedpham3 May 15, 2024
75eafd2
Merge branch 'dev' into ted-dev
tedpham3 May 15, 2024
be9b24f
updated jest config file
stephenhyang May 15, 2024
a0bb75c
Merge branch 'dev' into stephenfeature
stephenhyang May 15, 2024
2a7722d
Merge pull request #40 from oslabs-beta/ted-dev
mdtagg May 15, 2024
3bfae72
updated main ReadME
tedpham3 May 16, 2024
8a4046d
Merge pull request #41 from oslabs-beta/ted-dev
stephenhyang May 16, 2024
f9574f2
removed unused image files in assets folder
stephenhyang May 16, 2024
baf31c9
Merge pull request #42 from oslabs-beta/stephenfeature
mdtagg May 16, 2024
ea70be2
Merge pull request #43 from oslabs-beta/dev
stephenhyang May 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 45 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,37 @@ Chronos is a comprehensive developer tool that monitors the health and web traff

## What's New?

### Chronos 13.0
### Chronos 14.0

<div>

Contributors:
[Michael Tagg](https://github.com/mdtagg),
[Ted Pham](https://github.com/TedPham397),
[Sofia Sarhiri](https://github.com/sarhiri),
[Stephen Yang](https://github.com/stephenhyang),

</div>
Updates:
<li>Implemented a new visualization button (example) to expedite data rendering processes.</li>
<li>Refactored microservices example, switched over to community version of MongoDB for easier URI implementation.</li>
<li>Modularized cluttered components into modular units to improve code readability and reusability.</li>
<li>Optimized startup scripts to reduce application load time and streamline environment configuration.</li>
<li>Upgraded Material-UI from version 4 to version 5, adapting to new API changes and improving UI responsiveness. </li>
<li>Refactored portions of the electron app </li>
<li>Refactored data parsing logic to reduce unnecessary rerenders and improve app performance</li>
<li>Fixed data bottle necks in the local npm packages, data is now able to flow to microservices for data visualization</li>


<a href='link here'>Version 14.0 Medium Article</a>

### **Iteration Log**

<details><summary>Chronos 13.0</summary>
<ul>
<div>


Contributors:
[Elsa Holmgren](https://github.com/ekh88),
[Mckenzie Morris](https://github.com/mckenzie-morris),
Expand All @@ -33,15 +60,18 @@ Contributors:

</div>
Updates:
<li>Created new and improved microservices application with updated syntax to better demonstrate Chronos' capabilities</li>
<li>Dockerized microservices application to demonstrate Chronos within a containerized environment</li>
<li>Added visulization of Chronos' codebase to illustrate overall structure</li>
<li>Simplified installation and startup instructions in the root directory README file</li>
<li>Improved documentation in chronos_npm_package README file for easier on-boarding </li>
<ul>
<li>Created new and improved microservices application with updated syntax to better demonstrate Chronos' capabilities</li>
<li>Dockerized microservices application to demonstrate Chronos within a containerized environment</li>
<li>Added visulization of Chronos' codebase to illustrate overall structure</li>
<li>Simplified installation and startup instructions in the root directory README file</li>
<li>Improved documentation in chronos_npm_package README file for easier on-boarding </li>
</ul>

<a href='https://medium.com/@holmgren.e/crisis-averted-chronos-guards-against-development-disasters-8f3653f3c136'>Version 13.0 Medium Article</a>

### **Iteration Log**
</ul>
</details>

<details><summary>Chronos 12.0</summary>
<ul>
Expand Down Expand Up @@ -186,7 +216,7 @@ Updates:
</ul>
</details>

### With Chronos 13.0
### With Chronos 14.0

<a href="https://chronoslany.com/">
<img src="assets/demo.gif" alt="Chronos" title="Chronos" align="center" height="500" width="auto" />
Expand All @@ -196,7 +226,8 @@ Updates:

## Overview of the CodeBase

- Instead of the typical folders & files view, a visual representation of the code is created. 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 <a href='https://mango-dune-07a8b7110.1.azurestaticapps.net/?repo=oslabs-beta%2FChronos'>here</a>.
- 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
<a href='https://mango-dune-07a8b7110.1.azurestaticapps.net/?repo=oslabs-beta%2FChronos'>here</a>.
<img src="assets/codebase_visulization.png" alt="codebase visulization" align="center" height="500"/>

## Features
Expand Down Expand Up @@ -259,11 +290,11 @@ export DISPLAY="`sed -n 's/nameserver //p' /etc/resolv.conf`:0"
### Running the Chronos desktop app in development mode (WSL Incompatible)

1. From the root directory, run `npm install`
2. Run `npm run build`
3. For Windows users, run `npm audit fix` or `npm audit fix --force` if prompted
4. Open a new terminal and run `npm run dev:app` to start the Webpack development server
5. Open a new terminal and run `npm run dev:electron` to start the Electron UI in development mode.
6. Refer to `Examples` sections below to spin up example applications.
2. Run `npm run start:electron` to start the electron app.
3. Run `npm audit fix` or `npm audit fix --force` if prompted
4. Refer to `Examples` sections below to spin up example applications.
(Recommended):
If you have mongo community edition running locally just run `npm run start:microservices` to start populating database with server data(more detail in Microservices Example section).

#

Expand Down
2 changes: 1 addition & 1 deletion __backend-tests__/chronosMethods.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { EcoTwoTone } = require('@material-ui/icons');
const { EcoTwoTone } = require('@mui/icons-material');
const Chronos = require('../chronos_npm_package/chronos.js');
const helpers = require('../chronos_npm_package/controllers/utilities.js');
const hpropagate = require('hpropagate');
Expand Down
6 changes: 3 additions & 3 deletions __backend-tests__/mockdbsetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ const connectDB = async () => {
useNewUrlParser: true,
useUnifiedTopology: true,
}).then((result) => {
console.log(result.connection.readyState)
console.log(result.connection.host)
// console.log(result.connection.readyState)
// console.log(result.connection.host)
}).catch((err) => {
console.log('Unable to connect to MongoMemoryServer')
// console.log('Unable to connect to MongoMemoryServer')
});
};

Expand Down
6 changes: 3 additions & 3 deletions __tests__/components/About.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { render, screen } from '@testing-library/react';
import About from '../../app/components/About';
import About from '../../app/components/About/About';
import DashboardContextProvider from '../../app/context/DashboardContext';

describe('About Page', () => {
Expand All @@ -22,7 +22,7 @@ describe('About Page', () => {
expect(element.querySelectorAll('h3').length).toBe(3);
});

it('Should have one div', () => {
expect(element.querySelectorAll('div').length).toBe(1);
it('Should have three divs', () => {
expect(element.querySelectorAll('div').length).toBe(3);
});
});
2 changes: 1 addition & 1 deletion __tests__/components/Contact.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { render, screen } from '@testing-library/react';
import Contact from '../../app/components/Contact';
import Contact from '../../app/components/Contact/Contact';
import DashboardContextProvider from '../../app/context/DashboardContext';

describe('Contact Page', () => {
Expand Down
63 changes: 55 additions & 8 deletions __tests__/components/Header.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
/* eslint-disable import/no-named-as-default-member */
import React from 'react';
import { render, fireEvent, screen } from '@testing-library/react';
import Header from '../../app/components/Header';
import Header from '../../app/components/Header/Header';
import ServiceDropdown from '../../app/components/Header/ServiceDropdown';
import { DashboardContext } from '../../app/context/DashboardContext';
import { ApplicationContext } from '../../app/context/ApplicationContext';
import { HashRouter as Router } from 'react-router-dom';
Expand Down Expand Up @@ -55,13 +56,59 @@ describe('Speed Chart', () => {
});

// trying to test the functionality of component not passed as props
it('Should check/uncheck the checkbox when clicking services', () => {
// const checkBox = screen.getByRole('checkbox');
// fireEvent.click(checkBox);
// expect(checkBox.parentElement).toHaveClass('selected');
// fireEvent.click(checkBox);
// expect(checkBox.parentElement).not.toHaveClass('selected');
});
// it('Should check/uncheck the checkbox when clicking services', () => {
// const checkBox = screen.getByTestId('checkbox');
// fireEvent.click(checkBox);
// expect(checkBox.parentElement).toHaveClass('selected');
// fireEvent.click(checkBox);
// expect(checkBox.parentElement).not.toHaveClass('selected');
// });

it('Should also change selectModal to true or false', () => {});
});

describe('ServiceDropdown test', () => {
it('opens and closes ServiceDropdown component on click', () => {
const servicesData = [
{ microservice: 'inventory' },
{ microservice: 'orders' },
{ microservice: 'auth' }
];

// Define initial selected services state
const selectedServices = [];

// Define a mock toggleDropdown function
const toggleDropdown = jest.fn();

// Render the ServiceDropdown component
render(
<ServiceDropdown
servicesData={servicesData}
selectedServices={selectedServices}
setSelectedServices={jest.fn()} // Mock setSelectedServices function
isOpen={false} // Assuming dropdown is closed initially
toggleDropdown={toggleDropdown}
/>
);

// Assert that dropdown is initially closed
expect(screen.queryByText('inventory')).not.toBeInTheDocument();

// simulate click event on button within ServiceDropdown component
const selectButton = screen.getByTestId('ssButton');
fireEvent.click(selectButton);

// expect the toggleDropdown function to have been called
expect(toggleDropdown).toHaveBeenCalled();

// Assert that dropdown is now open by checking that service is rendered
// expect(screen.getByText('inventory')).toBeInTheDocument();

// // Simulate click event to close the dropdown
// fireEvent.click(selectButton);

// // Assert that dropdown is now closed by checking that service is no longer rendered
// expect(screen.getByText('inventory')).not.toBeInTheDocument();
});
});
2 changes: 1 addition & 1 deletion __tests__/components/Settings.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { render, fireEvent, screen } from '@testing-library/react';
import Settings from '../../app/components/Settings';
import Settings from '../../app/components/Setting/Setting';
import { DashboardContext } from '../../app/context/DashboardContext';
import '@testing-library/jest-dom';

Expand Down
8 changes: 4 additions & 4 deletions __tests__/components/SignUp.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { HashRouter as Router } from 'react-router-dom';

jest.mock('electron', () => ({ ipcRenderer: { sendSync: jest.fn() } }));

describe('Create Signup Page', () => {
xdescribe('Create Signup Page', () => {
beforeEach(() => {
render(
<Router>
Expand All @@ -18,11 +18,11 @@ describe('Create Signup Page', () => {
);
});

it('should render', () => {
xit('should render', () => {
expect(screen).toBeTruthy();
});

it('Should contain an h1, h2, form, two buttons, and three inputs', () => {
xit('Should contain an h1, h2, form, two buttons, and three inputs', () => {
const element = screen.getByTestId('SignUp');
expect(element.querySelectorAll('h1').length).toBe(1);
expect(element.querySelectorAll('h2').length).toBe(1);
Expand All @@ -31,7 +31,7 @@ describe('Create Signup Page', () => {
expect(element.querySelectorAll('input').length).toBe(4);
});

it('Sign up button should submit email, username, and password to addUser', async () => {
xit('Sign up button should submit email, username, and password to addUser', async () => {
screen.debug();

const username = screen.getByPlaceholderText('enter username');
Expand Down
6 changes: 3 additions & 3 deletions app/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import Splash from './components/Splash';
import DashboardContainer from './containers/DashboardContainer';
import './stylesheets/scrollBar.scss';
import Splash from './components/Splash/Splash';
import DashboardContainer from './containers/DashboardContainer/DashboardContainer';
import './index.scss';


// this is the fitness gram pacer test
Expand Down
1 change: 0 additions & 1 deletion app/assets/search.svg

This file was deleted.

64 changes: 27 additions & 37 deletions app/charts/AwsChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,20 @@ import React, { useState } from 'react';
import Plot from 'react-plotly.js';
import { all, solo as soloStyle } from './sizeSwitch';

// interface AwsCpuChartProps {
// key: string;
// renderService: string;
// metric: string;
// timeList: any;
// valueList: any;
// sizing: string;
// colourGenerator: Function;
// }

interface SoloStyles {
height: number;
width: number;
}

interface IPlotlyData {
name: any;
x: any;
y: any;
type: any;
mode: any;
marker: { color: string };
}

/**
* @params props - the props object containing relevant data.
* @desc Handles AWS Charts. Memoized component to generate an AWS chart with formatted data.
Expand All @@ -26,34 +25,31 @@ interface SoloStyles {
const AwsChart: React.FC<any> = React.memo(props => {
const { renderService, metric, timeList, valueList, colourGenerator, sizing } = props;
const [solo, setSolo] = useState<SoloStyles | null>(null);

setInterval(() => {
if (solo !== soloStyle) {
setSolo(soloStyle);
}
}, 20);

const createChart = () => {
const timeArr = timeList?.map((el: any) => moment(el).format('kk:mm:ss'));
// const hashedColour = colourGenerator(renderService);
let plotlyData: {
name: any;
x: any;
y: any;
type: any;
mode: any;
marker: { color: string };
};
plotlyData = {
name: metric,
x: timeArr,
y: valueList,
type: 'scattergl',
mode: 'lines',
marker: { color: colourGenerator() },
};
const sizeSwitch = sizing === 'all' ? all : solo;
const timeArr = timeList?.map((el: any) => moment(el).format('kk:mm:ss'));

let plotlyData:IPlotlyData= {
name: metric,
x: timeArr,
y: valueList,
type: 'scattergl',
mode: 'lines',
marker: { color: colourGenerator() },
};

return (
const sizeSwitch = sizing === 'all' ? all : solo;

return (
<div
className="chart"
data-testid="Health Chart"
>
<Plot
data={[plotlyData]}
config={{ displayModeBar: false }}
Expand Down Expand Up @@ -90,12 +86,6 @@ const AwsChart: React.FC<any> = React.memo(props => {
},
}}
/>
);
};

return (
<div className="chart" data-testid="Health Chart">
{createChart()}
</div>
);
});
Expand Down
Loading
Loading