actions/todos.ts:
- promoteTodoToIdeaAction(todoId): auth + demo + scope + already-archived
guards. Atomic \$transaction creates DRAFT Idea (with auto IDEA-NNN code)
and archives source Todo + IdeaLog{NOTE}.
- Anders dan Todo→PBI/Story (die de todo deleten): we ARCHIVEREN. De idea
wordt het nieuwe planningsartifact; de archived todo bewaart het
vertrekpunt (zie M12 grill-keuze 12).
Tests: 5 cases — happy, auth-401, demo-403, scope-404, already-archived-422.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| active-product.test.ts | ||
| auth.test.ts | ||
| claude-jobs-batch.test.ts | ||
| claude-jobs.test.ts | ||
| ideas-crud.test.ts | ||
| pairing.test.ts | ||
| products.test.ts | ||
| questions.test.ts | ||
| sprint-dates.test.ts | ||
| sprints-cascade.test.ts | ||
| story-claim.test.ts | ||
| tasks-dialog.test.ts | ||
| todos-promote-idea.test.ts | ||