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

Added Feedback Management Section to the Profile Page #421

Merged
merged 5 commits into from
Nov 8, 2024

Conversation

IkkiOcean
Copy link
Contributor

@IkkiOcean IkkiOcean commented Nov 3, 2024

Pull Request: Add Feedback Section to Profile Page

Description:
This PR introduces a new feature to the user profile page that allows users to view and delete their feedback. Users can now manage their feedback directly from their profile, enhancing user experience and engagement.


Changes Made:

  • Frontend:

    • Updated the profile page layout to include a dedicated feedback section displaying all feedback entries associated with the user.
    • Implemented functionality to fetch user feedbacks using the new API.
    • Added delete buttons for each feedback entry, allowing users to remove their feedback easily.
  • Backend:

    • Added new API endpoints:
      • GET /api/feedback/:id: Retrieves all feedback entries written by the user identified by the given id.
      • POST /api/feedback/delete: Deletes a specific feedback entry based on the provided feedback ID.
    • Implemented the necessary controllers to handle the logic for retrieving and deleting feedback based on user ID and feedback ID.

How to Test:

  1. Navigate to the profile page of a user.
  2. Verify that the feedback section displays all feedback entries associated with the user.
  3. Test the delete functionality by clicking the delete button on a feedback entry. Confirm that the feedback is removed from the list.

Video:

feed.mp4

Checklist

  • Filled out the "How to test" section in this PR
  • Read Contributing guide
  • Self-reviewed my own code
  • Checked for warnings, there are none
  • Removed all console.logs
  • The changes don't cause any responsiveness issues

Copy link

netlify bot commented Nov 3, 2024

👷 Deploy request for delightful-daifuku-a9f6ea pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 70d148e

@AlfiyaSiddique
Copy link
Owner

@IkkiOcean looks good, I am a bit occupied and will review this by Friday evening.
Tag once if review not done by Friday night as a reminder

@AlfiyaSiddique
Copy link
Owner

@IkkiOcean one comment rest looks great

@AlfiyaSiddique AlfiyaSiddique added level 3 GSSOC level 3 Contribution - 50 points gssoc-ext For GSSOC Extended Contribution. hacktoberfest-accepted labels Nov 8, 2024
@IkkiOcean
Copy link
Contributor Author

@AlfiyaSiddique okay I will fix it right away

@IkkiOcean
Copy link
Contributor Author

@AlfiyaSiddique done!

@AlfiyaSiddique AlfiyaSiddique merged commit 878849a into AlfiyaSiddique:master Nov 8, 2024
1 check passed
Copy link

github-actions bot commented Nov 8, 2024

🎉 Thank you @IkkiOcean Your pull request has been successfully merged! 🎉 Thank you for your contribution to our project. Your efforts are greatly appreciated. Keep up the fantastic work! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gssoc-ext For GSSOC Extended Contribution. hacktoberfest-accepted level 3 GSSOC level 3 Contribution - 50 points
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FEATURE: Adding feature to delete and view your feedbacks in profile
2 participants