Skip to content

Commit bd9e69e

Browse files
Merge pull request #126 from oslabs-beta/main
SeeQR V14.0 Launch
2 parents 703fb91 + b4d9795 commit bd9e69e

File tree

150 files changed

+12513
-11349
lines changed

Some content is hidden

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

150 files changed

+12513
-11349
lines changed

Diff for: .eslintrc.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
"rules": {
3636
"react/jsx-filename-extension": [1, { "extensions": [".jsx", ".tsx"] }],
3737

38+
"no-shadow": "off",
39+
"@typescript-eslint/no-shadow": ["error"],
40+
3841
"no-use-before-define": "off",
3942
"@typescript-eslint/no-use-before-define": ["error"],
4043

@@ -69,10 +72,7 @@
6972
"react/jsx-props-no-spreading": "off",
7073

7174
"camelcase": "off"
72-
73-
// "import/no-extraneous-dependencies": ["error", { "devDependencies": true }], **trying to resolve the electron issue
7475
},
75-
// "settings": "import/core-modules: [ electron ]", **trying to resolve the electron issue
7676
"settings": {
7777
"react": {
7878
"version": "detect"
@@ -84,7 +84,8 @@
8484
"typescript": {
8585
"alwaysTryTypes": true
8686
}
87-
}
87+
},
88+
"import/core-modules": ["electron"] // resolves "electron s/b listed in proj dep, not devDep https://github.com/SimulatedGREG/electron-vue/issues/423
8889
},
8990
"root": true
9091
}

Diff for: .vscode/launch.json

+45-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,50 @@
1+
// {
2+
// // Use IntelliSense to learn about possible attributes.
3+
// // Hover to view descriptions of existing attributes.
4+
// // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
// "version": "0.2.0",
6+
// "configurations": [
7+
// {
8+
// "type": "chrome",
9+
// "request": "launch",
10+
// "name": "Launch Chrome against localhost",
11+
// "url": "http://localhost:8080",
12+
// "webRoot": "${workspaceFolder}"
13+
// }
14+
// ]
15+
// }
16+
17+
// New Electron tutorial launch.json code
118
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
519
"version": "0.2.0",
20+
"compounds": [
21+
{
22+
"name": "Main + renderer",
23+
"configurations": ["Main", "Renderer"],
24+
"stopAll": true
25+
}
26+
],
627
"configurations": [
28+
{
29+
"name": "Renderer",
30+
"port": 9222,
31+
"request": "attach",
32+
"type": "chrome",
33+
"webRoot": "${workspaceFolder}"
34+
},
35+
{
36+
"name": "Main",
37+
"type": "node",
38+
"request": "launch",
39+
"cwd": "${workspaceFolder}",
40+
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
41+
"windows": {
42+
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
43+
},
44+
"args": [".", "--remote-debugging-port=9222"],
45+
"outputCapture": "std",
46+
"console": "integratedTerminal"
47+
},
748
{
849
"type": "chrome",
950
"request": "launch",
@@ -12,4 +53,4 @@
1253
"webRoot": "${workspaceFolder}"
1354
}
1455
]
15-
}
56+
}

Diff for: DEV_README.md

+111-32
Large diffs are not rendered by default.

Diff for: README.md

+16-12
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<img src="./assets/readmeImages/logo_readme.png" height=300/>
44

55
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/oslabs-beta/SeeQR)
6-
![Release: 13.0.0](https://img.shields.io/badge/Release-13.0.0-red)
6+
![Release: 14.0.0](https://img.shields.io/badge/Release-14.0.0-red)
77
![License: MIT](https://img.shields.io/badge/License-MIT-orange.svg)
88
![Contributions Welcome](https://img.shields.io/badge/Contributions-welcome-blue.svg)
99
[![Twitter](https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Ftwitter.com%2Ftheseeqr)](https://twitter.com/theseeqr)
@@ -15,7 +15,7 @@
1515

1616
</div>
1717

18-
### For the latest in-depth docs for v13.0.0, please visit our [docs site](http://www.seeqrapp.com/docs).
18+
### For the latest in-depth docs for v14.0.0, please visit our [docs site](http://www.seeqrapp.com/docs).
1919

2020
## Table of Contents
2121

@@ -41,6 +41,7 @@ To get started on contributing and editing databases to this project:
4141

4242
- [Electron](https://www.electronjs.org/docs)
4343
- [React](https://reactjs.org/)
44+
- [React-Redux](https://react-redux.js.org/)
4445
- [Typescript](https://www.typescriptlang.org/)
4546
- [PostgreSQL](https://www.postgresql.org/)
4647
- [MySQL](https://www.mysql.com/)
@@ -76,14 +77,14 @@ To get started on contributing and editing databases to this project:
7677
- Databases
7778

7879
- In the 'DATABASES' view, an interactive Entity Relationship Diagram (`ER DIAGRAM`) is displayed for the selected database.
80+
7981
- Users can now save table layout in version 13.
8082
<br>
8183

8284
<div align="center">
8385
<img src="./assets/readmeImages/gifs/save_db_layout.gif" width=800/>
8486
</div>
8587

86-
8788
- Users can select `TABLE` to see selected database in tabular form.
8889

8990
- Users can select a table from a list of all the tables in the schema of the currently selected database.
@@ -126,11 +127,12 @@ To get started on contributing and editing databases to this project:
126127
</div>
127128

128129
<br>
130+
129131
- Create/Edit Database
130132

131-
- Users can create a new database from scratch by clicking the `Create New Database` button at the bottom of the sidebar.
132-
- Users can modify the newly created database as well as any existing databases using the `ER Diagram` to create/change/delete tables and columns.
133-
- The `Export` button will write a .sql file on the user's desktop of the selected database.
133+
- Users can create a new database from scratch by clicking the `Create New Database` button at the bottom of the sidebar.
134+
- Users can modify the newly created database as well as any existing databases using the `ER Diagram` to create/change/delete tables and columns.
135+
- The `Export` button will write a .sql file on the user's desktop of the selected database.
134136

135137
<br>
136138
<div align="center">
@@ -146,11 +148,11 @@ To get started on contributing and editing databases to this project:
146148
- To execute the query, simply select the 'RUN QUERY' button at the bottom of the panel or press 'Ctrl-Enter' on the keyboard.
147149
- Users have the option to run multiple queries, allowing users to obtain more reliable testing results.
148150
- Version 13 introduces a new feature that enables users to access and view previous queries. Upon selecting a previous query, it populates the query input field, allowing users to make edits before executing.
149-
</br>
150-
<br>
151-
<div align="center">
151+
</br>
152+
<br>
153+
<div align="center">
152154

153-
<img src="./assets/readmeImages/gifs/query.gif" width=800/>
155+
<img src="./assets/readmeImages/gifs/query.gif" width=800/>
154156

155157
</div>
156158
<br />
@@ -206,11 +208,13 @@ The outcome results from each query, both retrieved data and analytics, are stor
206208

207209
## Contributing
208210

209-
We've released SeeQR because it's a useful tool to help optimize SQL databases. Additional features, extensions, and improvements will continue to be introduced. We are thankful for any contributions from the community and we encourage you to try SeeQR out to make or suggest improvements where you see fit! If you encounter any issues with the application, please report them in the issues tab or submit a PR. Thank you for your interest!
211+
We've released SeeQR because it's a useful tool to help optimize SQL databases. Additional features, extensions, and improvements will continue to be introduced. Please refer to the [DEV_README](https://github.com/open-source-labs/SeeQR/blob/main/DEV_README.md) for a list of improvements we are looking to implement and that are open to contributors.
212+
213+
We are thankful for any contributions from the community and we encourage you to try SeeQR out to make or suggest improvements where you see fit! If you encounter any issues with the application, please report them in the issues tab or submit a PR. Thank you for your interest!
210214

211215
## Core Team
212216

213-
[Kevin Chou](https://github.com/choukevin612) |[Zoren Labrador](https://github.com/zorenal) |[Elaine Wong](https://github.com/user-byte123) | [Cathy Luong](https://github.com/cyliang93) | [Derek Koh](https://github.com/derekoko) | [Peter Zepf](https://github.com/peterzepf) | [Tony Gao](https://github.com/tgao17) | [Ching-Yuan Lai (Eric)](https://github.com/paranoidFrappe) | [Jamie Zhang](https://github.com/haemie) | [Julian Macalalag](https://github.com/juzi3) | [Nathan Chong](https://github.com/nathanhchong) | [Junaid Ahmed](https://github.com/junaid-ahmed7) | [Chase Sizemore](https://github.com/ChaseSizemore) | [Oscar Romero](https://github.com/creaturenex) | [Anthony Deng](https://github.com/anthonyadeng) | [Aya Moosa](https://github.com/Hiya-its-Aya) | [Trevor Ferguson](https://github.com/TrevorJFerguson) | [Pauline Nguyen](https://github.com/paulinekpn) | [Utkarsh Uppal](https://github.com/utyvert) | [Fred Jeong](https://github.com/fred-jeong) | [Gabriel Kime](https://github.com/wizardbusiness) | [Chris Fryer](github.com/frynoceros) | [Ian Grepo](https://github.com/RadiantGH) | [Michelle Chang](https://github.com/mkchang168) | [Jake Bradbeer](https://github.com/JBradbeer) | [Bryan Santos](https://github.com/santosb93) | [William Trey Lewis](https://github.com/treyfrog128) | [Brandon Lee](https://github.com/BrandonW-Lee) | [Casey Escovedo](https://github.com/caseyescovedo) | [Casey Walker](https://github.com/cwalker3011) | [Catherine Chiu](https://github.com/catherinechiu) | [Chris Akinrinade](https://github.com/chrisakinrinade) | [Cindy Chau](https://github.com/cindychau) | [Claudio Santos](https://github.com/Claudiohbsantos) | [Eric Han](https://github.com/ericJH92) | [Faraz Akhtar](https://github.com/faraza22) | [Frank Norton](https://github.com/FrankNorton32) | [Harrison Nam](https://github.com/harrynam07) | [James Kolotouros](https://github.com/dkolotouros) | [Jennifer Courtner](https://github.com/jcourtner) | [John Wagner](https://github.com/jwagner988) | [Justin Dury-Agri](https://github.com/justinD-A) | [Justin Hicks](https://github.com/JuiceBawks) | [Katie Klochan](https://github.com/kklochan) | [May Wirapa Boonyasurat](https://github.com/mimiwrp) | [Mercer Stronck](https://github.com/mercerstronck) | [Muhammad Trad](https://github.com/muhammadtrad) | [Richard Guo](https://github.com/richardguoo) | [Richard Lam](https://github.com/rlam108) | [Sam Frakes](https://github.com/frakes413) | [Serena Kuo](https://github.com/serenackuo) | [Timothy Sin](https://github.com/timothysin) | [Vincent Trang](https://github.com/vincentt114)
217+
[Zhijiao Li](https://github.com/lovelyjoy1991) | [Ting Li](https://github.com/Tingg-v1) | [Michael Ma](https://github.com/michaelma7) | [Ivan Navarro](https://github.com/navaiva) | [Joseph Cho](https://github.com/jocho5) | [Kevin Chou](https://github.com/choukevin612) |[Zoren Labrador](https://github.com/zorenal) |[Elaine Wong](https://github.com/user-byte123) | [Cathy Luong](https://github.com/cyliang93) | [Derek Koh](https://github.com/derekoko) | [Peter Zepf](https://github.com/peterzepf) | [Tony Gao](https://github.com/tgao17) | [Ching-Yuan Lai (Eric)](https://github.com/paranoidFrappe) | [Jamie Zhang](https://github.com/haemie) | [Julian Macalalag](https://github.com/juzi3) | [Nathan Chong](https://github.com/nathanhchong) | [Junaid Ahmed](https://github.com/junaid-ahmed7) | [Chase Sizemore](https://github.com/ChaseSizemore) | [Oscar Romero](https://github.com/creaturenex) | [Anthony Deng](https://github.com/anthonyadeng) | [Aya Moosa](https://github.com/Hiya-its-Aya) | [Trevor Ferguson](https://github.com/TrevorJFerguson) | [Pauline Nguyen](https://github.com/paulinekpn) | [Utkarsh Uppal](https://github.com/utyvert) | [Fred Jeong](https://github.com/fred-jeong) | [Gabriel Kime](https://github.com/wizardbusiness) | [Chris Fryer](github.com/frynoceros) | [Ian Grepo](https://github.com/RadiantGH) | [Michelle Chang](https://github.com/mkchang168) | [Jake Bradbeer](https://github.com/JBradbeer) | [Bryan Santos](https://github.com/santosb93) | [William Trey Lewis](https://github.com/treyfrog128) | [Brandon Lee](https://github.com/BrandonW-Lee) | [Casey Escovedo](https://github.com/caseyescovedo) | [Casey Walker](https://github.com/cwalker3011) | [Catherine Chiu](https://github.com/catherinechiu) | [Chris Akinrinade](https://github.com/chrisakinrinade) | [Cindy Chau](https://github.com/cindychau) | [Claudio Santos](https://github.com/Claudiohbsantos) | [Eric Han](https://github.com/ericJH92) | [Faraz Akhtar](https://github.com/faraza22) | [Frank Norton](https://github.com/FrankNorton32) | [Harrison Nam](https://github.com/harrynam07) | [James Kolotouros](https://github.com/dkolotouros) | [Jennifer Courtner](https://github.com/jcourtner) | [John Wagner](https://github.com/jwagner988) | [Justin Dury-Agri](https://github.com/justinD-A) | [Justin Hicks](https://github.com/JuiceBawks) | [Katie Klochan](https://github.com/kklochan) | [May Wirapa Boonyasurat](https://github.com/mimiwrp) | [Mercer Stronck](https://github.com/mercerstronck) | [Muhammad Trad](https://github.com/muhammadtrad) | [Richard Guo](https://github.com/richardguoo) | [Richard Lam](https://github.com/rlam108) | [Sam Frakes](https://github.com/frakes413) | [Serena Kuo](https://github.com/serenackuo) | [Timothy Sin](https://github.com/timothysin) | [Vincent Trang](https://github.com/vincentt114)
214218

215219
## License
216220

Diff for: __tests__/backend/src/db/databaseConnection.spec.ts

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// import mysql from 'mysql2/promise';
2+
import databaseConnections from '../../../../backend/src/db/databaseConnections';
3+
const { PG_DBConnect, PG_DBDisconnect, MSQL_DBConnect, MSQL_DBQuery, RDS_PG_DBConnect, RDS_MSQL_DBConnect, RDS_MSQL_DBQuery, SQLite_DBConnect } = databaseConnections
4+
// import { PoolConfig } from 'pg';
5+
6+
7+
8+
9+
describe('Database Connection Tests', () => {
10+
it('should fail to connect with invalid credentials', async () => {
11+
try {
12+
await PG_DBConnect('postgres://invalid:credentials@localhost/dbname', 'dbname');
13+
} catch (error) {
14+
expect(error).toBeDefined();
15+
}
16+
});
17+
});
18+
19+
describe('MySQL', () => {
20+
const MYSQL_CREDS = {
21+
host: 'localhost',
22+
user: 'username',
23+
password: 'password',
24+
database: 'dbname',
25+
waitForConnections: true,
26+
connectionLimit: 10,
27+
queueLimit: 0,
28+
multipleStatements: true,
29+
};
30+
31+
it('should connect and perform a query successfully', async () => {
32+
await MSQL_DBConnect(MYSQL_CREDS);
33+
await MSQL_DBQuery('dbname');
34+
});
35+
36+
it('should fail to connect with invalid credentials', async () => {
37+
const invalidCreds = {...MYSQL_CREDS, user: 'invalid', password: 'credentials' };
38+
try {
39+
await MSQL_DBConnect(invalidCreds);
40+
} catch (error) {
41+
expect(error).toBeDefined();
42+
}
43+
});
44+
});
45+
46+
describe('SQLite', () => {
47+
it('should connect successfully', () => {
48+
SQLite_DBConnect(':memory:');
49+
});
50+
});

Diff for: __tests__/backend/src/mainMenu.spec.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// tests for mainmenu file

Diff for: __tests__/backend/src/models/configModel.spec.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// test for config file
2+

Diff for: __tests__/backend/src/models/connectionModel.spec.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// tess for connection model file

0 commit comments

Comments
 (0)