Skip to content

Diya 🔥 (project_task): Project assign/delete & Task delete from User Profile#4453

Merged
one-community merged 3 commits intodevelopmentfrom
Diya_Fix_UserProfile_ProjectTasks
Dec 4, 2025
Merged

Diya 🔥 (project_task): Project assign/delete & Task delete from User Profile#4453
one-community merged 3 commits intodevelopmentfrom
Diya_Fix_UserProfile_ProjectTasks

Conversation

@DiyaWadhwani
Copy link
Copy Markdown
Contributor

@DiyaWadhwani DiyaWadhwani commented Nov 25, 2025

Description

This PR resolves the issue of finalizing changes on the User Profile tab.
Having to click on the 'Save Changes' button to confirm any changes made on the Projects tab.
It fixes Project assignments and deletions/removals. It also deletes the task and removes the user as a resource when the 'Delete' button in the Tasks table is clicked. All changes made are final and cannot be reverted with a 'Cancel' button which used to be the previous functionality.

Related PRS (if any):

This frontend PR is related to the #1919 backend PR.

Main changes explained:

  • Fixed assignment and deletion functions to make changes permanent.
  • Updating userProfile when a project is assigned/deleted.
  • Axios call on task deletion to remove the user as a resource and remove the task from the Tasks table.
  • useEffects to render the tables on changes.

How to test:

  1. Check into the current branch
  2. Make below changes in the .env file:
    bash REACT_APP_APIENDPOINT="http://localhost:4500/api"
  3. Run npm run start:local in the frontend and npm run build followed by npm run dev in the backend.
  4. Log in as the admin user
  5. Ensure that the user is assigned to a project and has tasks from the same project or from any other project.
  6. Head to the User Profile --> Projects Tab
  7. Assign/delete projects and verify toasts appearing on successful assignments/deletions.
  8. Delete any task and verify the success toast message.
  9. (Optional) Delete a project and ensure tasks associated with the project are removed from the task table as well.

Screenshots or videos of changes:

UserProfile_ProjectTasks.mp4

@netlify
Copy link
Copy Markdown

netlify Bot commented Nov 25, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit c8e7ec3
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/692f4960d5806000096a2c32
😎 Deploy Preview https://deploy-preview-4453--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 project configuration.

@one-community one-community changed the title Diya fix(project_task): Project assign/delete & Task delete from User Profile Diya 🔥 (project_task): Project assign/delete & Task delete from User Profile Nov 25, 2025
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Dec 2, 2025

@one-community one-community merged commit 3de6ba6 into development Dec 4, 2025
10 checks passed
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.

2 participants