Skip to content

feat: allow Idea to be reused for multiple Proposals#26

Open
AutoJunjie wants to merge 1 commit intomainfrom
feat/idea-reusable-proposal
Open

feat: allow Idea to be reused for multiple Proposals#26
AutoJunjie wants to merge 1 commit intomainfrom
feat/idea-reusable-proposal

Conversation

@AutoJunjie
Copy link
Collaborator

Summary

Fixes WOO-19: Support the same Idea being referenced by multiple Proposals.

Changes

  • MCP tools (pm.ts): Removed checkIdeasAvailability blocking — reused ideas now log a warning instead of erroring
  • Web action (actions.ts): Removed availability check for idea-to-proposal uniqueness
  • Frontend (new proposal page): Shows both elaborating and proposal_created ideas in the selector
  • approveProposal(): Only auto-completes an Idea when no other active (draft/pending) proposals reference it

No DB schema changes

Testing

  • Same Idea can create multiple Proposals without error
  • Submitting a second Proposal doesn't affect Idea status if already proposal_created
  • Approving one Proposal doesn't complete the Idea if other active proposals remain
  • TypeScript compiles (no new type errors)

- Remove checkIdeasAvailability blocking in MCP tools and web actions
- Frontend: show elaborating + proposal_created ideas in proposal creator
- approveProposal: only complete idea when no other active proposals remain
- No DB schema changes
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.

1 participant