Skip to content

feat: Added Voting and Comment Feedback Mechanism to Projects#111

Merged
Benjtalkshow merged 1 commit into
boundlessfi:mainfrom
OthmanImam:feat/AddVotingandCommentFeedbackMechanismtoProjects#103
Jul 7, 2025
Merged

feat: Added Voting and Comment Feedback Mechanism to Projects#111
Benjtalkshow merged 1 commit into
boundlessfi:mainfrom
OthmanImam:feat/AddVotingandCommentFeedbackMechanismtoProjects#103

Conversation

@OthmanImam

Copy link
Copy Markdown

Add Voting and Comment Feedback Mechanism to Projects

Overview

This PR implements a user feedback system for project ideas, allowing users to upvote/downvote and comment on projects. This enhances community engagement and helps validate project demand.

Features

  • Upvote and downvote buttons with real-time vote count and percentage display
  • One vote per user per project (toggle or update)
  • Voting integrated with POST /projects/:id/vote endpoint
  • Project GET endpoint now returns upvotes, downvotes, and vote percentage
  • Comment section for each project, storing feedback via POST /projects/:id/comments
  • Proper error handling and validation for all endpoints

Technical Notes

  • Follows Boundless code standards and is fully API-integrated
  • Backend and schema updated for VoteType (UPVOTE/DOWNVOTE)

Closes #103

…jects

- Implement upvote/downvote voting with vote percentage and count
- Enforce one vote per user per project
- Add endpoints for voting and comments with proper validation and error handling
- Update project GET endpoint to include upvotes, downvotes, and vote percentage
- Add POST handler for project comments
@vercel

vercel Bot commented Jul 2, 2025

Copy link
Copy Markdown

@OthmanImam is attempting to deploy a commit to the christroa's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Benjtalkshow Benjtalkshow merged commit efab6b0 into boundlessfi:main Jul 7, 2025
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Voting and Comment Feedback Mechanism to Projects

2 participants