Skip to content

feat: allow Idea to be reused across multiple Proposals#30

Open
AutoJunjie wants to merge 2 commits intomainfrom
feature/idea-reuse-proposal
Open

feat: allow Idea to be reused across multiple Proposals#30
AutoJunjie wants to merge 2 commits intomainfrom
feature/idea-reuse-proposal

Conversation

@AutoJunjie
Copy link
Collaborator

支持同一个 Idea 被多个 Proposal 引用。移除 checkIdeasAvailability 阻断,前端允许 proposal_created/completed 状态的 Idea 创建新 Proposal。86 tests all pass。

Chorus Proposal: https://chorus.yfeichen.people.amazon.dev/projects/fc062cb4-fc0d-40d2-b849-bc0eb019c8bd/proposals/69261ff9-9da0-4d8b-9070-47a6b0db1bba

jhuang added 2 commits March 13, 2026 22:09
- Remove checkIdeasAvailability blocking in MCP tool (pm.ts), convert to informational warning
- Remove availability check blocking in frontend (actions.ts, new/page.tsx)
- Allow 'Create Proposal' button for ideas in elaborating, proposal_created, and completed states (idea-detail-panel.tsx)
- Keep existing status transition logic (already idempotent for reuse)

Closes: Idea 可重复用于生成 Proposal
- Test submitProposal with Idea in proposal_created status (updateMany matches 0, no error)
- Test approveProposal with Idea in completed status (updateMany matches 0, no error)
- All 86 tests pass
@github-actions
Copy link

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 96.29% (🎯 95%) 1739 / 1806
🔵 Statements 95.27% (🎯 95%) 1875 / 1968
🔵 Functions 95.15% (🎯 93%) 373 / 392
🔵 Branches 87.21% (🎯 85%) 1167 / 1338
File CoverageNo changed files found.
Generated in workflow #22 for commit d2a3be8 by the Vitest Coverage Report Action

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