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

API Endpoint Integration and Post Interaction Updates #534

Closed
9 tasks done
TheRealLowyer opened this issue Dec 16, 2024 · 1 comment · Fixed by #500
Closed
9 tasks done

API Endpoint Integration and Post Interaction Updates #534

TheRealLowyer opened this issue Dec 16, 2024 · 1 comment · Fixed by #500
Assignees
Labels
Action Item A specific task requiring attention Frontend Priority: High Requires taking action ASAP

Comments

@TheRealLowyer
Copy link
Contributor

TheRealLowyer commented Dec 16, 2024

ℹ️ Description

This issue focuses on improving API integration and implementing features for dynamic interaction with posts and comments. Updates include connecting new endpoints for like, dislike, and post fetching, ensuring real-time updates in the UI, and refining backend-driven updates for comment management.

🎯 Tasks

Like & Dislike Integration

  • Connect the like and dislike endpoints to the frontend.
  • Ensure proper token-based authentication for like and dislike actions.
  • Dynamically update the UI to reflect the user's interaction:
    • Highlight liked (red) and disliked (blue) states using conditional CSS classes.

Post Fetching

  • Integrate new post-fetching endpoints for:
    • The home feed.
    • Individual post pages.
  • Test and validate data synchronization between the frontend and backend.

Comment Management

  • Implement comment-delete functionality to handle:
    • Deletion of parent and child comments using the backend cascade deletion feature.
  • Remove redundant frontend logic for child comment management.

Bug Fixes

  • Resolve issues with post-like and dislike synchronization with the backend.
  • Fix any discrepancies related to fetching posts for the home feed and individual post pages.
@TheRealLowyer TheRealLowyer added Priority: High Requires taking action ASAP Action Item A specific task requiring attention Frontend labels Dec 16, 2024
@TheRealLowyer TheRealLowyer self-assigned this Dec 16, 2024
@TheRealLowyer
Copy link
Contributor Author

The API endpoint integration and post interaction updates have been successfully completed. The like and dislike endpoints are now seamlessly connected with proper token-based authentication, ensuring real-time updates in the UI. Post fetching for the home feed and individual post pages works efficiently, and the comment-delete functionality with backend cascade deletion has been implemented as expected. All related bugs have been resolved, ensuring a robust and dynamic user interaction experience.

@TheRealLowyer TheRealLowyer linked a pull request Dec 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Action Item A specific task requiring attention Frontend Priority: High Requires taking action ASAP
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant