feat(showcase): wire the automation demo end-to-end#1430
Merged
Conversation
Activates the showcase's automation chains now that the platform supports them (capability tokens from #1426; conditional/record-change flows fixed in #1429): - requires: ['ui','automation','approvals','messaging','triggers','job'] so the notify node delivers and record-change/schedule flows auto-fire. - Register the `rest` + `slack` connectors for the connector_action node. `rest` points at the running server (SHOWCASE_SELF_URL) so its call + response are observable with no external dependency. - Two worked flows: ScheduledDigestFlow (interval schedule → notify → inbox) and TaskCompletedRestPingFlow (record-change → rest connector GET /health). - Fix BudgetApprovalFlow's decision node: branch on edge `condition` (`budget > 500000` / `<= 500000`) per the flow spec, instead of the unevaluated node-level config + true/false labels — so budgets ≤ $500k correctly skip the executive approval step. - Ambient `process` decl so `pnpm typecheck` stays green without @types/node. Verified end-to-end in the browser: schedule digest, reassign→notify→inbox (email→user-id resolved), mark-done→REST/Slack/email, budget→approval with correct decision routing and approve→resume. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Activates the showcase's automation chains now that the platform supports them (capability tokens from #1426; conditional / record-change flows fixed in #1429).
requires→['ui','automation','approvals','messaging','triggers','job']so thenotifynode delivers to the inbox and record-change / schedule flows auto-fire.rest+slackfor theconnector_actionnode.resttargets the running server (SHOWCASE_SELF_URL), so its call + response are observable with no external dependency.ScheduledDigestFlow(interval schedule →notify→ inbox) andTaskCompletedRestPingFlow(record-change →restconnectorGET /api/v1/health).BudgetApprovalFlownow branches on edgecondition(budget > 500000/<= 500000) per the flow spec, instead of the unevaluated node-levelconfig.condition+true/falselabels. Budgets ≤ $500k now correctly skip the executive approval step.processdecl sopnpm typecheckstays green without adding@types/node.Verification (browser, end-to-end)
notify→ inbox row, keyed to the resolved user id (email→user-id from feat(messaging,cli): messaging + triggers capability tokens; notify-by-email resolves to user id #1426).connector_action(GET /health), Slackconnector_action, script email — all complete.Tests
pnpm --filter @objectstack/example-showcase verify(typecheck + coverage) green — 8 tests pass.Notes
Private example package, so no changeset. The two parked
dev-script tweaks (this package's--freshand the rootpackage.jsondefault-app switch) are intentionally not included. The remaining gaps (interactive screen-flow runner; approval decision UI) live in../objectui.🤖 Generated with Claude Code