Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
5f24ba3
feat: add new page for Collaboration Ads Creation
jeyanthi-sm Sep 24, 2025
3bbb940
feat(job): add all fields to collection and support document insertion
jeyanthi-sm Sep 25, 2025
c8aae7f
feat: add basic input validations
jeyanthi-sm Sep 26, 2025
d6741df
feat: add endpoints for jobs, job_categories, and job_positions
jeyanthi-sm Oct 4, 2025
8ea68ab
feat: enforce word validation to prevent entering only numbers separa…
jeyanthi-sm Oct 4, 2025
c4cecff
feat: include Dropbox image URL, document URL, and URL validation
jeyanthi-sm Oct 4, 2025
78e872d
feat: add actions and reducers for job ads creation page
jeyanthi-sm Oct 4, 2025
574be6a
feat: update actions and reducers, add validation for imageUrl, jobDe…
jeyanthi-sm Oct 4, 2025
189d49c
feat: add jobDetailsLink component and update jobAdsCreation with cor…
jeyanthi-sm Oct 8, 2025
4ce7a9c
feat: add TinyMCE editor to description, skills, requirements, projec…
jeyanthi-sm Oct 18, 2025
da6dabf
feat: rename WhoWeAre section to OurCommunity; remove Skills and WhoA…
jeyanthi-sm Oct 25, 2025
d67caf0
feat: call response API to save responses to the database
jeyanthi-sm Oct 25, 2025
e75a816
feat: send application email with uploaded file link on submission
jeyanthi-sm Nov 1, 2025
cd96048
fix: remove ui log messages
jeyanthi-sm Nov 1, 2025
fe48d87
feat: update Dropbox refresh token from access token and add isRequir…
jeyanthi-sm Nov 24, 2025
c75e77a
fix: update Dropbox file type checking and clean up log messages
jeyanthi-sm Nov 29, 2025
f78059a
Merge branch 'development' of https://github.com/OneCommunityGlobal/H…
jeyanthi-sm Nov 29, 2025
d6d1d84
fix: Align error messages, add image file type validation, and remove…
jeyanthi-sm Dec 1, 2025
0abc4ea
Merge branch 'development' of https://github.com/OneCommunityGlobal/H…
jeyanthi-sm Dec 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .env.development

This file was deleted.

35 changes: 35 additions & 0 deletions src/actions/collaborationAdsActions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import axios from 'axios';
import { ENDPOINTS } from '../utils/URL';
import {toast} from 'react-toastify';

export const CREATE_COLLABORATION_ADS_REQUEST = 'CREATE_COLLABORATION_ADS_REQUEST';
export const CREATE_COLLABORATION_ADS_SUCCESS = 'CREATE_COLLABORATION_ADS_SUCCESS';
export const CREATE_COLLABORATION_ADS_FAIL = 'CREATE_COLLABORATION_ADS_FAIL';

// eslint-disable-next-line import/prefer-default-export
export const createCollaborationAds = (formData) => async (dispatch) => {

try {
dispatch({ type: CREATE_COLLABORATION_ADS_REQUEST });
const response = await axios.post(`${ENDPOINTS.JOBS}`, formData);

dispatch({
type: 'CREATE_COLLABORATION_ADS_SUCCESS',
payload: response.data, // You can also use formData directly
});

if (response.status === 200 || response.status === 201)
toast.success('Collaboration Ads created successfully!');
}
catch(error) {
toast.error('Error updating the details. Please try again.');
dispatch({ type: 'CREATE_COLLABORATION_ADS_FAIL' });


if (error.response?.status === 500) {
toast.error('Error updating the details. Please try again.');
}
else { toast.error('Error updating the details. Please try again.'); }

Check warning on line 32 in src/actions/collaborationAdsActions.js

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove this conditional structure or edit its code blocks so that they're not all the same.

See more on https://sonarcloud.io/project/issues?id=OneCommunityGlobal_HighestGoodNetworkApp&issues=AZo_-2Ve5_Ydn5ywBAXp&open=AZo_-2Ve5_Ydn5ywBAXp&pullRequest=4307
}
};

Loading
Loading