Skip to content

feat(showcase): wire the automation demo end-to-end#1430

Merged
xuyushun441-sys merged 1 commit into
mainfrom
feat/showcase-automation-wiring
Jun 1, 2026
Merged

feat(showcase): wire the automation demo end-to-end#1430
xuyushun441-sys merged 1 commit into
mainfrom
feat/showcase-automation-wiring

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Contributor

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 the notify node delivers to the inbox and record-change / schedule flows auto-fire.
  • Connectors → register rest + slack for the connector_action node. rest targets the running server (SHOWCASE_SELF_URL), so its call + response are observable with no external dependency.
  • Two worked flowsScheduledDigestFlow (interval schedule → notify → inbox) and TaskCompletedRestPingFlow (record-change → rest connector GET /api/v1/health).
  • Decision-node fixBudgetApprovalFlow now branches on edge condition (budget > 500000 / <= 500000) per the flow spec, instead of the unevaluated node-level config.condition + true/false labels. Budgets ≤ $500k now correctly skip the executive approval step.
  • Ambient process decl so pnpm typecheck stays green without adding @types/node.

Verification (browser, end-to-end)

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 --fresh and the root package.json default-app switch) are intentionally not included. The remaining gaps (interactive screen-flow runner; approval decision UI) live in ../objectui.

🤖 Generated with Claude Code

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>
@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jun 1, 2026 2:33am

Request Review

@github-actions github-actions Bot added dependencies Pull requests that update a dependency file size/m labels Jun 1, 2026
@xuyushun441-sys xuyushun441-sys merged commit a3bd4e5 into main Jun 1, 2026
14 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file size/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants