Repository navigation
Allow editing completed features from the UI - #305
zwanski-start wants to merge 1 commit into
Conversation
Remove the backend restriction that made done features immutable and show the Edit button for completed features. Add an optional 'reopen' flag to FeatureUpdate so an edited feature can be moved back to pending for the agent to re-implement and re-verify. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
QA round 1 came back with an empty summary, so there was no specific defect to fix. The only failing signal is the CI run (39751500901), which shows |
🔍 QA report: ✅ PassedTester: Dennis (cubefarm agent, in a fresh session) · Round: 2 · Author: Ken Done features now show an Edit button, and the PATCH endpoint accepts edits to them. Without
🧪 Commands run
No browser screenshots were taken in this round. Posted by cubefarm · merges automatically once GitHub's checks pass |
Adaptations: none beyond listing the test in CLAUDE.md; merged on top of AutoForgeAI#245's FeatureModal changes. Integrates AutoForgeAI#305 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AeH26pcsqoxPb3CDs8g1VN
Closes #25
What changed
Pending and in-progress features could already be edited, but completed ("Done") features had no Edit button and the API refused with "Cannot edit a completed feature". This PR removes that restriction.
server/routers/features.py,server/schemas.py):PATCH /api/projects/{name}/features/{id}now accepts edits to completed features. Added an optionalreopen: bool = Falsefield toFeatureUpdate. When it is true and the feature is done, the feature goes back to pending (passes=False,in_progress=False).FeatureModalshows an Edit button for completed features. Skip and Delete stay hidden for them, as before.EditFeatureFormshows a "Move back to pending" switch when the feature is done. It is off by default, so a small wording fix keeps the feature done. Turning the switch on alone counts as a change you can save.test_feature_update.pywith 4 tests: editing a done feature keeps it done, editing with reopen moves it to pending, reopen on a pending feature does nothing, and a missing feature returns 404.Verification
pytest test_feature_update.py: 4 passedruff check .: cleannpm run lint: 0 errors; the 6 warnings were already therenpm run build: succeedspasses: false.Assumptions
🤖 Generated with Claude Code