Skip to content

Commit 247160e

Browse files
authored
Merge branch 'development' into trilliumsmith/ts.2046
2 parents 3ec6273 + 21ff213 commit 247160e

File tree

10 files changed

+257
-316
lines changed

10 files changed

+257
-316
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
# vscode dirs
2+
.devcontainer
3+
.vscode
14

5+
# project dirs and files
26
node_modules/
37
npm-debug.log
48
.DS_Store

CONTRIBUTING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,22 @@ Note: Understanding how git remotes work will make collaborating much easier. Yo
106106

107107
### **2.3 Get up and running**
108108

109+
1. Install NVM (Node Version Manager). NVM allows you to easily manage and switch between multiple versions of Node.
110+
111+
- Verify the installation: `nvm --version`
112+
- Once NVM is verified, run the following commands from the root of the project:
113+
114+
```
115+
# Install the project's Node version (specified in the .nvmrc file)
116+
nvm install
117+
118+
# Instruct NVM to use the Node version defined in the .nvmrc file
119+
nvm use
120+
121+
```
122+
123+
> NOTE: If the major version of Node does not match the version specified in the .nvmrc file, you may need to be explicit with the version and use: `nvm install <version>` and `nvm use <version>`
124+
109125
1. Have [Node](https://nodejs.org/en/download/) and NPM installed locally:
110126

111127
- Verify with `node -v` and `npm -v` respectively.

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"morgan": "^1.10.0",
5757
"node-cron": "^2.0.3",
5858
"node-fetch": "^2.6.7",
59-
"nodemailer": "^6.6.1"
59+
"nodemailer": "^7.0.7"
6060
},
6161
"directories": {
6262
"test": "test"

backend/routers/users.router.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ describe('Unit Tests for userRouter', () => {
130130
done();
131131
});
132132

133-
it('should get a specific User by UserId with GET to /api/users/:UserId through UserController', async (done) => {
133+
// @TODO: Fix failing test, require investigation. Please referece issue 2036
134+
it.skip('should get a specific User by UserId with GET to /api/users/:UserId through UserController', async (done) => {
134135
//Mock the UserController function that this route calls with expected results
135136
UserController.user_by_id.mockImplementationOnce((req, res) => {
136137
return res.status(200).send(mockUser);

backend/test/user.integration.test.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ const submittedData = {
1616
};
1717
var createdUserId = '';
1818

19-
describe('CREATE', () => {
19+
// @TODO: Fix failing test, require investigation. Please referece issue 2036
20+
describe.skip('CREATE', () => {
2021
test('Create a User with POST to /api/users/', async (done) => {
2122
// Submit a User
2223
const res = await request
@@ -40,13 +41,17 @@ describe('CREATE', () => {
4041
.set('x-customrequired-header', backendHeaders)
4142
.send(submittedData);
4243
expect(res.status).toBe(409);
43-
expect(res.body).toMatchObject({error: { code: 11000, driver: true, name: 'MongoError', index: 0 }, message: 'User already exists'});
44+
expect(res.body).toMatchObject({
45+
error: { code: 11000, driver: true, name: 'MongoError', index: 0 },
46+
message: 'User already exists',
47+
});
4448

4549
done();
4650
});
4751
});
4852

49-
describe('READ', () => {
53+
// @TODO: Fix failing test, require investigation. Please referece issue 2036
54+
describe.skip('READ', () => {
5055
test('Get a list of Users with with GET to /api/users/', async (done) => {
5156
// Get all Users
5257
const res = await request.get('/api/users/').set('x-customrequired-header', backendHeaders);
@@ -85,7 +90,8 @@ describe('READ', () => {
8590
});
8691
});
8792

88-
describe('UPDATE', () => {
93+
// @TODO: Fix failing test, require investigation. Please referece issue 2036
94+
describe.skip('UPDATE', () => {
8995
test('Update a User with PATCH to /api/users/:UserId', async (done) => {
9096
const updatedEmail = {
9197
@@ -113,7 +119,8 @@ describe('UPDATE', () => {
113119
});
114120
});
115121

116-
describe('DELETE', () => {
122+
// @TODO: Fix failing test, require investigation. Please referece issue 2036
123+
describe.skip('DELETE', () => {
117124
test('Delete a specific user by Id with DELETE /api/users/:UserId', async (done) => {
118125
// Delete User
119126
const res = await request
@@ -130,7 +137,6 @@ describe('DELETE', () => {
130137
.set('x-customrequired-header', backendHeaders);
131138
expect(res2.body).toEqual({});
132139

133-
134140
done();
135141
});
136142
});

backend/yarn.lock

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4959,10 +4959,10 @@ node-releases@^1.1.75:
49594959
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.75.tgz#6dd8c876b9897a1b8e5a02de26afa79bb54ebbfe"
49604960
integrity sha512-Qe5OUajvqrqDSy6wrWFmMwfJ0jVgwiw4T3KqmbTcZ62qW0gQkheXYhcFM1+lOVcGUoRxcEcfyvFMAnDgaF1VWw==
49614961

4962-
nodemailer@^6.6.1:
4963-
version "6.6.1"
4964-
resolved "https://registry.yarnpkg.com/nodemailer/-/nodemailer-6.6.1.tgz#2a05fbf205b897d71bf43884167b5d4d3bd01b99"
4965-
integrity sha512-1xzFN3gqv+/qJ6YRyxBxfTYstLNt0FCtZaFRvf4Sg9wxNGWbwFmGXVpfSi6ThGK6aRxAo+KjHtYSW8NvCsNSAg==
4962+
nodemailer@^7.0.7:
4963+
version "7.0.7"
4964+
resolved "https://registry.yarnpkg.com/nodemailer/-/nodemailer-7.0.7.tgz#91a16235c08abb7805a4ec1537ca63edca79687f"
4965+
integrity sha512-jGOaRznodf62TVzdyhKt/f1Q/c3kYynk8629sgJHpRzGZj01ezbgMMWJSAjHADcwTKxco3B68/R+KHJY2T5BaA==
49664966

49674967
nodemon@^2.0.2:
49684968
version "2.0.4"
@@ -6509,11 +6509,9 @@ throat@^5.0.0:
65096509
integrity sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==
65106510

65116511
tmp@^0.2.1:
6512-
version "0.2.1"
6513-
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.2.1.tgz#8457fc3037dcf4719c251367a1af6500ee1ccf14"
6514-
integrity sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==
6515-
dependencies:
6516-
rimraf "^3.0.0"
6512+
version "0.2.4"
6513+
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.2.4.tgz#c6db987a2ccc97f812f17137b36af2b6521b0d13"
6514+
integrity sha512-UdiSoX6ypifLmrfQ/XfiawN6hkjSBpCjhKxxZcWlUUmoXLaCKQU0bx4HF/tdDK2uzRuchf1txGvrWBzYREssoQ==
65176515

65186516
65196517
version "1.0.5"

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"react-router-dom": "^5.1.2",
3333
"tailwindcss": "^4.1.10",
3434
"validator": "^13.7.0",
35-
"vite": "^6.3.6",
35+
"vite": "^6.4.1",
3636
"vite-plugin-svgr": "^4.3.0"
3737
},
3838
"scripts": {

client/src/components/ProjectForm.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,11 @@ export default function ProjectForm({
229229
</Grid>
230230
);
231231

232+
const projectName = projectToEdit?.name || '[unnamed project]';
232233
return (
233234
<Box sx={{ px: 0.5 }}>
234235
<Box sx={{ textAlign: 'center' }}>
235-
<Typography variant="h1">Project Management</Typography>
236+
<Typography variant="h1">{projectName}</Typography>
236237
</Box>
237238
{auth.user.accessLevel === 'admin' ||
238239
auth.user.accessLevel == 'superadmin' ? (

0 commit comments

Comments
 (0)