Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jinda all team actions #3122

Open
wants to merge 3 commits into
base: development
Choose a base branch
from
Open

Jinda all team actions #3122

wants to merge 3 commits into from

Conversation

jindaxz
Copy link

@jindaxz jindaxz commented Feb 4, 2025

Description

This PR includes the implementation and testing of various actions related to team management in the HighestGoodNetworkApp. The actions include fetching, updating, adding, and deleting teams and team members.

Related PRS (if any):

Main changes explained:

teamMembersFectchACtion: Successfully creates an action to set all user teams.
userTeamsUpdateAction: Successfully creates an action to update a user team.
addNewTeam: Successfully creates an action to add a new team.
teamsDeleteAction: Successfully creates an action to delete a team.
updateTeamAction: Successfully creates an action to update a team.
teamUsersFetchAction: Successfully creates an action to set fetching team users flag.
teamUsersFetchCompleteAction: Successfully creates an action to set team users.
teamUsersFetchErrorAction: Successfully creates an action for team users fetch error.
teamMemberDeleteAction: Successfully creates an action to delete a team member.
teamMemberAddAction: Successfully creates an action to add a team member.
updateVisibilityAction: Successfully creates an action to update team member visibility.
fetchAllTeamCodeSucess: Successfully creates an action to fetch all team codes successfully.
fetchAllTeamCodeFailure: Successfully creates an action for fetch all team codes failure.
getAllUserTeams: Successfully fetches all user teams and dispatches RECEIVE_ALL_USER_TEAMS action.
postNewTeam: Successfully posts a new team and dispatches ADD_NEW_TEAM action.
deleteTeam: Successfully deletes a team and dispatches TEAMS_DELETE action.

How to test:

Check out the current branch.
Run npm install if necessary.
Execute the following command: npm test allTeamsAction.js.test.js
Verify that all test cases pass successfully without any errors.

Screenshots or videos of changes:

image

Note:

Include the information the reviewers need to know.

Copy link

netlify bot commented Feb 4, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit c279573
🔍 Latest deploy log https://app.netlify.com/sites/highestgoodnetwork-dev/deploys/67a1c04e09b1b20008bd767f
😎 Deploy Preview https://deploy-preview-3122--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@fangedShadow fangedShadow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the 15 test passed Correctly. The file name in the description was wrong so please fix it if you can. the command should be npm test allTeamsAction.js.test.js
image_2025-02-04_122109065

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants