fsanyoto commited on
Commit
0e1e0f3
·
verified ·
1 Parent(s): 1d1c79b

Deploy AIOS web (React glide grid + FastAPI slice)

Browse files
RELEASES.json CHANGED
@@ -1,4 +1,443 @@
1
  {
2
- "current": "65f450b",
3
- "releases": []
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
 
1
  {
2
+ "current": "fa06797",
3
+ "releases": [
4
+ {
5
+ "version": "v74",
6
+ "sha": "40dceba",
7
+ "date": "2026-09-14",
8
+ "subject": "release v74: waves 58+59 incl. the Amazon credential door (W59-T21/22/23) and sync producer (W59-T42); hotfix promote so"
9
+ },
10
+ {
11
+ "version": "v73",
12
+ "sha": "bb94de5",
13
+ "date": "2026-09-13",
14
+ "subject": "release v73"
15
+ },
16
+ {
17
+ "version": "v71",
18
+ "sha": "96143dc",
19
+ "date": "2026-09-04",
20
+ "subject": "release v71 - wave 51, QA'd 24 PASS / 6 FAIL / 5 UNPROVEN"
21
+ },
22
+ {
23
+ "version": "v70",
24
+ "sha": "eedfb6a",
25
+ "date": "2026-09-03",
26
+ "subject": "release v70 - wave 50 (grid analytics, the Sheet as a spreadsheet, view trash and audit)"
27
+ },
28
+ {
29
+ "version": "v69",
30
+ "sha": "8598f56",
31
+ "date": "2026-09-02",
32
+ "subject": "release v69: wave48-continuation validated + hotfixes v67/v68/d4e3e31 + go-live QA repairs (Supplier option limit, optio"
33
+ },
34
+ {
35
+ "version": "v68",
36
+ "sha": "62b065a",
37
+ "date": "2026-09-01",
38
+ "subject": "release v68: unified holiday date offsets"
39
+ },
40
+ {
41
+ "version": "v67",
42
+ "sha": "3b22419",
43
+ "date": "2026-09-01",
44
+ "subject": "release v67"
45
+ },
46
+ {
47
+ "version": "v66",
48
+ "sha": "73c94f0",
49
+ "date": "2026-08-31",
50
+ "subject": "release v66"
51
+ },
52
+ {
53
+ "version": "v65",
54
+ "sha": "9f6cfed",
55
+ "date": "2026-08-31",
56
+ "subject": "release v65"
57
+ },
58
+ {
59
+ "version": "v64",
60
+ "sha": "bb8985c",
61
+ "date": "2026-08-31",
62
+ "subject": "release v64"
63
+ },
64
+ {
65
+ "version": "v63",
66
+ "sha": "ec75cb8",
67
+ "date": "2026-08-31",
68
+ "subject": "release v63"
69
+ },
70
+ {
71
+ "version": "v62",
72
+ "sha": "2c8f702",
73
+ "date": "2026-08-31",
74
+ "subject": "release v62"
75
+ },
76
+ {
77
+ "version": "v61",
78
+ "sha": "bbc4c07",
79
+ "date": "2026-08-30",
80
+ "subject": "v61 - wave 46 hotfix: D-590 schema overlay reaches the grid read (all three assemblies), D-599 route to zone association"
81
+ },
82
+ {
83
+ "version": "v60",
84
+ "sha": "dd1b062",
85
+ "date": "2026-08-30",
86
+ "subject": "v60 - wave 46"
87
+ },
88
+ {
89
+ "version": "v59",
90
+ "sha": "3cb73ce",
91
+ "date": "2026-08-29",
92
+ "subject": "release v59"
93
+ },
94
+ {
95
+ "version": "v58",
96
+ "sha": "c526ced",
97
+ "date": "2026-08-29",
98
+ "subject": "release v58"
99
+ },
100
+ {
101
+ "version": "v57",
102
+ "sha": "4859c03",
103
+ "date": "2026-08-29",
104
+ "subject": "release v57"
105
+ },
106
+ {
107
+ "version": "v56",
108
+ "sha": "2970b72",
109
+ "date": "2026-08-28",
110
+ "subject": "release v56"
111
+ },
112
+ {
113
+ "version": "v55",
114
+ "sha": "b766b90",
115
+ "date": "2026-08-28",
116
+ "subject": "release v55"
117
+ },
118
+ {
119
+ "version": "v54",
120
+ "sha": "6a8e99a",
121
+ "date": "2026-08-27",
122
+ "subject": "release v54"
123
+ },
124
+ {
125
+ "version": "v53",
126
+ "sha": "89ed2cb",
127
+ "date": "2026-08-24",
128
+ "subject": "release v53"
129
+ },
130
+ {
131
+ "version": "v52",
132
+ "sha": "8263493",
133
+ "date": "2026-08-23",
134
+ "subject": "release v52"
135
+ },
136
+ {
137
+ "version": "v51",
138
+ "sha": "5740d20",
139
+ "date": "2026-08-23",
140
+ "subject": "release v51"
141
+ },
142
+ {
143
+ "version": "v50",
144
+ "sha": "8027c83",
145
+ "date": "2026-08-23",
146
+ "subject": "release v50"
147
+ },
148
+ {
149
+ "version": "v49",
150
+ "sha": "9a14c01",
151
+ "date": "2026-08-23",
152
+ "subject": "release v49"
153
+ },
154
+ {
155
+ "version": "v48",
156
+ "sha": "3c69fd9",
157
+ "date": "2026-08-23",
158
+ "subject": "release v48"
159
+ },
160
+ {
161
+ "version": "v47",
162
+ "sha": "917f9a0",
163
+ "date": "2026-08-23",
164
+ "subject": "release v47"
165
+ },
166
+ {
167
+ "version": "v46",
168
+ "sha": "a8dc531",
169
+ "date": "2026-08-23",
170
+ "subject": "release v46"
171
+ },
172
+ {
173
+ "version": "v45",
174
+ "sha": "0b2b501",
175
+ "date": "2026-08-23",
176
+ "subject": "release v45"
177
+ },
178
+ {
179
+ "version": "v44",
180
+ "sha": "a7877aa",
181
+ "date": "2026-08-23",
182
+ "subject": "Hotfix: allow renaming the active Map view"
183
+ },
184
+ {
185
+ "version": "v43",
186
+ "sha": "e2ba461",
187
+ "date": "2026-08-23",
188
+ "subject": "release v43"
189
+ },
190
+ {
191
+ "version": "v42",
192
+ "sha": "25b885e",
193
+ "date": "2026-08-23",
194
+ "subject": "release v42"
195
+ },
196
+ {
197
+ "version": "v41",
198
+ "sha": "1d6adcc",
199
+ "date": "2026-08-22",
200
+ "subject": "v41 vertical route navigation"
201
+ },
202
+ {
203
+ "version": "v40",
204
+ "sha": "1451837",
205
+ "date": "2026-08-22",
206
+ "subject": "release v40 route UI correction"
207
+ },
208
+ {
209
+ "version": "v39",
210
+ "sha": "a78bdf0",
211
+ "date": "2026-08-21",
212
+ "subject": "W39 clean stale migration targets"
213
+ },
214
+ {
215
+ "version": "v38",
216
+ "sha": "a556631",
217
+ "date": "2026-08-21",
218
+ "subject": "W39 reversible Live store cutover"
219
+ },
220
+ {
221
+ "version": "v37",
222
+ "sha": "1ddd8cf",
223
+ "date": "2026-08-21",
224
+ "subject": "W39: coalesce derived workspace reads"
225
+ },
226
+ {
227
+ "version": "v36",
228
+ "sha": "51db3b7",
229
+ "date": "2026-08-21",
230
+ "subject": "W39 share-field oid repair"
231
+ },
232
+ {
233
+ "version": "v35",
234
+ "sha": "0f64212",
235
+ "date": "2026-08-21",
236
+ "subject": "W39 visual QA fixture"
237
+ },
238
+ {
239
+ "version": "v34",
240
+ "sha": "cb4caa1",
241
+ "date": "2026-08-21",
242
+ "subject": "W39 Staging PostgreSQL egress controls"
243
+ },
244
+ {
245
+ "version": "v33",
246
+ "sha": "2b115e5",
247
+ "date": "2026-08-21",
248
+ "subject": "W39: stop nonproduction Postgres background egress"
249
+ },
250
+ {
251
+ "version": "v32",
252
+ "sha": "b47b27c",
253
+ "date": "2026-08-21",
254
+ "subject": "W39: repair Staging Postgres projection"
255
+ },
256
+ {
257
+ "version": "v31",
258
+ "sha": "8880a49",
259
+ "date": "2026-08-21",
260
+ "subject": "v31: Wave 39 staging candidate"
261
+ },
262
+ {
263
+ "version": "v30",
264
+ "sha": "71776ca",
265
+ "date": "2026-08-20",
266
+ "subject": "v30: W39-T29 Member-owned View first-share hotfix"
267
+ },
268
+ {
269
+ "version": "v29",
270
+ "sha": "55ced50",
271
+ "date": "2026-08-18",
272
+ "subject": "v29: the build staging has been running since 2026-08-18 (55ced50)."
273
+ },
274
+ {
275
+ "version": "v28",
276
+ "sha": "2793e4b",
277
+ "date": "2026-08-18",
278
+ "subject": "release v28"
279
+ },
280
+ {
281
+ "version": "v27",
282
+ "sha": "c05a794",
283
+ "date": "2026-08-18",
284
+ "subject": "release v27"
285
+ },
286
+ {
287
+ "version": "v25",
288
+ "sha": "bc24829",
289
+ "date": "2026-08-14",
290
+ "subject": "v25 - wave 32's LIVE build (deployed 2026-08-13, bc24829)"
291
+ },
292
+ {
293
+ "version": "v26",
294
+ "sha": "6a642e1",
295
+ "date": "2026-08-14",
296
+ "subject": "v26 - wave 33's build (deployed 2026-08-14, 6a642e1)"
297
+ },
298
+ {
299
+ "version": "v24",
300
+ "sha": "514d829",
301
+ "date": "2026-08-09",
302
+ "subject": "release v24"
303
+ },
304
+ {
305
+ "version": "v23",
306
+ "sha": "44cc283",
307
+ "date": "2026-08-09",
308
+ "subject": "release v23"
309
+ },
310
+ {
311
+ "version": "v22",
312
+ "sha": "f14e199",
313
+ "date": "2026-08-09",
314
+ "subject": "release v22"
315
+ },
316
+ {
317
+ "version": "v21",
318
+ "sha": "5fdffce",
319
+ "date": "2026-08-09",
320
+ "subject": "release v21"
321
+ },
322
+ {
323
+ "version": "v20",
324
+ "sha": "442e4a1",
325
+ "date": "2026-08-09",
326
+ "subject": "release v20"
327
+ },
328
+ {
329
+ "version": "v19",
330
+ "sha": "94cb4a4",
331
+ "date": "2026-08-09",
332
+ "subject": "release v19"
333
+ },
334
+ {
335
+ "version": "v18",
336
+ "sha": "0106ef9",
337
+ "date": "2026-08-09",
338
+ "subject": "release v18"
339
+ },
340
+ {
341
+ "version": "v17",
342
+ "sha": "308240c",
343
+ "date": "2026-08-09",
344
+ "subject": "release v17"
345
+ },
346
+ {
347
+ "version": "v16",
348
+ "sha": "a804df5",
349
+ "date": "2026-08-09",
350
+ "subject": "release v16"
351
+ },
352
+ {
353
+ "version": "v15",
354
+ "sha": "6b84d72",
355
+ "date": "2026-08-09",
356
+ "subject": "release v15"
357
+ },
358
+ {
359
+ "version": "v14",
360
+ "sha": "bee5eaf",
361
+ "date": "2026-08-07",
362
+ "subject": "release v14"
363
+ },
364
+ {
365
+ "version": "v13",
366
+ "sha": "314c0e3",
367
+ "date": "2026-08-06",
368
+ "subject": "release v13"
369
+ },
370
+ {
371
+ "version": "v12",
372
+ "sha": "4908f39",
373
+ "date": "2026-08-06",
374
+ "subject": "release v12"
375
+ },
376
+ {
377
+ "version": "v11",
378
+ "sha": "3126617",
379
+ "date": "2026-08-05",
380
+ "subject": "release v11"
381
+ },
382
+ {
383
+ "version": "v10",
384
+ "sha": "43f8042",
385
+ "date": "2026-08-05",
386
+ "subject": "release v10"
387
+ },
388
+ {
389
+ "version": "v9",
390
+ "sha": "2e26f57",
391
+ "date": "2026-08-05",
392
+ "subject": "release v9"
393
+ },
394
+ {
395
+ "version": "v8",
396
+ "sha": "8073b3e",
397
+ "date": "2026-08-05",
398
+ "subject": "release v8"
399
+ },
400
+ {
401
+ "version": "v7",
402
+ "sha": "b1c5a7e",
403
+ "date": "2026-08-05",
404
+ "subject": "release v7"
405
+ },
406
+ {
407
+ "version": "v6",
408
+ "sha": "a344020",
409
+ "date": "2026-08-05",
410
+ "subject": "release v6"
411
+ },
412
+ {
413
+ "version": "v5",
414
+ "sha": "c0b0fbb",
415
+ "date": "2026-08-05",
416
+ "subject": "release v5"
417
+ },
418
+ {
419
+ "version": "v4",
420
+ "sha": "de5037f",
421
+ "date": "2026-08-05",
422
+ "subject": "release v4"
423
+ },
424
+ {
425
+ "version": "v3",
426
+ "sha": "6b9fa62",
427
+ "date": "2026-08-05",
428
+ "subject": "release v3"
429
+ },
430
+ {
431
+ "version": "v2",
432
+ "sha": "fd05861",
433
+ "date": "2026-08-04",
434
+ "subject": "release v2"
435
+ },
436
+ {
437
+ "version": "v1",
438
+ "sha": "5b4e2c4",
439
+ "date": "2026-08-04",
440
+ "subject": "release v1"
441
+ }
442
+ ]
443
  }
VERSION CHANGED
@@ -1 +1 @@
1
- 65f450b
 
1
+ fa06797
platform/core/odoo.py CHANGED
@@ -103,7 +103,9 @@ def tenant_scope(slug, creds=None, team_ids=None, team_names=None, exclude_partn
103
  Unbound (the default) = tenant #0 via env, which is every existing Streamlit/API caller.
104
  The connector layer (harness/connectors/odoo.py) wraps each query in this, so a second
105
  tenant's keychain credentials reach the wire without any module knowing. Scope constants
106
- are PUSHED here from Tenant.config because core/ may not import harness/ (layering)."""
 
 
107
  prev = getattr(_tlocal, 'tenant_ctx', None)
108
  _tlocal.tenant_ctx = {
109
  'slug': str(slug or _DEFAULT_SLUG),
 
103
  Unbound (the default) = tenant #0 via env, which is every existing Streamlit/API caller.
104
  The connector layer (harness/connectors/odoo.py) wraps each query in this, so a second
105
  tenant's keychain credentials reach the wire without any module knowing. Scope constants
106
+ are PUSHED here from Tenant.config because core/ may not import harness/ (layering; enforced
107
+ forward by platform/verify_layering.py, which grandfathers the older core -> harness edges
108
+ by name, D-460)."""
109
  prev = getattr(_tlocal, 'tenant_ctx', None)
110
  _tlocal.tenant_ctx = {
111
  'slug': str(slug or _DEFAULT_SLUG),
platform/core/user_tables.py CHANGED
@@ -940,7 +940,7 @@ def _slug(label):
940
  return (s or 'table')[:40]
941
 
942
 
943
- def _ag_formula(raw):
944
  """`aios_grid._clean_formula`, reached the way this module reaches everything one layer up.
945
 
946
  ⚠ ONE call site for the function-local import, shared by BOTH field doors (`clean_fields` and
@@ -949,12 +949,11 @@ def _ag_formula(raw):
949
  cost twice. A third and fourth copy of `import aios_grid as _agX` is how one of them ends up
950
  calling a different validator.
951
 
952
- ⚠ `valid_keys` IS DELIBERATELY NOT PASSED. See the note at `_clean_field`'s formula branch:
953
- neither door has reliable sibling-field context, and a second, weaker copy of the ref rule is
954
- worse than leaving refs to the read-time behaviour `_clean_formula` already documents.
955
  """
956
  import aios_grid as _agf
957
- return _agf._clean_formula(raw)
958
 
959
 
960
  def _ag_geocode(raw):
@@ -2887,9 +2886,13 @@ def note_human_edit(table_key, values, row_id, st=None):
2887
  return sorted(touched)
2888
 
2889
 
2890
- def _clean_field(raw, previous=None, recurrence_validator=None):
2891
  """One field dict → the stored shape, or None. The single validator for create AND patch, so
2892
- a column cannot be typed one way on the way in and another on the way back."""
 
 
 
 
2893
  prev = previous or {}
2894
  raw = raw if isinstance(raw, dict) else {}
2895
  label = ' '.join(str(raw.get('label') or prev.get('label') or '').split())[:80]
@@ -3162,21 +3165,21 @@ def _clean_field(raw, previous=None, recurrence_validator=None):
3162
  # formula column with no expression is a column that can never show a value, so the pairing is
3163
  # enforced BOTH WAYS and either half alone refuses the field.
3164
  #
3165
- # ⚠ `valid_keys` IS DELIBERATELY OMITTED, and it is the one real asymmetry with the overlay
3166
- # door. `grid_events` passes the workspace's own key set, so a `{ref}` naming no column is
3167
- # refused at write time there. This function is handed ONE field with no sibling context —
3168
- # `add_field`/`patch_field` could supply the table's keys, but `clean_fields` validates a list
3169
- # mid-construction where half the referenced columns do not exist yet, and `clean_machine_
3170
- # fields` judges a list that has no table at all. A second, weaker copy of the ref rule in one
3171
- # of the three would be the divergence this module keeps paying for. STRUCTURE is checked here
3172
- # (charset, length, balanced parens and quotes, well-formed refs); an unresolvable ref blanks
3173
- # the CELL client-side, which is `_clean_formula`'s own documented read-time behaviour and the
3174
- # same answer a later-deleted column already produces.
3175
  # ⚠ Reached through `_ag_formula` so BOTH doors call one validator through one import.
3176
  formula_raw = (raw.get('formula') if 'formula' in raw
3177
  else (prev.get('formula') if prev_type == ftype else None))
3178
  if formula_raw is not None:
3179
- fx = _ag_formula(formula_raw)
3180
  if fx is None or ftype != 'formula':
3181
  return None
3182
  out['formula'] = fx
@@ -3793,7 +3796,8 @@ def add_field(table_key, raw, st=None, recurrence_validator=None):
3793
  have = [f for f in (defn.get('fields') or [])]
3794
  if len(have) >= MAX_FIELDS:
3795
  return None
3796
- field = _clean_field(raw, recurrence_validator=recurrence_validator)
 
3797
  if not field or any(f.get('key') == field['key'] for f in have):
3798
  return None
3799
  if not dynamic_link_filter_valid(field, have):
@@ -4001,7 +4005,13 @@ def patch_field(table_key, fkey, raw, st=None, recurrence_validator=None):
4001
  if 'description' in merged and isinstance(fields[idx].get('automation'), dict) \
4002
  and fields[idx]['automation'].get('preset') is True:
4003
  merged.pop('description')
4004
- field = _clean_field(merged, fields[idx], recurrence_validator=recurrence_validator)
 
 
 
 
 
 
4005
  if not field:
4006
  return None
4007
  if not dynamic_link_filter_valid(field, fields):
 
940
  return (s or 'table')[:40]
941
 
942
 
943
+ def _ag_formula(raw, valid_keys=None):
944
  """`aios_grid._clean_formula`, reached the way this module reaches everything one layer up.
945
 
946
  ⚠ ONE call site for the function-local import, shared by BOTH field doors (`clean_fields` and
 
949
  cost twice. A third and fourth copy of `import aios_grid as _agX` is how one of them ends up
950
  calling a different validator.
951
 
952
+ ⚠ `valid_keys` is forwarded as given, `None` by default. D-540: only `add_field`/`patch_field`
953
+ supply it; see the note at `_clean_field`'s formula branch.
 
954
  """
955
  import aios_grid as _agf
956
+ return _agf._clean_formula(raw, valid_keys)
957
 
958
 
959
  def _ag_geocode(raw):
 
2886
  return sorted(touched)
2887
 
2888
 
2889
+ def _clean_field(raw, previous=None, recurrence_validator=None, valid_keys=None):
2890
  """One field dict → the stored shape, or None. The single validator for create AND patch, so
2891
+ a column cannot be typed one way on the way in and another on the way back.
2892
+
2893
+ `valid_keys` (D-540): the table's other column keys, handed in ONLY by the two write doors
2894
+ that have table context (`add_field`, and `patch_field` when the caller sends a formula).
2895
+ Every other caller keeps `None`, which is the read-time/list-construction posture."""
2896
  prev = previous or {}
2897
  raw = raw if isinstance(raw, dict) else {}
2898
  label = ' '.join(str(raw.get('label') or prev.get('label') or '').split())[:80]
 
3165
  # formula column with no expression is a column that can never show a value, so the pairing is
3166
  # enforced BOTH WAYS and either half alone refuses the field.
3167
  #
3168
+ # ⛔ D-540 (2026-09-17): `valid_keys` IS PASSED WHEN THE CALLER HAS TABLE CONTEXT, and only
3169
+ # then. `grid_events` passes the workspace's own key set, and `formulaEngine.ts::
3170
+ # validateFormula` refuses a ref outside `knownKeys`, so the `ut_*` write door was the one
3171
+ # door that stored `{notacolumn}`. `add_field` and `patch_field` (when the caller sends a
3172
+ # formula) now hand in the table's other column keys and an unknown ref is refused there.
3173
+ # `clean_fields` (a list mid-construction, where half the referenced columns do not exist
3174
+ # yet), `clean_machine_fields` (a list with no table at all) and the link reciprocal keep the
3175
+ # `None` default: STRUCTURE only, and an unresolvable ref blanks the CELL client-side, which
3176
+ # is `_clean_formula`'s documented read-time behaviour. A patch that does not send a formula
3177
+ # keeps its stored one unjudged, so deleting a referenced column never vaporises a column.
3178
  # ⚠ Reached through `_ag_formula` so BOTH doors call one validator through one import.
3179
  formula_raw = (raw.get('formula') if 'formula' in raw
3180
  else (prev.get('formula') if prev_type == ftype else None))
3181
  if formula_raw is not None:
3182
+ fx = _ag_formula(formula_raw, valid_keys)
3183
  if fx is None or ftype != 'formula':
3184
  return None
3185
  out['formula'] = fx
 
3796
  have = [f for f in (defn.get('fields') or [])]
3797
  if len(have) >= MAX_FIELDS:
3798
  return None
3799
+ field = _clean_field(raw, recurrence_validator=recurrence_validator,
3800
+ valid_keys={str(f.get('key')) for f in have if f.get('key')})
3801
  if not field or any(f.get('key') == field['key'] for f in have):
3802
  return None
3803
  if not dynamic_link_filter_valid(field, have):
 
4005
  if 'description' in merged and isinstance(fields[idx].get('automation'), dict) \
4006
  and fields[idx]['automation'].get('preset') is True:
4007
  merged.pop('description')
4008
+ # D-540: a patch that SENDS a formula is judged against the table's other columns; one that
4009
+ # does not keeps its stored formula unjudged (a later-deleted ref blanks cells, not the column).
4010
+ field = _clean_field(
4011
+ merged, fields[idx], recurrence_validator=recurrence_validator,
4012
+ valid_keys=({str(f.get('key')) for f in fields
4013
+ if f.get('key') and str(f.get('key')) != str(fkey)}
4014
+ if isinstance(raw, dict) and 'formula' in raw else None))
4015
  if not field:
4016
  return None
4017
  if not dynamic_link_filter_valid(field, fields):
web/src/styles/wave61/home.css CHANGED
@@ -3,19 +3,13 @@
3
  align-items: stretch;
4
  }
5
 
6
- .home-cards.is-app > .home-card,
7
- .home-cards.is-app > .shell-newfolder {
8
  box-sizing: border-box;
9
  height: 100%;
10
  }
11
 
12
- .home-cards.is-app > .shell-newfolder {
13
- width: max-content;
14
- max-width: 100%;
15
- margin: 0;
16
- }
17
-
18
- .home-cards.is-app > .shell-newfolder:disabled {
19
  opacity: 0.55;
20
  cursor: not-allowed;
21
  }
 
3
  align-items: stretch;
4
  }
5
 
6
+ /* W62-T30 made New folder a card, so the row holds only cards (W-267: the rail-button rules were dead). */
7
+ .home-cards.is-app > .home-card {
8
  box-sizing: border-box;
9
  height: 100%;
10
  }
11
 
12
+ .home-cards.is-app > .home-card:disabled {
 
 
 
 
 
 
13
  opacity: 0.55;
14
  cursor: not-allowed;
15
  }