Skip to content

Commit ed8689b

Browse files
Merge pull request #3470 from OneCommunityGlobal/development
Frontend Release to Main [4.13]
2 parents 53ca23a + 6946f7a commit ed8689b

206 files changed

Lines changed: 5717 additions & 1871 deletions

File tree

Some content is hidden

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

.eslintignore

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,8 @@
1111
/build/
1212

1313
# Ignore test files inside /src/components
14-
src/__tests__/**
15-
/src/components/**/__test__/**/*
16-
/src/components/**/__tests__/**/*
17-
/src/reducers/**/__tests__/**/*
18-
1914
src/components/BMDashboard/_tests_/BMDashboard.test.jsx
20-
src/components/Login/ForgotPassword.test.jsx
21-
src/components/Login/LoginPage.test.js
22-
src/components/PermissionsManagement/PermissionsManagement.test.js
15+
src/components/Reports/PeopleReport/components/PeopleTasksPieChart.test.jsx
2316

2417
# Ignore folders in /src
2518
src/components/Badge/**

package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"@fortawesome/free-regular-svg-icons": "^5.12.1",
1212
"@fortawesome/free-solid-svg-icons": "^5.15.4",
1313
"@fortawesome/react-fontawesome": "^0.1.19",
14+
"@react-leaflet/core": ">=1.0.0 <1.1.0",
1415
"@sentry/browser": "^4.6.6",
1516
"@tinymce/tinymce-react": "^3.14.0",
1617
"axios": "^0.21.2",
@@ -30,7 +31,10 @@
3031
"html-to-pdfmake": "^2.0.6",
3132
"joi": "^14.0.6",
3233
"jwt-decode": "^2.2.0",
34+
"leaflet": "1.7.1",
35+
"leaflet.heat": "^0.2.0",
3336
"lodash": "^4.17.21",
37+
"lucide-react": "^0.484.0",
3438
"lz-string": "^1.5.0",
3539
"moment": "^2.29.2",
3640
"moment-timezone": "^0.5.33",
@@ -43,15 +47,13 @@
4347
"react-chartjs-2": "^5.2.0",
4448
"react-circular-progressbar": "^2.1.0",
4549
"react-collapsible": "^2.10.0",
46-
"react-datepicker": "^3.7.0",
50+
"react-datepicker": "^3.8.0",
4751
"react-day-picker": "^7.4.8",
4852
"react-dom": "^16.13.1",
4953
"react-html-parser": "^2.0.2",
5054
"react-icons": "^4.3.1",
5155
"react-input-range": "^1.3.0",
5256
"react-leaflet": ">=3.1.0 <3.2.0",
53-
"@react-leaflet/core": ">=1.0.0 <1.1.0",
54-
"leaflet": "1.7.1",
5557
"react-leaflet-cluster": "^1.0.4",
5658
"react-multi-select-component": "^4.0.2",
5759
"react-phone-input-2": "^2.14.0",

src/__tests__/CountdownTimer.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line no-unused-vars
12
import React from 'react';
23
import moment from 'moment';
34
import { render, screen, waitFor } from '@testing-library/react';
Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
// This is needed to remove a warning related to popper.js when testing reactstrap tooltips.
22
// More on this bug: https://github.com/react-bootstrap/react-bootstrap/issues/4997
3-
3+
/* eslint-disable import/no-extraneous-dependencies */
4+
/* eslint-env jest */
45
import PopperJs from 'popper.js';
56

6-
export default class Popper {
7-
static placements = PopperJs.placements;
7+
// export default class Popper {
8+
// static placements = PopperJs.placements;
89

9-
constructor() {
10+
function Popper() {
1011
return {
1112
destroy: () => {},
1213
scheduleUpdate: () => {},
1314
};
1415
}
15-
}
16+
// To mimic static property
17+
Popper.placements = PopperJs.placements;
18+
export default Popper;
19+
1620

17-
describe('Stop Error', () => {
18-
it('should not error out due to no tests (popper.js.js)', () => {
19-
return;
21+
describe('Stop Error', () => {
22+
it('should not error out due to no tests (popper.js.js)', () => {
23+
2024
});
2125
});
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env jest */
12
test('it should pass', () => {
23
expect(true).toBe(true);
34
});
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env jest */
12
test('it should pass', () => {
23
expect(true).toBe(true);
34
});

src/__tests__/mockAdminState.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let dt = new Date();
1+
const dt = new Date();
22
dt.setDate(dt.getDate() + 1);
33

44
export default {
@@ -1810,6 +1810,8 @@ export default {
18101810
}
18111811
};
18121812

1813+
// eslint-disable-next-line no-undef
18131814
describe('Stop Error', () => {
1815+
// eslint-disable-next-line no-undef
18141816
it('should not error out due to no tests (mockAdminState.js)', () => {});
18151817
});

src/__tests__/mockStates.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getAllPermissionKeys } from '../components/PermissionsManagement/PermissionsConst.js';
1+
import { getAllPermissionKeys } from '../components/PermissionsManagement/PermissionsConst';
22

33
export const allTeamsMock = {
44
fetching: false,
@@ -1302,7 +1302,9 @@ export const rolesMock = {
13021302
}
13031303
}
13041304

1305+
// eslint-disable-next-line no-undef
13051306
describe('Stop Error', () => {
1307+
// eslint-disable-next-line no-undef
13061308
it('should not error out due to no tests (mockStates.js)', () => { });
13071309
});
13081310

@@ -1313,7 +1315,7 @@ const allPermissionsExcept = (permissions) => {
13131315

13141316
// takes a list of relevant permissions and returns two auth objects, one with the permissions and the other with all permissions not listed
13151317
export const createAuthMocks = (permissions) => {
1316-
var authTemplate = {
1318+
const authTemplate = {
13171319
// isAdmin: true,
13181320
user: {
13191321
userid: '5edf141c78f1380017b829a6',

src/__tests__/mockStates.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { createAuthMocks } from "./mockStates";
1+
// eslint-disable-next-line no-unused-vars
22
import { getAllPermissionKeys } from "components/PermissionsManagement/PermissionsConst";
3+
import { createAuthMocks } from "./mockStates";
34

45
describe('Permission tests', () => {
56
it('should include specific permission', () => {

0 commit comments

Comments
 (0)