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

Web/last enpoints connections #500

Merged
merged 20 commits into from
Dec 13, 2024
Merged

Web/last enpoints connections #500

merged 20 commits into from
Dec 13, 2024

Conversation

TheRealLowyer
Copy link
Contributor

Major API Integration and Frontend Enhancements


Summary

This pull request implements multiple key features and fixes across the application, focusing on improved API integration, UI enhancements, and functionality updates for posts, comments, and subforums. These changes address various endpoints and components to ensure a seamless user experience.


What Has Been Done

  1. API Endpoint Connections:

    • Like & Dislike Integration:
      • Connected the new like and dislike endpoints.
      • Ensured proper token-based authentication and dynamic updates for likes and dislikes in the UI.
    • Post Fetching:
      • Integrated new post-fetching endpoints for both home feed and individual post pages.
    • Comment Management:
      • Implemented the comment-delete functionality to handle deletion of comments (including child comments) using the new endpoint.
  2. Frontend Enhancements:

    • Subforum Header:
      • Added a new subforum header with enhanced styling and new fields.
    • Comment Styling:
      • Updated the design of the comments section for better readability and user interaction.
      • Positioned the delete button in the top-right corner of each comment.
    • Dynamic Like/Dislike Behavior:
      • Updated UI to reflect real-time changes for likes and dislikes based on the user’s interaction.
      • Highlighted liked (red) and disliked (blue) states dynamically using conditional CSS classes.
  3. Bug Fixes:

    • Resolved endpoint issues related to fetching posts for the home feed and individual post pages.
    • Fixed discrepancies in post-like and dislike synchronization with the backend.
  4. Backend-Driven Updates:

    • Removed unnecessary frontend logic for handling child comments on delete, relying on backend cascade deletion for comments.
  5. Miscellaneous:

    • Refined token-based authentication logic for conditional inclusion of Authorization headers.
    • Enhanced functionality for linking to specific posts and subforums.

Why These Changes Were Made

  • To align the frontend with updated API endpoints.
  • To provide a more interactive and visually appealing user experience.
  • To improve the maintainability and performance of the codebase by delegating complex operations like comment deletion to the backend.

Impact

  • Enhanced user interaction with dynamic like/dislike and comment management features.
  • Simplified backend integration with updated endpoints.
  • Improved code maintainability and alignment with backend functionality.

This PR marks significant progress in the application's functionality and UI.

@OguzTNCR OguzTNCR merged commit dbd7ab3 into main Dec 13, 2024
@TheRealLowyer TheRealLowyer linked an issue Dec 16, 2024 that may be closed by this pull request
7 tasks
@TheRealLowyer TheRealLowyer linked an issue Dec 16, 2024 that may be closed by this pull request
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Frontend Priority: High Requires taking action ASAP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI Enhancements and Styling Improvements API Endpoint Integration and Post Interaction Updates
3 participants