Commit a67f1e7
chore(deps): upgrade ObjectStack to v9.0.0 + analytics single-form migration (#381)
Upgrade all @objectstack/* packages ^8.0.1 -> ^9.0.0 and complete the v9
breaking changes (docs.objectstack.ai/docs/releases/v9).
Analytics single-form cutover (ADR-0021): the inline analytics authoring
fields were removed in v9, so drop them from every dashboard widget
(object/categoryField/valueField/aggregate) and report
(objectName/columns/groupingsDown/groupingsAcross; filter -> runtimeFilter),
keeping only the dataset-bound form (dataset/dimensions|rows/values).
Fixes surfaced by v9's stricter validation and dataset-only rendering:
- chartConfig axis `field` must reference dataset MEASURE/DIMENSION names,
not raw object fields (amount->total_amount, count->case_count/account_count,
list_price->list_price_sum) — otherwise the chart renders empty ("No rows").
- Invalid relative-date macros never resolved and matched nothing:
{last_12_months}/{last_6_months}/{last_30_days} ->
{12_months_ago}/{6_months_ago}/{30_days_ago}.
- Seed option values rejected by v9 insert validation:
opportunity type renewal->existing_renewal, lead_source
advertising->advertisement (incl. the generator arrays); lead industry
travel->hospitality, financial_services->finance, consumer_goods->retail,
construction->other. Realigned the Sales "Deal Type" filter options too.
Verified in-browser: all 4 dashboards and 10 reports render real data with
zero "No rows" failures; clean seed (no validation errors); core CRM list
views load. tsc / validate / build / lint all green.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 3aa4675 commit a67f1e7
12 files changed
Lines changed: 525 additions & 691 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
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 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | 60 | | |
62 | | - | |
63 | | - | |
64 | 61 | | |
65 | 62 | | |
66 | 63 | | |
| |||
77 | 74 | | |
78 | 75 | | |
79 | 76 | | |
80 | | - | |
81 | 77 | | |
82 | | - | |
83 | 78 | | |
84 | 79 | | |
85 | 80 | | |
| |||
97 | 92 | | |
98 | 93 | | |
99 | 94 | | |
100 | | - | |
101 | 95 | | |
102 | | - | |
103 | | - | |
104 | 96 | | |
105 | 97 | | |
106 | 98 | | |
| |||
118 | 110 | | |
119 | 111 | | |
120 | 112 | | |
121 | | - | |
122 | 113 | | |
123 | | - | |
124 | | - | |
125 | 114 | | |
126 | 115 | | |
127 | 116 | | |
| |||
140 | 129 | | |
141 | 130 | | |
142 | 131 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 132 | + | |
148 | 133 | | |
149 | 134 | | |
150 | 135 | | |
| |||
154 | 139 | | |
155 | 140 | | |
156 | 141 | | |
157 | | - | |
| 142 | + | |
158 | 143 | | |
159 | 144 | | |
160 | 145 | | |
| |||
164 | 149 | | |
165 | 150 | | |
166 | 151 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | 152 | | |
172 | 153 | | |
173 | 154 | | |
| |||
185 | 166 | | |
186 | 167 | | |
187 | 168 | | |
188 | | - | |
189 | 169 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | 170 | | |
194 | 171 | | |
195 | 172 | | |
| |||
205 | 182 | | |
206 | 183 | | |
207 | 184 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | 185 | | |
213 | 186 | | |
214 | 187 | | |
| |||
218 | 191 | | |
219 | 192 | | |
220 | 193 | | |
221 | | - | |
| 194 | + | |
222 | 195 | | |
223 | 196 | | |
224 | 197 | | |
| |||
228 | 201 | | |
229 | 202 | | |
230 | 203 | | |
231 | | - | |
232 | | - | |
233 | 204 | | |
234 | 205 | | |
235 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | 70 | | |
72 | | - | |
73 | | - | |
74 | 71 | | |
75 | 72 | | |
76 | 73 | | |
| |||
87 | 84 | | |
88 | 85 | | |
89 | 86 | | |
90 | | - | |
91 | 87 | | |
92 | | - | |
93 | 88 | | |
94 | 89 | | |
95 | 90 | | |
| |||
107 | 102 | | |
108 | 103 | | |
109 | 104 | | |
110 | | - | |
111 | | - | |
112 | 105 | | |
113 | 106 | | |
114 | 107 | | |
| |||
126 | 119 | | |
127 | 120 | | |
128 | 121 | | |
129 | | - | |
130 | 122 | | |
131 | | - | |
132 | 123 | | |
133 | 124 | | |
134 | 125 | | |
| |||
148 | 139 | | |
149 | 140 | | |
150 | 141 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 142 | + | |
156 | 143 | | |
157 | 144 | | |
158 | 145 | | |
| |||
164 | 151 | | |
165 | 152 | | |
166 | 153 | | |
167 | | - | |
| 154 | + | |
168 | 155 | | |
169 | 156 | | |
170 | 157 | | |
| |||
174 | 161 | | |
175 | 162 | | |
176 | 163 | | |
177 | | - | |
178 | 164 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | 165 | | |
183 | 166 | | |
184 | 167 | | |
| |||
196 | 179 | | |
197 | 180 | | |
198 | 181 | | |
199 | | - | |
200 | 182 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | 183 | | |
205 | 184 | | |
206 | 185 | | |
| |||
216 | 195 | | |
217 | 196 | | |
218 | 197 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
| 198 | + | |
223 | 199 | | |
224 | 200 | | |
225 | 201 | | |
| |||
229 | 205 | | |
230 | 206 | | |
231 | 207 | | |
232 | | - | |
| 208 | + | |
233 | 209 | | |
234 | 210 | | |
235 | 211 | | |
| |||
240 | 216 | | |
241 | 217 | | |
242 | 218 | | |
243 | | - | |
244 | | - | |
245 | 219 | | |
246 | 220 | | |
247 | 221 | | |
| |||
0 commit comments