Skip to content

chore(deps): upgrade @objectstack 7.2.0 → 7.4.1 and modernize flows#364

Merged
xuyushun441-sys merged 1 commit into
mainfrom
chore/objectstack-7.4-upgrade
Jun 1, 2026
Merged

chore(deps): upgrade @objectstack 7.2.0 → 7.4.1 and modernize flows#364
xuyushun441-sys merged 1 commit into
mainfrom
chore/objectstack-7.4-upgrade

Conversation

@xuyushun441-sys
Copy link
Copy Markdown
Contributor

Summary

Upgrades all @objectstack/* packages from ^7.2.0 to ^7.4.1 and brings HotCRM in line with the 7.4 metadata + Flow capability surface.

Breaking changes addressed

  • Approvals (ADR-0019): ApprovalProcess.create() and the top-level defineStack({ approvals }) field were removed from @objectstack/spec. Approvals are now record_change flows with approval nodes. Removed src/approvals/ and the config field.
  • UI routes: the unified Console shell moved to /_console/ (login at /_console/login); legacy /_studio/ and /_account/ are gone. Updated the e2e smoke tests and the config comment.

Flow modernization (re-evaluated every flow against 7.4 capabilities)

  • The script node with actionType:'email' is a silent no-op in 7.4. Migrated every notification step to the notify node (ADR-0012), which dispatches via the messaging service (inbox + email): lead-conversion, case-escalation, quote-generation.
  • opportunity-approval: replaced the dead connector_action/connectorId:'approval' pattern (and its as any casts) with native approval nodes, and merged the previously separate >$100K and >$500K approval flows into a single tiered flow — manager review > $100K, director sign-off > $500K via a decision gate — eliminating double-firing on large deals.

Verification

  • pnpm typecheck
  • pnpm build ✓ — 5 flows, protocol-compliant artifact
  • Server boots clean on 7.4.1 (30 plugins, flows registered)
  • pnpm test:e2e ✓ — 4 passed, 2 skipped (the opportunity-lifecycle tests self-skip under the auth-gated data API, as designed)

🤖 Generated with Claude Code

Upgrade all @objectstack/* packages from ^7.2.0 to ^7.4.1 and bring the
app in line with the 7.4 metadata + Flow capability surface.

Breaking changes addressed:

- Approvals (ADR-0019): `ApprovalProcess.create()` and the top-level
  `defineStack({ approvals })` field were removed from @objectstack/spec.
  Approvals are now `record_change` flows with `approval` nodes. Removed
  src/approvals/ and the config field.

- UI routes: the unified Console shell moved to /_console/ (login at
  /_console/login); legacy /_studio/ and /_account/ are gone. Updated the
  e2e smoke tests and the config comment.

Flow modernization (re-evaluated all flows against 7.4 capabilities):

- The `script` node with `actionType:'email'` is a silent no-op in 7.4.
  Migrated every notification step to the `notify` node (ADR-0012), which
  actually dispatches via the messaging service (inbox + email):
  lead-conversion, case-escalation, quote-generation.

- opportunity-approval: replaced the dead `connector_action`/`connectorId:
  'approval'` pattern (and its `as any` casts) with native `approval` nodes,
  and merged the previously separate >$100K and >$500K approval flows into a
  single tiered flow — manager review > $100K, director sign-off > $500K via
  a `decision` gate — eliminating double-firing on large deals.

Verified: typecheck + build pass (5 flows, protocol-compliant), server boots
clean on 7.4.1, e2e suite green (the two opportunity-lifecycle tests self-skip
under the auth-gated data API, as designed).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
hotcrm Ignored Ignored Jun 1, 2026 2:24pm

Request Review

@xuyushun441-sys xuyushun441-sys merged commit cb0b627 into main Jun 1, 2026
4 of 6 checks passed
@xuyushun441-sys xuyushun441-sys deleted the chore/objectstack-7.4-upgrade branch June 1, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants