Draft trees and custom steps #25
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
Enable users to save incomplete trees and custom steps as drafts, allowing them to return later to finish editing without validation errors blocking their work.
Use Cases
Design Document
See detailed design:
docs/plans/2026-02-03-draft-trees-feature.mdKey Features
Trees
statusfield:draft|publishedStep Library
Database Changes
statuscolumn totreestable (default:published)statuscolumn tostep_librarytable (default:published)published)API Changes
GET /api/v1/trees?include_drafts=true- include user's draftsGET /api/v1/trees/{id}/can-publish- check if draft can be publishedFrontend Changes
Dependencies
Implementation Phases
Success Metrics
Priority
Medium - Valuable workflow improvement, but not blocking core functionality
Plan to implement in Phase 3 after Step Library frontend is complete.
✅ Implemented draft tree status with conditional validation. Trees can be saved as drafts without validation, then published when ready. Includes draft badges in all views, split Save Draft/Publish buttons in editor, and 'Show my drafts' toggle in library. Backend validation system ensures only valid trees can be published. 20 tests passing. Completed in commits
c7b2c59and996b664.