Feat v0.3.6 demo workflows + interactive demo
Four example workflow packages proving the engine end-to-end: - Bug Report Triage: public entry, branch routing, SLA timer - Employee Onboarding: Starlark automated stages, signoff gate - Content Approval: multi-party signoff, revision cycle loop - Webhook Notifier: http.post, connections fallback, delivery logging Demo surface at /s/workflow-demo with cards, stage diagrams, Starlark viewer, API examples, active/published status, and copyable public links. Engine fixes: started_by in automated context, sla_seconds in package installer, parseSnapshotStages for wrapped/legacy formats. Platform fixes: extension SDK boot in base.html (Preact globals + boot()), admin teams paginated response extraction, workflow adoption endpoint (POST /teams/:teamId/workflows/:id/adopt), team-admin copyable link. Review pass remains on roadmap for remaining UI polish. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
41
CHANGELOG.md
41
CHANGELOG.md
@@ -2,6 +2,47 @@
|
||||
|
||||
All notable changes to Switchboard Core are documented here.
|
||||
|
||||
## v0.3.6 — Example Workflows + Interactive Demo
|
||||
|
||||
### Added
|
||||
|
||||
- **Bug Report Triage** (`packages/bug-report-triage`): Public entry, progressive
|
||||
fieldsets, severity-based branch routing, SLA timer (3600s on critical fix).
|
||||
- **Employee Onboarding** (`packages/employee-onboarding`): Starlark automated
|
||||
stages (`db.insert`, `notifications.send`), manager signoff gate with
|
||||
`required_role`, rejection reroute. `script.star` with `on_provision` and
|
||||
`on_welcome` hooks. Creates `provisions` and `onboarding_log` ext_data tables.
|
||||
- **Content Approval** (`packages/content-approval`): Multi-party signoff (quorum
|
||||
of 2), rejection reroute creating a review cycle loop.
|
||||
- **Webhook Notifier** (`packages/webhook-notifier`): Starlark `http.post` with
|
||||
`connections.get` fallback, delivery logging to `webhook_log` ext_data table.
|
||||
- **Workflow Demo** surface (`packages/workflow-demo`): Interactive walkthrough
|
||||
with workflow cards, stage flow diagrams, Starlark viewer, API curl examples,
|
||||
and "Try It" buttons. Route: `/s/workflow-demo`.
|
||||
- **Engine context fix**: `started_by` added to automated stage Starlark context
|
||||
dict, enabling hooks to reference the workflow initiator.
|
||||
- **SLA package installer**: `sla_seconds` field added to `workflowPkgStage`
|
||||
struct and wired in both install and export paths.
|
||||
- **Snapshot format fix**: `parseSnapshotStages` helper handles both wrapped
|
||||
(`{"stages":[...]}`) and legacy flat array snapshot formats in the engine,
|
||||
fixing `corrupt version snapshot` errors when starting published workflows.
|
||||
- **Workflow adoption**: `POST /teams/:teamId/workflows/:id/adopt` claims a
|
||||
global (team_id=NULL) workflow for a team. `GET /teams/:teamId/workflows/available`
|
||||
lists adoptable workflows. `TeamID` added to `WorkflowPatch` model.
|
||||
- **Tests**: 3 new engine tests (automated context, SLA install, manifest
|
||||
roundtrip). Total: 142 handler tests passing.
|
||||
- Per-package `README.md` files for all 5 new packages.
|
||||
|
||||
### Fixed
|
||||
|
||||
- **Demo surface**: Added `sw.userMenu` to topbar. Fixed workflow install
|
||||
detection (was reading wrong response key). CSS uses theme variables for
|
||||
dark mode support.
|
||||
- **Admin teams tab**: Extracted `.data` from paginated response — was stuck
|
||||
at loading because `setTeams` received the envelope object, not the array.
|
||||
- **Team-admin workflows**: Added "Adopt Global" button to claim package-installed
|
||||
workflows into a team scope. Workflow list now unwraps paginated responses.
|
||||
|
||||
## v0.3.5 — Settings Audit + ICD + Tests + Clone
|
||||
|
||||
### Added
|
||||
|
||||
Reference in New Issue
Block a user