Changeset 0.37.15 (#227)

This commit is contained in:
2026-03-23 19:58:17 +00:00
parent b7746c3004
commit d005e8a30f
23 changed files with 1764 additions and 170 deletions

View File

@@ -1,5 +1,53 @@
# Changelog
## [0.37.15.0] — 2026-03-23
### Summary
Workflow Ownership & Lifecycle (CS1CS5). Adds instance cancel with assignment
cascade, assignment unclaim/reassign/cancel operations, full FE API domain
wiring for stage CRUD and assignments, team-admin workflows rewrite with
tabbed layout (Workflows + Stage Editor | Assignments Queue | Instance Monitor),
and settings assignments view replacing the read-only workflow list.
### Added
- **Instance cancel:** `POST /channels/:id/workflow/cancel` sets
`workflow_status='cancelled'` and cascades to all open assignments. Auth:
instance owner, team admin, or global admin. Team-scoped variant at
`POST /teams/:teamId/workflows/monitor/instances/:channelId/cancel`.
(`server/handlers/workflow_instances.go`, `server/store/*/channel.go`)
- **Assignment unclaim:** `POST /workflow-assignments/:id/unclaim` returns
claimed assignment to unassigned. Auth: claimer or team admin.
(`server/handlers/workflow_assignments.go`, `server/store/*/workflows.go`)
- **Assignment reassign:** `POST /workflow-assignments/:id/reassign` changes
`assigned_to` on claimed assignment. Auth: team admin.
(`server/handlers/workflow_assignments.go`, `server/store/*/workflows.go`)
- **Assignment cancel:** `POST /workflow-assignments/:id/cancel` cancels a
single assignment. Auth: team admin.
(`server/handlers/workflow_assignments.go`, `server/store/*/workflows.go`)
- **FE API domains:** `workflowAssignments` domain (mine, claim, unclaim,
complete, reassign, cancel, comment). Team domain additions: assignments,
workflowInstances, cancelWorkflowInstance, stage CRUD (workflowStages,
createWorkflowStage, updateWorkflowStage, deleteWorkflowStage,
reorderWorkflowStages). (`src/js/sw/sdk/api-domains.js`)
- **Team-admin workflows tabs:** Tabbed layout (Workflows | Assignments |
Monitor). Workflows tab includes inline stage editor with add/edit/delete.
Assignments tab shows claimed + available queue with claim/release/complete
actions and WS live updates. Monitor tab shows active instances with cancel.
(`src/js/sw/surfaces/team-admin/workflows.js`)
- **Settings assignments:** Replaces read-only workflow list with personal
assignment queue across all teams. Shows claimed and available assignments
with claim/release/open/complete actions.
(`src/js/sw/surfaces/settings/workflows.js`)
### Changed
- Settings sidebar label "Workflows" → "Assignments".
(`src/js/sw/surfaces/settings/index.js`)
---
## [0.37.14.23] — 2026-03-23
### Summary