Commit ff0758e
feat!: upgrade ObjectStack platform 12/13 → 14.7 (spec 14) (#448)
Bump every @objectstack/* package to ^14.7.0 and specVersion to ^14.0.0;
app version → 2.1.0. Migrate HotCRM metadata off the ObjectStack 14.0
breaking surface (ADR-0090 vocabulary convergence + enable.* flag gates)
and harden seed + opportunity-lifecycle hook for a clean fresh-DB boot.
Breaking-change migrations (driven from docs.objectstack.ai/docs/releases/v14):
- Approval approvers: type 'role' → 'position' on the opportunity-approval
flow (D3 — 'role' now resolves against the org-membership tier, so the
sales_manager/sales_director positions routed to nobody and stalled).
- FLS keys object-qualified (spec 14.4): sales_rep/service_agent permission
sets used bare account.*/opportunity.*/case.* keys that matched nothing;
requalified to crm_account.*/crm_opportunity.*/crm_case.* so masking applies.
Lint/quality migrations surfaced by spec 14:
- fieldGroups referenced by fields on crm_case/contract/product/quote so the
grouped record-detail sections actually render.
- crm_campaign_member gets a member_number autonumber + explicit nameField
(ADR-0079 resolvable record title for the junction object).
Fresh-boot fixes:
- opportunity-lifecycle hook runs the closed-deal freeze-guard BEFORE the
derived-field recompute, so system writes (post-seed ownership backfill)
to closed opportunities are no longer rejected — kills 23 boot-time
BodyRunner errors.
- seed 'completed' task gets completed_date to satisfy completed_date_required.
Docs: AGENTS.md now points platform upgrades at the official release notes
(docs.objectstack.ai/docs/releases) as the required first reference.
Verified: validate + typecheck + build + lint (zero warnings) + test (17/17)
green; browser-verified login → dashboards → lists → record detail with live
seed data, zero boot errors and no post-login console errors.
Claude-Session: https://claude.ai/code/session_01YV2dfQ9eR8NYKLSTVLKavY
Co-authored-by: Claude <noreply@anthropic.com>1 parent d29c214 commit ff0758e
16 files changed
Lines changed: 634 additions & 482 deletions
File tree
- src
- data
- flows
- objects
- profiles
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
170 | 188 | | |
171 | 189 | | |
172 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
5 | 24 | | |
6 | 25 | | |
7 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments