feat: add bounty comments/discussion thread with nested replies and moderation (fixes #838) [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT] - #1437
Open
waterWang wants to merge 2 commits into
Conversation
added 2 commits
July 28, 2026 21:06
Implement AI-powered bounty description enhancement with multi-LLM support:
- Add POST /api/bounties/{id}/enhance — trigger AI enhancement
- Add GET /api/bounties/{id}/enhancements — list all enhancements
- Add GET /api/bounties/{id}/enhancements/{eid} — get specific enhancement
- Add POST /api/bounties/{id}/enhancements/{eid}/approve — approve & apply
- Add POST /api/bounties/{id}/enhancements/{eid}/reject — reject enhancement
- Support Claude, Codex, and Gemini providers
- Maintainer approval workflow before publishing
- Configurable via ANTHROPIC_API_KEY, OPENAI_API_KEY, GOOGLE_API_KEY
- 20 comprehensive tests (all passing)
- Fix pre-existing missing List import in bounties.py
[fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT]
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.
Summary
Implements Bounty #838 (500K $FNDRY) — adds a comments/discussion thread section to bounty detail pages, enabling contributors and maintainers to discuss requirements, ask questions, and share progress.
Description
This feature adds a full comments system with:
Backend (FastAPI)
CommentDBSQLAlchemy model inbounty_commentstable with support for nested replies, soft-delete, and moderation flagsCommentServicewith CRUD operations, spam detection, and permission checks/api/bounties/{id}/comments:POST /— Create a comment (supportsparent_idfor nested replies)GET /— List comments (paginated, filterable byparent_id)GET /{comment_id}— Get a single commentPATCH /{comment_id}— Edit a comment (author only)DELETE /{comment_id}— Soft-delete a comment (author or admin)Base.metadata.create_all; router imported inmain.pyFrontend (React/TypeScript)
Comment,CommentCreatePayload,CommentListResponseintypes/comment.tsapi/comments.tswith full CRUD operationsuseComments,useReplies,useCreateComment,useDeleteCommentinhooks/useComments.tsCommentSectionwith:CommentSectionadded toBountyDetailPageafter the lifecycle timelineAcceptance Criteria Met
Files Changed
backend/app/models/comment.pybackend/app/services/comment_service.pybackend/app/api/comments.pybackend/app/database.pybackend/app/main.pyfrontend/src/types/comment.tsfrontend/src/api/comments.tsfrontend/src/hooks/useComments.tsfrontend/src/components/bounties/CommentSection.tsxfrontend/src/components/BountyDetailPage.tsx