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

Subforum Page Enhancements #537

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

Subforum Page Enhancements #537

TheRealLowyer opened this issue Dec 16, 2024 · 1 comment · Fixed by #502
Assignees
Labels
Enhancement New feature or request Frontend Priority: High Requires taking action ASAP

Comments

@TheRealLowyer
Copy link
Contributor

TheRealLowyer commented Dec 16, 2024

ℹ️ Description

This issue focuses on enhancing the Subforum Page by integrating backend functionality, improving the UI/UX for subforum details, and adding follow/unfollow capabilities. These updates aim to provide a responsive and engaging user experience while ensuring smooth data fetching and rendering.

🎯 Tasks

Dynamic Subforum Rendering

  • Replace static fetch logic with a service function (getSubforum) to retrieve subforum data from /subforum/:id.
  • Display subforum details, including:
    • Subforum Name.
    • Description.
    • Post count.
    • Follower count.

Follow/Unfollow Feature

  • Implement dynamic Follow/Unfollow buttons that:
    • Are visible only to authenticated users.
    • Update the UI and backend state via /subforum/follow and /subforum/unfollow endpoints.
    • Manage isFollowing state dynamically to reflect real-time changes in the UI.

Post Feed Integration

  • Use the Feed component to display posts within the subforum.
  • Pass posts fetched from the subforum API directly to the Feed component for rendering.

Styling Enhancements

  • Style the subforum header using the theme color (#5d5fef).
  • Design Follow/Unfollow buttons with hover effects and alignment to the theme.
  • Ensure responsiveness and consistency across devices for the entire page layout.
@TheRealLowyer TheRealLowyer added Enhancement New feature or request Priority: High Requires taking action ASAP Frontend labels Dec 16, 2024
@TheRealLowyer TheRealLowyer self-assigned this Dec 16, 2024
@TheRealLowyer TheRealLowyer linked a pull request Dec 16, 2024 that will close this issue
@TheRealLowyer
Copy link
Contributor Author

The Subforum Page enhancements have been successfully implemented. The static fetch logic has been replaced with dynamic backend integration via the getSubforum service function. Subforum details are now displayed with real-time follow/unfollow functionality, and the Feed component dynamically renders posts within each subforum. The styling updates, including theme-aligned headers and buttons, ensure a consistent and responsive design.

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 a pull request may close this issue.

1 participant