Skip to content

Conversation

@Philimuhire
Copy link
Contributor

@Philimuhire Philimuhire commented Nov 29, 2024

PR Description

Feature: A user should be able to comment and react to blog posts.

What does this PR do?

This PR implements frontend functionality for:

  • Adding comments to a blog post.
  • Reacting to blog posts with reactions (e.g., Like, Love, Support, Funny, Celebrate).

Related Issues
#266

Changes Made:

  • Added reactionActions to handle reaction-related functionalities
  • Added commentActions to handle comment-related functionalities.
  • Created reactionReducers to manage the state for reactions.
  • Created commentReducers to manage the state for comments.
  • Developed the BlogComment component to display blog post comments.
  • Developed the BlogReactions component to display and manage reactions on blog posts.
  • Modified the SingleBlog component to integrate the new components (BlogComment, and BlogReactions).
  • The reaction types are displayed with their count and a reaction type with 0 reactions count is hidden

How to Test This PR:

Locally:

  • Clone the repository.
  • Run npm install to install dependencies and navigate to the appropriate the branch ft-comments-reactions-fn.
  • Start the server using npm run dev.
  • Look for a created blog, if not create a new blog
  • Confirm that the single blog view displays comments and reactions correctly, and that interactions are functional and reflected in the UI.

Deployed:

  • Log in to the application as an admin or an applicant
  • Look for a created blog, if not create a new blog
  • Add comments and reactions to a blog post and confirm they are displayed

Admin credentials: [email protected], password: password123
Applicant credentials: [email protected], password: password123

Screenshoots

{C6F64BFD-506C-403D-8457-3039F572BF1F}

@vercel
Copy link

vercel bot commented Nov 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
atlp-devpulse-fn ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 3, 2024 0:15am

@Philimuhire Philimuhire changed the title Ft comments and reactions fn #266 A user should be able to comment and react to a blog post Nov 29, 2024
@Philimuhire Philimuhire added the DREAM DREAM TEAM label Nov 29, 2024
@Philimuhire Philimuhire force-pushed the ft-comments--and-reactions-fn branch 2 times, most recently from 3c47b86 to 2a28b12 Compare November 29, 2024 12:43
@Philimuhire Philimuhire force-pushed the ft-comments--and-reactions-fn branch from 2a28b12 to 5e85b79 Compare November 29, 2024 13:09
@Philimuhire Philimuhire force-pushed the ft-comments--and-reactions-fn branch from b7b5259 to bf661df Compare December 1, 2024 16:30
@Philimuhire Philimuhire force-pushed the ft-comments--and-reactions-fn branch from bf661df to 0633ec7 Compare December 1, 2024 16:40
@Philimuhire Philimuhire linked an issue Dec 1, 2024 that may be closed by this pull request
@Philimuhire Philimuhire added the Ready For Review Extra attention is needed label Dec 1, 2024
Copy link
Contributor

@Prince-Kid Prince-Kid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Job

Copy link
Contributor

@Prince-Kid Prince-Kid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Job

Copy link
Contributor

@Prince-Kid Prince-Kid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Job

@robsdagreat robsdagreat self-requested a review December 2, 2024 08:21
@Philimuhire Philimuhire force-pushed the ft-comments--and-reactions-fn branch from 6a6d0a5 to 292dbce Compare December 3, 2024 12:11
@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit d3b225b and detected 0 issues on this pull request.

View more on Code Climate.

@ncutixavier ncutixavier merged commit 2d25b6a into develop Dec 3, 2024
8 checks passed
@ncutixavier ncutixavier deleted the ft-comments--and-reactions-fn branch December 3, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DREAM DREAM TEAM Ready For Review Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A user should be able to comment and react to blog posts.

9 participants