Skip to content

Commit 6a5bf82

Browse files
committed
Merge branch 'development' of https://github.com/OneCommunityGlobal/HighestGoodNetworkApp into anjali-email-fix-separate
2 parents 4508f19 + 6a5582b commit 6a5bf82

28 files changed

Lines changed: 3718 additions & 791 deletions

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
"ajv": "^8.0.0",
3131
"ajv-keywords": "^5.1.0",
3232
"assert": "^2.1.0",
33-
"axios": "^1.9.0",
33+
"axios": "^1.11.0",
3434
"axios-mock-adapter": "^1.22.0",
3535
"bootstrap": "^4.5.3",
3636
"braces": "^3.0.3",
3737
"buffer": "^6.0.3",
3838
"canvas-confetti": "^1.9.3",
39-
"chart.js": "^4.1.1",
39+
"chart.js": "^4.5.0",
4040
"chartjs-plugin-datalabels": "^2.2.0",
4141
"classnames": "^2.2.6",
4242
"clsx": "^2.1.1",
@@ -89,7 +89,7 @@
8989
"react-router": "^5.3.4",
9090
"react-router-dom": "^5.2.0",
9191
"react-router-hash-link": "^2.3.1",
92-
"react-select": "^5.10.1",
92+
"react-select": "^5.10.2",
9393
"react-spinners": "^0.15.0",
9494
"react-sticky": "^6.0.3",
9595
"react-table": "^7.8.0",

src/actions/userManagement.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,14 @@ export const updateUserFinalDayStatusIsSet = (user, status, finalDayDate, isSet)
286286
/**
287287
* fetching all user profiles basic info
288288
*/
289-
export const getUserProfileBasicInfo = () => {
289+
export const getUserProfileBasicInfo = (userId) => {
290290
// API request to fetch basic user profile information
291-
const userProfileBasicInfoPromise = axios.get(ENDPOINTS.USER_PROFILE_BASIC_INFO);
292-
291+
let userProfileBasicInfoPromise;
292+
if (userId)
293+
userProfileBasicInfoPromise = axios.get(`${ENDPOINTS.USER_PROFILE_BASIC_INFO}?userId=${userId}`);
294+
else
295+
userProfileBasicInfoPromise = axios.get(ENDPOINTS.USER_PROFILE_BASIC_INFO);
296+
293297
return async dispatch => {
294298
// Dispatch action indicating the start of the fetch process
295299
await dispatch(userProfilesBasicInfoFetchStartAction());

src/actions/userSkillsActions.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import axios from 'axios';
2+
import { ENDPOINTS } from '../utils/URL';
3+
import {toast} from 'react-toastify';
4+
5+
// eslint-disable-next-line import/prefer-default-export
6+
export const updateFollowUpFields = (userId,formData) => async (dispatch) => {
7+
8+
try {
9+
// eslint-disable-next-line no-console
10+
console.log("{ENDPOINTS.HGN_FORM_UPDATE_USER_SKILLS_FOLLOWUP_SUBMIT}/{userId}");
11+
// eslint-disable-next-line no-console
12+
console.log(`${ENDPOINTS.HGN_FORM_UPDATE_USER_SKILLS_FOLLOWUP_SUBMIT}${userId}`);
13+
const response = await axios.put(`${ENDPOINTS.HGN_FORM_UPDATE_USER_SKILLS_FOLLOWUP_SUBMIT}${userId}`, formData);
14+
15+
dispatch({
16+
type: 'UPDATE_USER_SKILLS_PROFILE_DATA_FOLLOWUP_FIELDS_SUCCESS',
17+
payload: response.data, // You can also use formData directly
18+
});
19+
20+
if (response.status === 200 || response.status === 201)
21+
toast.success('Work Experience and Additional Information updated successfully!');
22+
}
23+
catch(error) {
24+
toast.error('Error updating the details. Please try again.');
25+
dispatch({ type: 'UPDATE_USER_SKILLS_PROFILE_DATA_FOLLOWUP_FIELDS_FAIL' });
26+
27+
28+
if (error.response?.status === 500) {
29+
toast.error('Error updating the details. Please try again.');
30+
}
31+
}
32+
33+
34+
35+
36+
};
37+

src/components/BMDashboard/Issues/issueChart.css

Lines changed: 0 additions & 82 deletions
This file was deleted.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/* issueChart.module.css */
2+
3+
.issueChartEventContainer {
4+
max-width: 900px;
5+
margin: 0 auto;
6+
padding: 20px;
7+
background: #f9f9f9;
8+
border-radius: 8px;
9+
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
10+
}
11+
12+
.issueChartEventContainerDark {
13+
background: #121212;
14+
box-shadow: 0 4px 12px rgba(0,0,0,0.9);
15+
color: #ccd1dc;
16+
}
17+
18+
.issueChartEventTitle {
19+
text-align: center;
20+
font-size: 24px;
21+
color: #333;
22+
}
23+
24+
.issueChartEventTitleDark {
25+
color: #fff;
26+
}
27+
28+
.chartWrapper {
29+
padding: 20px;
30+
background: #fff;
31+
border-radius: 8px;
32+
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
33+
}
34+
35+
.chartWrapperDark {
36+
background: #1e1e1e;
37+
box-shadow: 0 0 15px rgba(0,0,0,0.9);
38+
color: #ccd1dc;
39+
}
40+
41+
.issueChartLabel {
42+
font-size: 16px;
43+
color: #555;
44+
}
45+
46+
.issueChartLabelDark {
47+
color: #fff;
48+
}
49+
50+
.issueChartSelect {
51+
padding: 2px 10px;
52+
font-size: 16px;
53+
border-radius: 4px;
54+
border: 1px solid #ccc;
55+
background-color: #fff;
56+
color: #333;
57+
cursor: pointer;
58+
transition: border-color 0.3s ease;
59+
outline: none;
60+
margin-bottom: 20px;
61+
}
62+
63+
.issueChartSelectDark {
64+
border-color: #3d444d;
65+
background-color: #22272e;
66+
color: #cfd7e3;
67+
}

0 commit comments

Comments
 (0)