feat: implement milestone management APIs#107
Merged
SudiptaPaul-31 merged 1 commit intoMay 30, 2026
Merged
Conversation
- POST /api/milestones — create milestone (client only, validates project ownership) - PATCH /api/milestones/:id — update milestone (client only, blocks on submitted/approved/paid) - POST /api/milestones/:id/submit — submit milestone (freelancer only, requires contract) - POST /api/milestones/:id/approve — approve or reject milestone (client only, requires contract) Closes Lumina-eX#99
|
@playmaker410 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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 the four milestone management API endpoints requested in #99.
Endpoints
POST/api/milestonesPATCH/api/milestones/:idPOST/api/milestones/:id/submitPOST/api/milestones/:id/approveImplementation Details
submitted/approved/paid; submit requirespendingorin_progress; approve requiressubmitted.action: 'approve' | 'reject'withrejection_reasonrequired on rejection.{ error, code }responses matching the existing project conventions.milestonestable (UUID PK,milestone_statusenum,contractsFK for role resolution).Testing
Follows the same patterns as existing routes (
/api/projects,/api/disputes). Local build/lint not runnable withoutDATABASE_URL, consistent with CI setup described in README.Closes #99