Open
Conversation
Track B: Engagement - 2 plans in 1 wave (parallel execution) - B-01: Vote system (types, API, hooks, proxy routes) - B-02: Comment CRUD operations (types, API, hooks, proxy routes) Ready for execution Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- CommentResponse: Full comment object with user, timestamps, nested replies - CommentUser: Minimal user info for comment display - CreateCommentDto: Request body for creating comments - UpdateCommentDto: Request body for updating comments
- Add VoteType enum (accurate | different) - Add VoteStatsResponse, CreateVoteDto, VoteResponse interfaces - Add MatchType enum (perfect | close) - Add AdoptSolutionDto, AdoptResponse, UpdatedSpotInfo interfaces - All types match OpenAPI spec exactly
- comments.ts: fetchComments, createComment, updateComment, deleteComment - API proxy routes for /posts/[postId]/comments (GET, POST) - API proxy routes for /comments/[commentId] (PATCH, DELETE) - Updated index.ts to export comment functions
- Add votes.ts with fetchVoteStats, createVote, deleteVote, adoptSolution, unadoptSolution - Export vote functions from api/index.ts - Create API proxy route for votes (GET, POST, DELETE) - Create API proxy route for adopt (POST, DELETE) - All functions follow established patterns with apiClient
- useComments: Query for fetching comments list - useCreateComment: Mutation with optimistic updates (supports replies) - useUpdateComment: Mutation with optimistic updates and rollback - useDeleteComment: Mutation with optimistic removal and rollback - All hooks handle nested replies via recursive updates
- Add useVoteStats hook for fetching vote stats - Add useVote hook for creating votes - Add useRetractVote hook for deleting votes - Add useAdoptSolution hook for adopting solutions - Add useUnadoptSolution hook for unadopting solutions - All hooks follow established React Query patterns with proper cache invalidation
Tasks completed: 3/3 - Task 1: Add Comment types to types.ts - Task 2: Create comment API functions and proxy routes - Task 3: Create React Query hooks for comments SUMMARY: .planning/phases/B-engagement/B-02-SUMMARY.md
Tasks completed: 3/3 - Add vote and adopt types - Create API functions and proxy routes - Create React Query hooks SUMMARY: .planning/phases/B-engagement/B-01-SUMMARY.md
- Mark Track B as complete in ROADMAP.md - Update all VOTE-* and CMNT-* requirements to Complete - Update STATE.md to reflect track completion Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.
No description provided.