feat: Re-add initiative branch field and add projects settings page

Allow users to specify a custom branch when creating initiatives
(auto-generated if left blank). Add updateProject tRPC procedure
and /settings/projects page with inline-editable defaultBranch.
This commit is contained in:
Lukas May
2026-02-10 11:19:48 +01:00
parent fc3039a147
commit a8d3f52d09
7 changed files with 240 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ Each procedure uses `require*Repository(ctx)` helpers that throw `TRPCError(INTE
### Initiatives
| Procedure | Type | Description |
|-----------|------|-------------|
| createInitiative | mutation | Create with optional projectIds, auto-creates root page |
| createInitiative | mutation | Create with optional branch/projectIds, auto-creates root page |
| listInitiatives | query | Filter by status |
| getInitiative | query | With projects array |
| updateInitiative | mutation | Name, status |
@@ -143,6 +143,7 @@ Each procedure uses `require*Repository(ctx)` helpers that throw `TRPCError(INTE
| registerProject | mutation | Clone git repo, create record |
| listProjects | query | All projects |
| getProject | query | Single project |
| updateProject | mutation | Update project settings (defaultBranch) |
| deleteProject | mutation | Delete clone and record |
| getInitiativeProjects | query | Projects for initiative |
| updateInitiativeProjects | mutation | Sync junction table |