feat: Add description field and auto-spawn discuss agent on initiative creation
This commit is contained in:
@@ -140,9 +140,9 @@ Configured in `src/lib/trpc.ts`. Uses `@trpc/react-query` with TanStack Query fo
|
||||
## Key User Flows
|
||||
|
||||
### Creating an Initiative
|
||||
1. Dashboard → "New Initiative" → enter name, select projects
|
||||
2. `createInitiative` mutation → auto-creates root page
|
||||
3. Navigate to initiative detail
|
||||
1. Dashboard → "New Initiative" → enter name, optional description, select projects
|
||||
2. `createInitiative` mutation → auto-creates root page; if description provided, auto-spawns discuss agent
|
||||
3. Navigate to initiative detail page on success
|
||||
|
||||
### Managing Content (Pages)
|
||||
1. Content tab → page tree sidebar
|
||||
|
||||
@@ -84,7 +84,7 @@ Each procedure uses `require*Repository(ctx)` helpers that throw `TRPCError(INTE
|
||||
### Initiatives
|
||||
| Procedure | Type | Description |
|
||||
|-----------|------|-------------|
|
||||
| createInitiative | mutation | Create with optional branch/projectIds, auto-creates root page |
|
||||
| createInitiative | mutation | Create with optional branch/projectIds/description, auto-creates root page; if description provided, auto-spawns discuss agent |
|
||||
| listInitiatives | query | Filter by status; returns `activity` (state, activePhase, phase counts) computed from phases |
|
||||
| getInitiative | query | With projects array |
|
||||
| updateInitiative | mutation | Name, status |
|
||||
|
||||
Reference in New Issue
Block a user