When all phases complete, the initiative now transitions to pending_review status instead of silently stopping. The user reviews the full initiative diff and chooses: - Push Branch: push cw/<name> to remote for PR workflows - Merge & Push: merge into default branch and push Changes: - Schema: Add pending_review to initiative status enum - BranchManager: Add pushBranch port + SimpleGit adapter - Events: initiative:pending_review, initiative:review_approved - Orchestrator: checkInitiativeCompletion + approveInitiative - tRPC: getInitiativeReviewDiff, getInitiativeReviewCommits, getInitiativeCommitDiff, approveInitiativeReview - Frontend: InitiativeReview component in ReviewTab - Subscriptions: Add initiative events + missing preview/conversation event types and subscription procedures
7 lines
414 B
SQL
7 lines
414 B
SQL
-- Add 'pending_review' to initiative status enum.
|
|
-- SQLite text columns don't enforce enum values at DDL level,
|
|
-- so no schema change is needed. This migration exists for documentation
|
|
-- and to keep the migration sequence in sync with schema.ts changes.
|
|
-- The Drizzle ORM schema definition now includes 'pending_review' in the
|
|
-- initiatives.status enum: ['active', 'completed', 'archived', 'pending_review']
|