Skip to content

feat(api): add proposal management API (#216) - #227

Open
Sam-Rytech wants to merge 1 commit into
Lumina-eX:mainfrom
Sam-Rytech:feat/216-proposal-management-api
Open

Sam-Rytech wants to merge 1 commit into
Lumina-eX:mainfrom
Sam-Rytech:feat/216-proposal-management-api

Conversation

@Sam-Rytech

@Sam-Rytech Sam-Rytech commented Sep 24, 2026 •

Copy link
Copy Markdown
  • POST/GET /api/projects/:id/proposals and PATCH/DELETE /api/proposals/:id
  • Freelancer-only create/edit/delete; project client drives review status
  • One active proposal per freelancer per project (pre-check + partial unique index, 409 on conflict)
  • Status lifecycle submitted/updated/under_review -> accepted|rejected, invalid transitions return 409
  • Zod validation with field-level errors; { success, data, errors } envelope
  • Paginated, status-filterable listing with per-project cache invalidation
  • Migration 010_project_proposals.sql with project/freelancer indexes

Closes #216

- POST/GET /api/projects/:id/proposals and PATCH/DELETE /api/proposals/:id
- Freelancer-only create/edit/delete; project client drives review status
- One active proposal per freelancer per project (pre-check + partial
  unique index, 409 on conflict)
- Status lifecycle submitted/updated/under_review -> accepted|rejected,
  invalid transitions return 409
- Zod validation with field-level errors; { success, data, errors } envelope
- Paginated, status-filterable listing with per-project cache invalidation
- Migration 010_project_proposals.sql with project/freelancer indexes
@drips-wave

drips-wave Bot commented Sep 24, 2026

Copy link
Copy Markdown

@Sam-Rytech 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! 🚀

Learn more about application limits

@SudiptaPaul-31

Copy link
Copy Markdown
Collaborator

@Sam-Rytech resolve conflicts

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.

[Feature]: Proposal Management API

2 participants