Skip to content

Commit 8e678ea

Browse files
committed
Merge branch 'development' into nishita_design_the_landing_page_for_event_pPopularity_analytics
2 parents f7f8dd8 + ff1e16b commit 8e678ea

106 files changed

Lines changed: 4732 additions & 1120 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.

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
command: 'sudo npm install'
1515
- run:
1616
name: Run react build
17-
command: 'sudo REACT_APP_APIENDPOINT=$APIENDPOINT_PROD REACT_APP_DEF_PWD=$REACT_APP_DEF_PWD REACT_APP_SENTRY_URL=$SENTRY_URL_PROD SKIP_PREFLIGHT_CHECK=true NODE_OPTIONS=$NODE_OPTIONS npm run build && sudo mv build/index.html build/200.html'
17+
command: 'sudo REACT_APP_APIENDPOINT=$APIENDPOINT_PROD REACT_APP_DEF_PWD=$REACT_APP_DEF_PWD REACT_APP_SENTRY_URL=$SENTRY_URL_PROD SKIP_PREFLIGHT_CHECK=true NODE_OPTIONS="$NODE_OPTIONS --max_old_space_size=4096" npm run build --prod && sudo mv build/index.html build/200.html'
1818
- run:
1919
name: Export error log if 'Build the React client' failed
2020
command: |
@@ -62,7 +62,7 @@ jobs:
6262
command: npm install
6363
- run:
6464
name: Build the React client
65-
command: export REACT_APP_APIENDPOINT=$APIENDPOINT_DEV REACT_APP_DEF_PWD=$REACT_APP_DEF_PWD REACT_APP_SENTRY_URL=$SENTRY_URL_DEV SKIP_PREFLIGHT_CHECK=true NODE_OPTIONS=$NODE_OPTIONS && npm run build
65+
command: export REACT_APP_APIENDPOINT=$APIENDPOINT_DEV REACT_APP_DEF_PWD=$REACT_APP_DEF_PWD REACT_APP_SENTRY_URL=$SENTRY_URL_DEV SKIP_PREFLIGHT_CHECK=true NODE_OPTIONS="$NODE_OPTIONS --max_old_space_size=4096" && npm run build --prod
6666
- run:
6767
name: Export error log if 'Build the React client' failed
6868
command: |
@@ -84,7 +84,7 @@ jobs:
8484
name: Deploy compiled app to surge.sh on $SURGE_DOMAIN_DEV
8585
command: ./node_modules/.bin/surge --domain $SURGE_DOMAIN_DEV --project ./build
8686
- run:
87-
name: Deploy compiled app to surge.sh on $SURGE_DOMAIN_DEV
87+
name: Deploy compiled app to surge.sh on $SURGE_DOMAIN_DEV1
8888
command: ./node_modules/.bin/surge --domain $SURGE_DOMAIN_DEV1 --project ./build
8989
- save_cache:
9090
key: v1.1-dependencies-{{ checksum "package-lock.json" }}
@@ -106,7 +106,7 @@ jobs:
106106
command: npm install
107107
- run:
108108
name: Build the React client
109-
command: export REACT_APP_APIENDPOINT=$APIENDPOINT_BETA REACT_APP_DEF_PWD=$REACT_APP_DEF_PWD SKIP_PREFLIGHT_CHECK=true NODE_OPTIONS=$NODE_OPTIONS && npm run build
109+
command: export REACT_APP_APIENDPOINT=$APIENDPOINT_BETA REACT_APP_DEF_PWD=$REACT_APP_DEF_PWD SKIP_PREFLIGHT_CHECK=true NODE_OPTIONS="$NODE_OPTIONS --max_old_space_size=4096" && npm run build --prod
110110
- run:
111111
name: Export error log if 'Build the React client' failed
112112
command: |

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ src/components/TaskEditSuggestions/**
2626
src/components/TeamMemberTasks/**
2727
src/components/Teams/**
2828
src/components/TeamLocations/**
29-
src/components/Timelog/**
3029
src/components/UserManagement/**
3130
src/components/UserProfile/**
3231
src/components/Announcements/**

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111

1212
steps:
1313
- name: Checkout repository
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

1616
- name: Set up Node.js
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v4
1818
with:
1919
node-version: '14'
2020

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010

1111
steps:
1212
- name: Checkout repository
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414

1515
- name: Set up Node.js
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
1818
node-version: '14'
1919

@@ -25,7 +25,7 @@ jobs:
2525

2626
- name: Upload test results
2727
if: failure()
28-
uses: actions/upload-artifact@v3
28+
uses: actions/upload-artifact@v4
2929
with:
3030
name: test-results
3131
path: test-results # Adjust the path to your test results if necessary

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ src/components/TaskEditSuggestions/**
2727
src/components/TeamLocations/**
2828
src/components/TeamMemberTasks/**
2929
src/components/Teams/**
30-
src/components/Timelog/**
3130
src/components/UserManagement/**
3231
src/components/UserProfile/**
3332
src/components/Announcements/**

package-lock.json

Lines changed: 62 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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
"axios": "^0.21.2",
1717
"axios-mock-adapter": "^1.22.0",
1818
"bootstrap": "^4.5.3",
19+
"chart.js": "^4.4.7",
20+
"chartjs-plugin-datalabels": "^2.2.0",
1921
"classnames": "^2.2.6",
2022
"d3": "^7.8.5",
2123
"date-fns": "^2.14.0",
@@ -37,7 +39,9 @@
3739
"prop-types": "^15.7.2",
3840
"react": "^16.14.0",
3941
"react-autosuggest": "^10.1.0",
42+
"react-beautiful-dnd": "^13.1.1",
4043
"react-bootstrap": "^1.0.1",
44+
"react-chartjs-2": "^5.2.0",
4145
"react-circular-progressbar": "^2.1.0",
4246
"react-collapsible": "^2.10.0",
4347
"react-datepicker": "^3.7.0",

src/actions/timeEntries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const getTimeEntriesForPeriod = (userId, fromDate, toDate) => {
7474
export const getTimeEndDateEntriesByPeriod = (userId, fromDate, toDate) => { //Find last week of work in date
7575
toDate = moment(toDate)
7676
.endOf('day')
77-
.format('YYYY-MM-DD');
77+
.format('YYYY-MM-DDTHH:mm:ss');
7878
const url = ENDPOINTS.TIME_ENTRIES_PERIOD(userId, fromDate,toDate);
7979
return async dispatch => {
8080
let loggedOut = false;

src/actions/totalOrgSummary.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,48 @@ export const getTotalOrgSummary = (startDate, endDate) => {
7878
}
7979
};
8080
};
81+
82+
/**
83+
* Action to set the 'loading' flag to true.
84+
*/
85+
export const fetchVolunteerRolesTeamStatsBegin = () => ({
86+
type: actions.FETCH_VOLUNTEER_ROLES_TEAM_STATS_BEGIN
87+
});
88+
89+
/**
90+
* This action is used to set the Team Stats in Volunteer Roles Weekly Summary Dashboard
91+
*
92+
* @param {object} volunteerRoleTeamStats An Object with the count of active members in the team.
93+
*/
94+
export const fetchVolunteerRolesTeamStatsSuccess = (volunteerRoleTeamStats) => ({
95+
type: actions.FETCH_VOLUNTEER_ROLES_TEAM_STATS_SUCCESS,
96+
payload: { volunteerRoleTeamStats },
97+
});
98+
99+
/**
100+
* Handle the error case.
101+
*
102+
* @param {Object} error The error object.
103+
*/
104+
export const fetchVolunteerRolesTeamStatsError = error => ({
105+
type: actions.FETCH_VOLUNTEER_ROLES_TEAM_STATS_ERROR,
106+
payload: { error },
107+
});
108+
109+
export const getTeamStatsActiveMembers = (endDate, activeMembersMinimum) =>{
110+
111+
const url = ENDPOINTS.VOLUNTEER_ROLES_TEAM_STATS(endDate, activeMembersMinimum);
112+
return async dispatch => {
113+
dispatch(fetchVolunteerRolesTeamStatsBegin());
114+
try {
115+
const response = await axios.get(url);
116+
dispatch(fetchVolunteerRolesTeamStatsSuccess(response.data));
117+
return {
118+
data: response.data
119+
};
120+
} catch (error) {
121+
dispatch(fetchVolunteerRolesTeamStatsError(error));
122+
return error.response.status;
123+
}
124+
};
125+
}

src/actions/userManagement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ export const updateUserFinalDayStatusIsSet = (user, status, finalDayDate, isSet)
228228
patchData.endDate = undefined;
229229
userProfile.endDate = undefined;
230230
} else {
231-
userProfile.endDate = moment(finalDayDate).format('YYYY-MM-DD');
232-
patchData.endDate = moment(finalDayDate).format('YYYY-MM-DD');
231+
userProfile.endDate = moment(finalDayDate).add(1,'days').format('YYYY-MM-DD');
232+
patchData.endDate = moment(finalDayDate).add(1,'days').format('YYYY-MM-DD');
233233
}
234234

235235
const updateProfilePromise = axios.patch(ENDPOINTS.USER_PROFILE(user._id), patchData);

0 commit comments

Comments
 (0)