This pull request includes several enhancements and new features related to user profiles and comment input functionality.#16
Merged
Conversation
Extracted search box into a separate component. Added searchPosts function in fetcher hook. Added a new page for displaying search results.
Uncommented code for full-text and filtered search in post controller. Made a minor change in post service to not fetch comments when fetching posts.
Deleted the HighlightedPost component as it is no longer needed.
added getUser and getMe functions to useFetcher hook in fetcher.tsx. getUser was previously named getMe but changed for consistency. this change allows fetching user data and current user data respectively.
applied styling changes to SearchBox component in search.tsx. added rounded corners to enhance visual appearance.
…erService implemented getUser, getUserFollowers, getUserFollowing, getUserOwnedForum, getUserModeration, getUserPosts, getUserComments, getUserPostVotes, getUserCommentVotes, and getUserSubscriptions functions in UserController and UserService. these functions fetch user information, user followers, user followings, forums owned by the user, forums where the user is a moderator, posts authored by the user, comments made by the user, votes on posts by the user, votes on comments by the user, and user subscriptions respectively.
…ontroller and ForumService implemented getSubscribersForForum, subscribeToForum, and unsubscribeFromForum functions in ForumController and ForumService. these functions respectively fetch subscribers for a specific forum, allow users to subscribe to a forum, and allow users to unsubscribe from a forum.
…vice implemented votePost function in VoteController and VoteService to handle voting on posts. this function allows users to vote on posts.
changed 'getUser' function to 'getMe' in the CommentInput component to fix a typo in the useFetcher function name, ensuring consistency.
created a new directory for user profile pages to organize and manage user- related functionalities separately.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Key changes include:
User Profile: A new directory for user profile pages has been created to organize and manage user-related functionalities separately. This includes the implementation of user-related functions in UserController and UserService, such as fetching user information, followers, followings, forums owned by the user, forums where the user is a moderator, posts authored by the user, comments made by the user, votes on posts by the user, votes on comments by the user, and user subscriptions.
Forum Subscription: Implemented forum subscription-related functions in ForumController and ForumService. These functions fetch subscribers for a specific forum, allow users to subscribe to a forum, and allow users to unsubscribe from a forum.
Vote Functionality: Implemented the votePost function in VoteController and VoteService to handle voting on posts.
Comment Input: Fixed a typo in the useFetcher function name in the CommentInput component. Also, added a new CommentInput component to the post page.
Search Functionality: Added search functionality by extracting the search box into a separate component and adding a new page for displaying search results.
Miscellaneous: Made several other minor fixes and enhancements, such as adding optional imageUrl to CreatePostDTO, handling imageUrl in post creation, updating image src to prevent caching, and modifying findAll to fetch all posts by default.