Feat v0.3.5 settings icd clone (#19)
All checks were successful
CI/CD / detect-changes (push) Successful in 5s
CI/CD / test-frontend (push) Successful in 6s
CI/CD / test-go-pg (push) Successful in 2m26s
CI/CD / test-sqlite (push) Successful in 2m36s
CI/CD / build-and-deploy (push) Successful in 1m33s

Co-authored-by: Jeffrey Smith <jasafpro@gmail.com>
Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #19.
This commit is contained in:
2026-03-28 13:32:23 +00:00
committed by xcaliber
parent 0773c86c27
commit d68451fe8e
11 changed files with 1673 additions and 37 deletions

View File

@@ -2,6 +2,35 @@
All notable changes to Switchboard Core are documented here.
## v0.3.5 — Settings Audit + ICD + Tests + Clone
### Added
- **Clone endpoint**: `POST /api/v1/workflows/:id/clone` deep-copies a workflow
and all its stages. Creates an inactive draft with "Copy of" prefix. Handles
slug collisions with auto-suffix. Team-scoped mirror at
`/api/v1/teams/:teamId/workflows/:id/clone`.
- **Integration tests**: 7 new engine-level tests in `workflow_engine_test.go`
covering full lifecycle, branch routing, public entry, signoff validation gate,
signoff rejection, cancel-clears-assignments, and error cases. Total: 28 tests.
- **Staleness timeout UI**: `staleness_timeout_hours` input added to workflow
editor in team-admin settings (was backend-only since v0.3.3).
- **Branch rules UI**: Collapsible JSON textarea in stage form for configuring
conditional routing rules (was backend-only since v0.3.2).
### Changed
- **ICD (OpenAPI spec)**: Fixed stale `Workflow` schema (added `description`,
`branding`, `is_active`, `on_complete`, `retention`, `staleness_timeout_hours`).
Fixed stale `Stage` schema (removed `history_mode`/`transition_rules`, updated
`stage_mode` enum to `[form, review, delegated, automated]`, added `audience`,
`stage_type`, `starlark_hook`, `branch_rules`, `stage_config`, `sla_seconds`,
`auto_transition`, `assignment_team_id`, `surface_pkg_id`).
Added `WorkflowInstance`, `WorkflowAssignment`, `WorkflowSignoff` schemas.
Added ~20 new endpoint paths: instances, assignments, signoffs, public entry,
clone, and team roles. Added tags: Workflow Instances, Workflow Assignments,
Workflow Signoffs, Public Workflows.
## v0.3.4 — Team Roles + Multi-party Validation
### Added