Deploy AIOS web (React glide grid + FastAPI slice)
Browse files- RELEASES.json +441 -2
- VERSION +1 -1
- api/ai_review.py +3 -2
- api/providers.py +2 -1
- api/routes_admin.py +6 -1
- api/routes_automation.py +20 -0
- api/routes_customers.py +2 -0
- api/routes_products.py +4 -1
- api/routes_sheet.py +4 -2
- api/routes_tables.py +3 -0
- api/test_odoo_rank_refresh.py +65 -0
- platform/aios_grid.py +48 -0
- platform/core/external_tools.py +13 -1
- platform/core/sheet_templates.py +4 -2
- platform/core/sheets.py +39 -2
- platform/harness/semantic.py +30 -3
- platform/model/metrics/gl.yml +1 -1
- platform/model/metrics/invoice_lines.yml +2 -2
- platform/model/metrics/returns.yml +2 -2
- platform/model/metrics/sales.yml +2 -2
- platform/model/metrics/stock.yml +1 -1
- platform/model/topics/odoo_products.yml +4 -2
- requirements.txt +4 -1
- web/src/customer-grid/CatalogView.tsx +3 -0
- web/src/customer-grid/ColumnMenu.tsx +7 -7
- web/src/customer-grid/FormInterface.tsx +2 -2
- web/src/customer-grid/ImportDialog.tsx +4 -1
- web/src/customer-grid/SelectFromFile.tsx +5 -2
- web/src/customer-grid/SwipeView.tsx +2 -2
- web/src/customer-grid/TimeSeriesPanel.tsx +2 -2
- web/src/pages/DrillPanel.tsx +4 -1
- web/src/settings/ExternalAccessPane.tsx +5 -4
- web/src/settings/SettingsModal.tsx +1 -1
- web/src/shell/ErrorBoundary.tsx +1 -1
- web/src/shell/NavExtras.tsx +1 -1
- web/src/shell/Shell.tsx +1 -1
RELEASES.json
CHANGED
|
@@ -1,4 +1,443 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
-
"releases": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "0576185",
|
| 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 |
-
|
|
|
|
| 1 |
+
0576185
|
api/ai_review.py
CHANGED
|
@@ -174,8 +174,9 @@ def _call_openai(p, model, system, user, timeout):
|
|
| 174 |
|
| 175 |
|
| 176 |
#: What transport the last Anthropic call actually used: `'sdk'`, `'http'`, or `''` before any.
|
| 177 |
-
#: β PROCESS-LOCAL AND FOR REPORTING ONLY. It exists so
|
| 178 |
-
#:
|
|
|
|
| 179 |
LAST_ANTHROPIC_TRANSPORT = ""
|
| 180 |
|
| 181 |
|
|
|
|
| 174 |
|
| 175 |
|
| 176 |
#: What transport the last Anthropic call actually used: `'sdk'`, `'http'`, or `''` before any.
|
| 177 |
+
#: β PROCESS-LOCAL AND FOR REPORTING ONLY. It exists so an administrator can ask WHICH path ran
|
| 178 |
+
#: rather than infer it from a requirements file: `GET /api/v1/automations/ai/transport`
|
| 179 |
+
#: (`routes_automation.ai_transport`, D-384) serves it beside the installed SDK version.
|
| 180 |
LAST_ANTHROPIC_TRANSPORT = ""
|
| 181 |
|
| 182 |
|
api/providers.py
CHANGED
|
@@ -641,7 +641,8 @@ def anthropic_send(req, timeout=None, use_sdk=None):
|
|
| 641 |
β `transport` is `'sdk'` or `'http'` and it is RETURNED, not logged and forgotten: a reader
|
| 642 |
who cannot tell which path ran cannot tell whether the requirements pin reached the container
|
| 643 |
[[report-the-cause-before-you-fix-it]]. β A gate must assert on THIS RETURN VALUE, never on
|
| 644 |
-
`ai_review.LAST_ANTHROPIC_TRANSPORT` β that global is a convenience for
|
|
|
|
| 645 |
check keyed to it passes on a stale value written by an earlier check in the same process.
|
| 646 |
|
| 647 |
`status` is an int and `body` is the parsed JSON dict in BOTH paths, including on an error β
|
|
|
|
| 641 |
β `transport` is `'sdk'` or `'http'` and it is RETURNED, not logged and forgotten: a reader
|
| 642 |
who cannot tell which path ran cannot tell whether the requirements pin reached the container
|
| 643 |
[[report-the-cause-before-you-fix-it]]. β A gate must assert on THIS RETURN VALUE, never on
|
| 644 |
+
`ai_review.LAST_ANTHROPIC_TRANSPORT` β that global is a convenience for the admin view
|
| 645 |
+
`GET /api/v1/automations/ai/transport` (D-384), and a
|
| 646 |
check keyed to it passes on a stale value written by an earlier check in the same process.
|
| 647 |
|
| 648 |
`status` is an int and `body` is the parsed JSON dict in BOTH paths, including on an error β
|
api/routes_admin.py
CHANGED
|
@@ -1956,10 +1956,15 @@ def _clean_perms(v, governed_keys=None, session=None, stored=None, stale_out=Non
|
|
| 1956 |
# client, or a copy of a record written before this ticket, must not read as a
|
| 1957 |
# revocation. `perm_scope.may_metrics` applies the identical rule on the read side, so
|
| 1958 |
# the validator and the wall cannot disagree about what an absent key means.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1959 |
out[key] = {"access": bool(raw.get("access", True)),
|
| 1960 |
"filter": clean_tree,
|
| 1961 |
"hiddenFields": sorted(submitted),
|
| 1962 |
-
"metrics":
|
| 1963 |
_refuse_unshapeable_bu(out)
|
| 1964 |
return out
|
| 1965 |
|
|
|
|
| 1956 |
# client, or a copy of a record written before this ticket, must not read as a
|
| 1957 |
# revocation. `perm_scope.may_metrics` applies the identical rule on the read side, so
|
| 1958 |
# the validator and the wall cannot disagree about what an absent key means.
|
| 1959 |
+
# D-465: type checked like `hiddenFields`. `bool("false")` is True, so a coerced string
|
| 1960 |
+
# stored a GRANT the administrator meant as a denial. Absence still grants.
|
| 1961 |
+
metrics = raw.get("metrics", True)
|
| 1962 |
+
if not isinstance(metrics, bool):
|
| 1963 |
+
raise err(400, "bad_perms", f"{key}: metrics must be true or false")
|
| 1964 |
out[key] = {"access": bool(raw.get("access", True)),
|
| 1965 |
"filter": clean_tree,
|
| 1966 |
"hiddenFields": sorted(submitted),
|
| 1967 |
+
"metrics": metrics}
|
| 1968 |
_refuse_unshapeable_bu(out)
|
| 1969 |
return out
|
| 1970 |
|
api/routes_automation.py
CHANGED
|
@@ -1953,6 +1953,26 @@ def agent_author_action(auto_id: str, body: dict = Body(default=None),
|
|
| 1953 |
"actionId": action_id, "agent": agent_id, "notes": notes}
|
| 1954 |
|
| 1955 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1956 |
@router.get("/automations/{auto_id}")
|
| 1957 |
def get_automation(auto_id: str, session: Session = Depends(_GATE)):
|
| 1958 |
"""One automation, by id.
|
|
|
|
| 1953 |
"actionId": action_id, "agent": agent_id, "notes": notes}
|
| 1954 |
|
| 1955 |
|
| 1956 |
+
@router.get("/automations/ai/transport")
|
| 1957 |
+
def ai_transport(session: Session = Depends(_GATE)):
|
| 1958 |
+
"""D-384: which Anthropic path THIS process ran, read-only, administrators only.
|
| 1959 |
+
|
| 1960 |
+
A verifier could prove the SDK path on its own box and never in the container, because the
|
| 1961 |
+
installed version and `ai_review.LAST_ANTHROPIC_TRANSPORT` had no reader. Two segments under
|
| 1962 |
+
`/automations/`, so the one-segment `/automations/{auto_id}` below cannot shadow it.
|
| 1963 |
+
β `anthropic` is imported HERE, lazily: `verify_no_streamlit.py` boots the API with optional
|
| 1964 |
+
packages blocked, and it drives this handler with the SDK blocked too."""
|
| 1965 |
+
if not session.admin:
|
| 1966 |
+
raise err(403, "admin_only", "AI transport diagnostics are an admin view")
|
| 1967 |
+
try:
|
| 1968 |
+
import anthropic # noqa: PLC0415
|
| 1969 |
+
version = str(getattr(anthropic, "__version__", "") or "")
|
| 1970 |
+
except ImportError:
|
| 1971 |
+
version = ""
|
| 1972 |
+
return {"anthropicVersion": version or None, "sdkInstalled": bool(version),
|
| 1973 |
+
"lastTransport": ai_review.LAST_ANTHROPIC_TRANSPORT or None}
|
| 1974 |
+
|
| 1975 |
+
|
| 1976 |
@router.get("/automations/{auto_id}")
|
| 1977 |
def get_automation(auto_id: str, session: Session = Depends(_GATE)):
|
| 1978 |
"""One automation, by id.
|
api/routes_customers.py
CHANGED
|
@@ -513,6 +513,8 @@ def grid_assembly(session: Session, scope: str = "customer", storage_key: str =
|
|
| 513 |
if _ov:
|
| 514 |
ws["overlays"] = {pid: {k: v for k, v in (cells or {}).items() if k not in hidden}
|
| 515 |
for pid, cells in _ov.items()}
|
|
|
|
|
|
|
| 516 |
|
| 517 |
today = time.strftime("%Y-%m-%d")
|
| 518 |
fields = aios_grid.project_date_recurrences(fields, today=today)
|
|
|
|
| 513 |
if _ov:
|
| 514 |
ws["overlays"] = {pid: {k: v for k, v in (cells or {}).items() if k not in hidden}
|
| 515 |
for pid, cells in _ov.items()}
|
| 516 |
+
# D-464: and the saved views are a FOURTH wire, served by `/workspace` from `workspace`.
|
| 517 |
+
workspace["views"] = aios_grid.narrow_view_keys(workspace.get("views"), hidden)
|
| 518 |
|
| 519 |
today = time.strftime("%Y-%m-%d")
|
| 520 |
fields = aios_grid.project_date_recurrences(fields, today=today)
|
api/routes_products.py
CHANGED
|
@@ -498,6 +498,8 @@ def product_assembly(session: Session, scope: str = "product", storage_key: str
|
|
| 498 |
str(pid): {key: value for key, value in (row or {}).items() if key not in hidden}
|
| 499 |
for pid, row in (ws.get("overlays") or {}).items()
|
| 500 |
}
|
|
|
|
|
|
|
| 501 |
|
| 502 |
today = time.strftime("%Y-%m-%d")
|
| 503 |
fields = aios_grid.project_date_recurrences(fields, today=today)
|
|
@@ -786,7 +788,8 @@ def pd_fields(consolidated=True, st=None):
|
|
| 786 |
# `aios_grid_fields.json`. That file is the ODOO-SOURCED contract β every key in it is a
|
| 787 |
# column `modules.product_data.pool()` reads off a SKU β and this one is neither read from
|
| 788 |
# Odoo nor written to it. Injected after the JSON so the canonical file stays the answer to
|
| 789 |
-
# "what does Odoo give us"
|
|
|
|
| 790 |
if st is not None:
|
| 791 |
image = pd.image_field_definition(st=st)
|
| 792 |
else:
|
|
|
|
| 498 |
str(pid): {key: value for key, value in (row or {}).items() if key not in hidden}
|
| 499 |
for pid, row in (ws.get("overlays") or {}).items()
|
| 500 |
}
|
| 501 |
+
# D-464: the saved views' column keys are the next wire `/workspace` serves.
|
| 502 |
+
workspace["views"] = aios_grid.narrow_view_keys(workspace.get("views"), hidden)
|
| 503 |
|
| 504 |
today = time.strftime("%Y-%m-%d")
|
| 505 |
fields = aios_grid.project_date_recurrences(fields, today=today)
|
|
|
|
| 788 |
# `aios_grid_fields.json`. That file is the ODOO-SOURCED contract β every key in it is a
|
| 789 |
# column `modules.product_data.pool()` reads off a SKU β and this one is neither read from
|
| 790 |
# Odoo nor written to it. Injected after the JSON so the canonical file stays the answer to
|
| 791 |
+
# "what does Odoo give us". `verify_fields_contract` does NOT referee the product contract
|
| 792 |
+
# (D-400); `platform/verify_product_pool.py::section_product_field_contract` does.
|
| 793 |
if st is not None:
|
| 794 |
image = pd.image_field_definition(st=st)
|
| 795 |
else:
|
api/routes_sheet.py
CHANGED
|
@@ -1154,7 +1154,8 @@ def create_sheet(body: dict = Body(default=None), session: Session = Depends(req
|
|
| 1154 |
try:
|
| 1155 |
book = sheets.create_workbook(_store(session),
|
| 1156 |
name=raw.get("name") or "",
|
| 1157 |
-
created_by=session.uname
|
|
|
|
| 1158 |
except sheets.SheetRefusal as exc:
|
| 1159 |
raise _refuse(exc)
|
| 1160 |
return {"workbook": _response_workbook(book)}
|
|
@@ -1335,7 +1336,8 @@ def _run_import(job_id, path, filename, runtime, uname):
|
|
| 1335 |
_job_set(job_id, report=report)
|
| 1336 |
|
| 1337 |
stamp = _now_iso()
|
| 1338 |
-
made = sheets.create_workbook(runtime, name=book.get("name") or "", created_by=uname
|
|
|
|
| 1339 |
saved = sheets.put_workbook(runtime, made["id"],
|
| 1340 |
dict(book, refreshed_at=stamp, rev=made["rev"]), actor=uname)
|
| 1341 |
_job_set(job_id, state="done", progress=1.0, workbook_id=saved["id"],
|
|
|
|
| 1154 |
try:
|
| 1155 |
book = sheets.create_workbook(_store(session),
|
| 1156 |
name=raw.get("name") or "",
|
| 1157 |
+
created_by=session.uname,
|
| 1158 |
+
on_duplicate="refuse")
|
| 1159 |
except sheets.SheetRefusal as exc:
|
| 1160 |
raise _refuse(exc)
|
| 1161 |
return {"workbook": _response_workbook(book)}
|
|
|
|
| 1336 |
_job_set(job_id, report=report)
|
| 1337 |
|
| 1338 |
stamp = _now_iso()
|
| 1339 |
+
made = sheets.create_workbook(runtime, name=book.get("name") or "", created_by=uname,
|
| 1340 |
+
on_duplicate="suffix")
|
| 1341 |
saved = sheets.put_workbook(runtime, made["id"],
|
| 1342 |
dict(book, refreshed_at=stamp, rev=made["rev"]), actor=uname)
|
| 1343 |
_job_set(job_id, state="done", progress=1.0, workbook_id=saved["id"],
|
api/routes_tables.py
CHANGED
|
@@ -1562,6 +1562,9 @@ def ut_assembly(session: Session, table_key: str, storage_key: str = "",
|
|
| 1562 |
# for both β the same sentence `routes_odoo_tables` writes over its own `overlays` dict.
|
| 1563 |
shared_cells = {pid: {k: v for k, v in cells.items() if k not in hidden}
|
| 1564 |
for pid, cells in shared_cells.items()}
|
|
|
|
|
|
|
|
|
|
| 1565 |
|
| 1566 |
# ββ W37-T12 / owner item 4 (R1) β `measures` IS NO LONGER UNCONDITIONALLY EMPTY. A database
|
| 1567 |
# whose entity topic declares a `measures:` binding (today `ut_odoo_agents`) serves a real
|
|
|
|
| 1562 |
# for both β the same sentence `routes_odoo_tables` writes over its own `overlays` dict.
|
| 1563 |
shared_cells = {pid: {k: v for k, v in cells.items() if k not in hidden}
|
| 1564 |
for pid, cells in shared_cells.items()}
|
| 1565 |
+
# D-464: the saved views' column keys, on the `/workspace` wire only; `views` stays whole
|
| 1566 |
+
# for `_ut_measure_sets` below.
|
| 1567 |
+
workspace["views"] = aios_grid.narrow_view_keys(workspace.get("views"), hidden)
|
| 1568 |
|
| 1569 |
# ββ W37-T12 / owner item 4 (R1) β `measures` IS NO LONGER UNCONDITIONALLY EMPTY. A database
|
| 1570 |
# whose entity topic declares a `measures:` binding (today `ut_odoo_agents`) serves a real
|
api/test_odoo_rank_refresh.py
CHANGED
|
@@ -5,7 +5,9 @@ import copy
|
|
| 5 |
import io
|
| 6 |
import os
|
| 7 |
from pathlib import Path
|
|
|
|
| 8 |
import socket
|
|
|
|
| 9 |
import sys
|
| 10 |
import tempfile
|
| 11 |
from types import SimpleNamespace
|
|
@@ -17,6 +19,59 @@ import duckdb
|
|
| 17 |
from harness import datastore as ds
|
| 18 |
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
class RankRefreshTests(unittest.TestCase):
|
| 21 |
def setUp(self):
|
| 22 |
self.stack = ExitStack()
|
|
@@ -146,16 +201,26 @@ class RankRefreshTests(unittest.TestCase):
|
|
| 146 |
# tests died on it -- in the MERGED tree only: lane G does not run this
|
| 147 |
# gate and lane D's run predates lane G. The real `main.py` defines the
|
| 148 |
# function at module scope and the deployed Space boots fine.
|
|
|
|
|
|
|
| 149 |
_resync_mirror_pass=sync, _pull_meta=lambda *_: True,
|
| 150 |
_pull_amazon=lambda *_: True,
|
| 151 |
_rebuild_odoo_relational=rebuild,
|
| 152 |
_rebuild_meta_relational=lambda *_: {},
|
| 153 |
_rebuild_amazon_relational=lambda *_: {})
|
|
|
|
|
|
|
|
|
|
| 154 |
exec(compile(ast.Module(body=nodes, type_ignores=[]),
|
| 155 |
'main.py:resident-loop', 'exec'), ns)
|
| 156 |
runtime = SimpleNamespace(get_runtime=lambda *_: object())
|
|
|
|
|
|
|
|
|
|
| 157 |
with patch.dict(sys.modules, {'time': clock, 'harness.runtime': runtime}), \
|
| 158 |
patch.object(harness, 'runtime', runtime, create=True), \
|
|
|
|
|
|
|
| 159 |
redirect_stdout(io.StringIO()):
|
| 160 |
with self.assertRaisesRegex(StopIteration, 'bounded synthetic'):
|
| 161 |
ns['_store_resync_loop']()
|
|
|
|
| 5 |
import io
|
| 6 |
import os
|
| 7 |
from pathlib import Path
|
| 8 |
+
import builtins
|
| 9 |
import socket
|
| 10 |
+
import symtable
|
| 11 |
import sys
|
| 12 |
import tempfile
|
| 13 |
from types import SimpleNamespace
|
|
|
|
| 19 |
from harness import datastore as ds
|
| 20 |
|
| 21 |
|
| 22 |
+
class FixtureGap(AssertionError):
|
| 23 |
+
"""The synthetic namespace is missing a collaborator. A fixture defect, never a loop failure."""
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def _free_globals(node):
|
| 27 |
+
"""Global names `node` reads, from Python's own symbol table rather than a name list."""
|
| 28 |
+
names = set()
|
| 29 |
+
def walk(table):
|
| 30 |
+
for sym in table.get_symbols():
|
| 31 |
+
if sym.is_referenced() and (
|
| 32 |
+
table.get_type() == 'module' and not (sym.is_assigned() or sym.is_imported())
|
| 33 |
+
or table.get_type() != 'module' and sym.is_global()):
|
| 34 |
+
names.add(sym.get_name())
|
| 35 |
+
for child in table.get_children():
|
| 36 |
+
walk(child)
|
| 37 |
+
walk(symtable.symtable(ast.unparse(node), 'main.py', 'exec'))
|
| 38 |
+
return names - set(dir(builtins))
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
def _with_collaborators(source, nodes, ns):
|
| 42 |
+
"""`nodes` plus every top-level main.py def/class/assign they transitively call.
|
| 43 |
+
|
| 44 |
+
W-228: the namespace below was hand-maintained, so `_run_sync_requests` arrived as a bare
|
| 45 |
+
NameError that named the resident loop. Explicit stubs in `ns` still win. A name that is
|
| 46 |
+
neither stubbed nor a top-level def/class/assign (an import, say) raises a FixtureGap.
|
| 47 |
+
"""
|
| 48 |
+
top = {}
|
| 49 |
+
for node in source.body:
|
| 50 |
+
if isinstance(node, (ast.FunctionDef, ast.ClassDef)):
|
| 51 |
+
top.setdefault(node.name, node)
|
| 52 |
+
elif isinstance(node, ast.Assign):
|
| 53 |
+
for target in node.targets:
|
| 54 |
+
if isinstance(target, ast.Name):
|
| 55 |
+
top.setdefault(target.id, node)
|
| 56 |
+
have = list(nodes)
|
| 57 |
+
defined = {name for name, node in top.items() if node in have}
|
| 58 |
+
todo = [name for node in have for name in _free_globals(node)]
|
| 59 |
+
while todo:
|
| 60 |
+
name = todo.pop()
|
| 61 |
+
if name in ns or name in defined:
|
| 62 |
+
continue
|
| 63 |
+
node = top.get(name)
|
| 64 |
+
if node is None:
|
| 65 |
+
raise FixtureGap(
|
| 66 |
+
f'FIXTURE GAP, not a resident-loop failure: main.py:_store_resync_loop reads '
|
| 67 |
+
f'{name!r}, which this test neither stubs nor can extract as a top-level '
|
| 68 |
+
f'def/class/assign of main.py. Stub it in observe_resident_recovery.')
|
| 69 |
+
have.append(node)
|
| 70 |
+
defined |= {n for n, candidate in top.items() if candidate is node}
|
| 71 |
+
todo.extend(_free_globals(node))
|
| 72 |
+
return have
|
| 73 |
+
|
| 74 |
+
|
| 75 |
class RankRefreshTests(unittest.TestCase):
|
| 76 |
def setUp(self):
|
| 77 |
self.stack = ExitStack()
|
|
|
|
| 201 |
# tests died on it -- in the MERGED tree only: lane G does not run this
|
| 202 |
# gate and lane D's run predates lane G. The real `main.py` defines the
|
| 203 |
# function at module scope and the deployed Space boots fine.
|
| 204 |
+
# W-228: no longer a bare NameError. Unstubbed collaborators are extracted
|
| 205 |
+
# from main.py by `_with_collaborators`, or fail as a named FixtureGap.
|
| 206 |
_resync_mirror_pass=sync, _pull_meta=lambda *_: True,
|
| 207 |
_pull_amazon=lambda *_: True,
|
| 208 |
_rebuild_odoo_relational=rebuild,
|
| 209 |
_rebuild_meta_relational=lambda *_: {},
|
| 210 |
_rebuild_amazon_relational=lambda *_: {})
|
| 211 |
+
# W-228: the real helpers the loop calls (`_run_sync_requests` and what it needs) are
|
| 212 |
+
# extracted too; anything unresolvable fails as a named FixtureGap.
|
| 213 |
+
nodes = _with_collaborators(source, nodes, ns)
|
| 214 |
exec(compile(ast.Module(body=nodes, type_ignores=[]),
|
| 215 |
'main.py:resident-loop', 'exec'), ns)
|
| 216 |
runtime = SimpleNamespace(get_runtime=lambda *_: object())
|
| 217 |
+
from core import connector_sync
|
| 218 |
+
# The cadence wait is now an interruptible event, so it is routed to the synthetic clock.
|
| 219 |
+
wake = SimpleNamespace(wait=sleep, clear=lambda: None)
|
| 220 |
with patch.dict(sys.modules, {'time': clock, 'harness.runtime': runtime}), \
|
| 221 |
patch.object(harness, 'runtime', runtime, create=True), \
|
| 222 |
+
patch.object(connector_sync, 'sync_wake_event', return_value=wake), \
|
| 223 |
+
patch.object(connector_sync, 'take_sync_requests', return_value=[]), \
|
| 224 |
redirect_stdout(io.StringIO()):
|
| 225 |
with self.assertRaisesRegex(StopIteration, 'bounded synthetic'):
|
| 226 |
ns['_store_resync_loop']()
|
platform/aios_grid.py
CHANGED
|
@@ -471,6 +471,11 @@ def _clean_permissions(raw):
|
|
| 471 |
#: # $ % TEXT number formats already accepted by the client; `$` is also a regex anchor.
|
| 472 |
#:
|
| 473 |
#: `;` stays refused: no legal formula token needs a statement separator.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 474 |
_FORMULA_CHARS = re.compile(r"^[\w\s{}()+\-*/.,<>=!^&\"'\[\]|?:\\#$%@]*$")
|
| 475 |
_FORMULA_REF = re.compile(r"\{([^{}]*)\}")
|
| 476 |
|
|
@@ -3783,6 +3788,49 @@ def views_from_defs(defs, saved_views, fields, system_name="All customers", lock
|
|
| 3783 |
return views
|
| 3784 |
|
| 3785 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3786 |
def workspace_wire(ws, uname, pool_pids, defs=None, scope_key='customer', storage_key=None,
|
| 3787 |
fields_base=None, with_cohorts=True, st=None):
|
| 3788 |
"""The client's `GridWorkspace` WIRE SHAPE from the stored table workspace β the ONE
|
|
|
|
| 471 |
#: # $ % TEXT number formats already accepted by the client; `$` is also a regex anchor.
|
| 472 |
#:
|
| 473 |
#: `;` stays refused: no legal formula token needs a statement separator.
|
| 474 |
+
#:
|
| 475 |
+
#: β D-547: A CHARACTER FILTER, NOT A SAFETY BOUNDARY. `__import__("os")` passes it (word
|
| 476 |
+
#: characters, parens, quotes). Such a source is inert because the ENGINE refuses it: the server
|
| 477 |
+
#: parser door in `aios-web/api/formula_runtime.py` is an AST interpreter over a function allowlist
|
| 478 |
+
#: with no Python eval. `api/verify_formula_storage.py` records both halves; never read this as the wall.
|
| 479 |
_FORMULA_CHARS = re.compile(r"^[\w\s{}()+\-*/.,<>=!^&\"'\[\]|?:\\#$%@]*$")
|
| 480 |
_FORMULA_REF = re.compile(r"\{([^{}]*)\}")
|
| 481 |
|
|
|
|
| 3788 |
return views
|
| 3789 |
|
| 3790 |
|
| 3791 |
+
def narrow_view_keys(views, hidden):
|
| 3792 |
+
"""D-464: a WIRE COPY of `views` whose column-bearing config names no key in `hidden`.
|
| 3793 |
+
|
| 3794 |
+
`views_from_defs` merges saved configs verbatim and runs before the field wall exists, so a
|
| 3795 |
+
hidden field's KEY rode `/workspace` in `order`/`visible`/`widths`/`sorts`/`groupBy`/`colorBy`
|
| 3796 |
+
(and `stackField`, `summary`, `display.*Field`) to the very reader the wall targets. Each
|
| 3797 |
+
assembly calls this beside its overlay narrowing,
|
| 3798 |
+
on `workspace["views"]` only: `g["views"]` stays whole for server-side work (exports, measure
|
| 3799 |
+
sets), and a walled reader's own autosave is already cleaned against their walled keys.
|
| 3800 |
+
β FILTER LEAVES (and `secondaryView`) ARE LEFT ALONE: dropping a leaf would change which rows
|
| 3801 |
+
a view shows, so a hidden key named only in a filter still rides this wire."""
|
| 3802 |
+
hidden = set(hidden or ())
|
| 3803 |
+
if not hidden:
|
| 3804 |
+
return views
|
| 3805 |
+
out = []
|
| 3806 |
+
for view in views or []:
|
| 3807 |
+
cfg = view.get("config") if isinstance(view, dict) else None
|
| 3808 |
+
if not isinstance(cfg, dict):
|
| 3809 |
+
out.append(view)
|
| 3810 |
+
continue
|
| 3811 |
+
cfg = dict(cfg)
|
| 3812 |
+
for name in ("order", "visible"):
|
| 3813 |
+
if isinstance(cfg.get(name), list):
|
| 3814 |
+
cfg[name] = [key for key in cfg[name] if key not in hidden]
|
| 3815 |
+
if isinstance(cfg.get("widths"), dict):
|
| 3816 |
+
cfg["widths"] = {key: w for key, w in cfg["widths"].items() if key not in hidden}
|
| 3817 |
+
if isinstance(cfg.get("sorts"), list):
|
| 3818 |
+
cfg["sorts"] = [s for s in cfg["sorts"]
|
| 3819 |
+
if not (isinstance(s, dict) and s.get("colId") in hidden)]
|
| 3820 |
+
for name in ("groupBy", "colorBy", "stackField"):
|
| 3821 |
+
if isinstance(cfg.get(name), str) and cfg[name] in hidden:
|
| 3822 |
+
cfg[name] = None
|
| 3823 |
+
if isinstance(cfg.get("summary"), dict):
|
| 3824 |
+
cfg["summary"] = {key: s for key, s in cfg["summary"].items() if key not in hidden}
|
| 3825 |
+
if isinstance(cfg.get("display"), dict):
|
| 3826 |
+
# `DisplaySpec`'s `dateField`/`stackField`/`titleField`/`colorField`/... members.
|
| 3827 |
+
cfg["display"] = {name: value for name, value in cfg["display"].items()
|
| 3828 |
+
if not (name.endswith("Field") and isinstance(value, str)
|
| 3829 |
+
and value in hidden)}
|
| 3830 |
+
out.append(dict(view, config=cfg))
|
| 3831 |
+
return out
|
| 3832 |
+
|
| 3833 |
+
|
| 3834 |
def workspace_wire(ws, uname, pool_pids, defs=None, scope_key='customer', storage_key=None,
|
| 3835 |
fields_base=None, with_cohorts=True, st=None):
|
| 3836 |
"""The client's `GridWorkspace` WIRE SHAPE from the stored table workspace β the ONE
|
platform/core/external_tools.py
CHANGED
|
@@ -139,11 +139,23 @@ def _put(ctx, args, book, tab=None):
|
|
| 139 |
|
| 140 |
def _create(ctx, args):
|
| 141 |
return _saved(sheets.create_workbook(ctx.session.runtime, name=args["name"],
|
| 142 |
-
created_by=ctx.session.uname
|
|
|
|
| 143 |
|
| 144 |
|
| 145 |
def _add_tab(ctx, args):
|
| 146 |
book = _book(ctx, args, write=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
tab = {"id": uuid.uuid4().hex[:12], "name": args["name"], "cells": {}}
|
| 148 |
book["sheets"].append(tab)
|
| 149 |
return _put(ctx, args, book, tab["id"])
|
|
|
|
| 139 |
|
| 140 |
def _create(ctx, args):
|
| 141 |
return _saved(sheets.create_workbook(ctx.session.runtime, name=args["name"],
|
| 142 |
+
created_by=ctx.session.uname,
|
| 143 |
+
on_duplicate="refuse"))
|
| 144 |
|
| 145 |
|
| 146 |
def _add_tab(ctx, args):
|
| 147 |
book = _book(ctx, args, write=True)
|
| 148 |
+
#: β A DUPLICATE TAB NAME IS REFUSED, because every other tool addresses a tab by `tab`,
|
| 149 |
+
#: which `sheets.find_tab` resolves BY NAME to the FIRST match. Two tabs sharing a name make
|
| 150 |
+
#: every later write land on one of them and the other unreachable, with nothing reported.
|
| 151 |
+
#: Measured at SDLC 61's C7 build: a retried `sheet_add_tab` produced a second
|
| 152 |
+
#: `Summary (All)` and the workbook's cells split silently across the pair.
|
| 153 |
+
wanted = str(args["name"]).strip()
|
| 154 |
+
if any(str(sheet.get("name") or "").strip().casefold() == wanted.casefold()
|
| 155 |
+
for sheet in (book.get("sheets") or ())):
|
| 156 |
+
raise sheets.SheetRefusal(
|
| 157 |
+
"tab_name_taken",
|
| 158 |
+
"Tab " + wanted + " is already in this workbook. Choose another name.")
|
| 159 |
tab = {"id": uuid.uuid4().hex[:12], "name": args["name"], "cells": {}}
|
| 160 |
book["sheets"].append(tab)
|
| 161 |
return _put(ctx, args, book, tab["id"])
|
platform/core/sheet_templates.py
CHANGED
|
@@ -232,7 +232,8 @@ def apply_saved_template(st, key, *, name="", created_by=""):
|
|
| 232 |
raise sheets.SheetRefusal("unknown_sheet_template", f"Sheet template {label} does not exist.")
|
| 233 |
# Validate the whole document before the first write, including tabs after the first.
|
| 234 |
checked = sheets.migrate_workbook(_template_workbook(record["workbook"]))
|
| 235 |
-
book = sheets.create_workbook(st, name=name or record["name"], created_by=created_by
|
|
|
|
| 236 |
try:
|
| 237 |
tabs = [{**tab, "cells": {}} for tab in checked["sheets"]]
|
| 238 |
book = sheets.put_workbook(st, book["id"], {
|
|
@@ -342,7 +343,8 @@ def apply_template(st, key, database_key, *, name="", created_by=""):
|
|
| 342 |
# Validate tab names, extents and every cell before the first store write.
|
| 343 |
checked = sheets.migrate_workbook({"sheets": [
|
| 344 |
{"name": tab_name, "cells": cells} for _, tab_name, cells in prepared]})
|
| 345 |
-
book = sheets.create_workbook(st, name=name or descriptor["title"], created_by=created_by
|
|
|
|
| 346 |
try:
|
| 347 |
tabs = [{**tab, "cells": {}} for tab in checked["sheets"]]
|
| 348 |
book = sheets.put_workbook(st, book["id"], {"name": book["name"], "sheets": tabs, "rev": book["rev"]})
|
|
|
|
| 232 |
raise sheets.SheetRefusal("unknown_sheet_template", f"Sheet template {label} does not exist.")
|
| 233 |
# Validate the whole document before the first write, including tabs after the first.
|
| 234 |
checked = sheets.migrate_workbook(_template_workbook(record["workbook"]))
|
| 235 |
+
book = sheets.create_workbook(st, name=name or record["name"], created_by=created_by,
|
| 236 |
+
on_duplicate="suffix")
|
| 237 |
try:
|
| 238 |
tabs = [{**tab, "cells": {}} for tab in checked["sheets"]]
|
| 239 |
book = sheets.put_workbook(st, book["id"], {
|
|
|
|
| 343 |
# Validate tab names, extents and every cell before the first store write.
|
| 344 |
checked = sheets.migrate_workbook({"sheets": [
|
| 345 |
{"name": tab_name, "cells": cells} for _, tab_name, cells in prepared]})
|
| 346 |
+
book = sheets.create_workbook(st, name=name or descriptor["title"], created_by=created_by,
|
| 347 |
+
on_duplicate="suffix")
|
| 348 |
try:
|
| 349 |
tabs = [{**tab, "cells": {}} for tab in checked["sheets"]]
|
| 350 |
book = sheets.put_workbook(st, book["id"], {"name": book["name"], "sheets": tabs, "rev": book["rev"]})
|
platform/core/sheets.py
CHANGED
|
@@ -1480,8 +1480,45 @@ def _merge_data_origins(doc, *, sheets=(), databases=()):
|
|
| 1480 |
return origins
|
| 1481 |
|
| 1482 |
|
| 1483 |
-
def create_workbook(st, name="", created_by=""):
|
| 1484 |
-
"""Write a new `sheet_workbook_<id>` document and register it in the index.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1485 |
book = new_workbook(name=name, created_by=created_by)
|
| 1486 |
_json_safe(book, "workbook")
|
| 1487 |
|
|
|
|
| 1480 |
return origins
|
| 1481 |
|
| 1482 |
|
| 1483 |
+
def create_workbook(st, name="", created_by="", on_duplicate="allow"):
|
| 1484 |
+
"""Write a new `sheet_workbook_<id>` document and register it in the index.
|
| 1485 |
+
|
| 1486 |
+
`on_duplicate` decides what a name already in this workspace means:
|
| 1487 |
+
`allow` (the default) writes it anyway, `refuse` raises `workbook_name_taken`, and `suffix`
|
| 1488 |
+
writes `Name (2)`, `Name (3)` instead.
|
| 1489 |
+
|
| 1490 |
+
β THE DUPLICATE-NAME RULE BELONGS TO THE DOORS, NOT TO THIS MECHANISM (owner ruling
|
| 1491 |
+
2026-09-16, shaped by what the gate then measured). A workbook's identity is its id, so
|
| 1492 |
+
duplicates were always legal and nothing ever checked; the rail shows N identical rows with no
|
| 1493 |
+
date, size or owner and no reader can tell which is theirs. SDLC 61's C7 build left five
|
| 1494 |
+
workbooks named `Daily Sales Performance`, which is what made it visible.
|
| 1495 |
+
β **Where the rule lives matters.** A person names a workbook at exactly two doors, and both
|
| 1496 |
+
pass `refuse`: `POST /sheets` (Create new) and the gateway's `sheet_create_workbook`. Every
|
| 1497 |
+
other caller creates a workbook as a MECHANISM, not as a naming act: applying a template and
|
| 1498 |
+
importing a file both INHERIT a name, so they pass `suffix` and a template stays usable more
|
| 1499 |
+
than once. Putting `refuse` on this function instead made a template single use, made an
|
| 1500 |
+
import single use, and broke thirteen gate fixtures whose names are incidental. A rule that
|
| 1501 |
+
fires on a mechanism fires on everything that uses it.
|
| 1502 |
+
"""
|
| 1503 |
+
wanted = str(name or "").strip()
|
| 1504 |
+
if wanted and on_duplicate != "allow":
|
| 1505 |
+
taken = {str((row or {}).get("name") or "").strip().casefold()
|
| 1506 |
+
for row in list_workbooks(st)}
|
| 1507 |
+
if wanted.casefold() in taken:
|
| 1508 |
+
if on_duplicate != "suffix":
|
| 1509 |
+
raise SheetRefusal(
|
| 1510 |
+
"workbook_name_taken",
|
| 1511 |
+
"A workbook named " + wanted + " is already in this workspace. "
|
| 1512 |
+
"Choose another name.")
|
| 1513 |
+
for nth in range(2, 1000):
|
| 1514 |
+
candidate = wanted + " (" + str(nth) + ")"
|
| 1515 |
+
if candidate.casefold() not in taken:
|
| 1516 |
+
name = candidate
|
| 1517 |
+
break
|
| 1518 |
+
else:
|
| 1519 |
+
raise SheetRefusal(
|
| 1520 |
+
"workbook_name_taken",
|
| 1521 |
+
"Too many workbooks are already named " + wanted + ".")
|
| 1522 |
book = new_workbook(name=name, created_by=created_by)
|
| 1523 |
_json_safe(book, "workbook")
|
| 1524 |
|
platform/harness/semantic.py
CHANGED
|
@@ -607,12 +607,39 @@ def validate(pre=None):
|
|
| 607 |
def _store_con():
|
| 608 |
import harness.datastore as DS
|
| 609 |
if not DS.ready(): # a mid-backfill store returns PARTIAL totals silently
|
| 610 |
-
raise ModelError(
|
| 611 |
-
"sync). The dashboards work now from live data; ask me again in a "
|
| 612 |
-
"moment and I'll have it")
|
| 613 |
return DS.ro_cursor() # cursor on the shared instance β no sync-writer contention
|
| 614 |
|
| 615 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 616 |
def _measure_sql(m, alias):
|
| 617 |
"""SQL for a base measure. Supports FILTERED measures (`store_filter_sql` β the Omni
|
| 618 |
filtered-measure concept: sum(CASE WHEN β¦ )) and `negate: true` (e.g. GL income, stored
|
|
|
|
| 607 |
def _store_con():
|
| 608 |
import harness.datastore as DS
|
| 609 |
if not DS.ready(): # a mid-backfill store returns PARTIAL totals silently
|
| 610 |
+
raise ModelError(_store_unready_cause(DS))
|
|
|
|
|
|
|
| 611 |
return DS.ro_cursor() # cursor on the shared instance β no sync-writer contention
|
| 612 |
|
| 613 |
|
| 614 |
+
def _store_unready_cause(DS):
|
| 615 |
+
"""D-513: the condition `ready()` actually hit. The old sentence always blamed a warm-up after
|
| 616 |
+
a restart, which is rarely the cause (another process holding the file is the usual one) and
|
| 617 |
+
stopped three sessions from looking further. Client-facing copy: no em or en dash."""
|
| 618 |
+
live = "The dashboards work now from live data"
|
| 619 |
+
if not DS.DB_PATH.exists():
|
| 620 |
+
return ("the data cache file does not exist on this server yet, so it has never synced. "
|
| 621 |
+
f"{live}; ask me again once the first sync has run")
|
| 622 |
+
try:
|
| 623 |
+
cur = DS.ro_cursor()
|
| 624 |
+
try:
|
| 625 |
+
phases = dict(cur.execute("SELECT entity, phase FROM _sync_state").fetchall())
|
| 626 |
+
finally:
|
| 627 |
+
cur.close()
|
| 628 |
+
except Exception as exc: # noqa: BLE001 (the TYPE is named, never its message)
|
| 629 |
+
if "another process" in str(exc) or "lock" in str(exc).lower():
|
| 630 |
+
return ("the data cache is held by another process right now, so it cannot be read. "
|
| 631 |
+
f"{live}; ask me again in a moment")
|
| 632 |
+
return (f"the data cache exists but could not be read ({type(exc).__name__}). "
|
| 633 |
+
f"{live}; ask me again in a moment")
|
| 634 |
+
required = [k for k, v in DS.ENTITIES.items() if not v.get("optional")]
|
| 635 |
+
pending = [k for k in required if phases.get(k) != "live"]
|
| 636 |
+
if not pending:
|
| 637 |
+
return ("the data cache was busy a moment ago and is readable again. "
|
| 638 |
+
f"{live}; ask me again now")
|
| 639 |
+
return (f"the data cache has not finished syncing: {len(required) - len(pending)} of "
|
| 640 |
+
f"{len(required)} required sources are ready. {live}; ask me again once it finishes")
|
| 641 |
+
|
| 642 |
+
|
| 643 |
def _measure_sql(m, alias):
|
| 644 |
"""SQL for a base measure. Supports FILTERED measures (`store_filter_sql` β the Omni
|
| 645 |
filtered-measure concept: sum(CASE WHEN β¦ )) and `negate: true` (e.g. GL income, stored
|
platform/model/metrics/gl.yml
CHANGED
|
@@ -16,7 +16,7 @@ metrics:
|
|
| 16 |
# `semantic._one_binding_offer` refuses the key outright (refusal 3), which is why the GL
|
| 17 |
# account and vendor registries offered nothing at all.
|
| 18 |
empty: zero
|
| 19 |
-
description: "Posted operating expense from the GL (all expense-type accounts; COGS excluded)
|
| 20 |
ai_context: "Company-level; includes payroll JEs/depreciation/fees that never hit vendor bills. Watch close-lag: the newest month is often still being booked."
|
| 21 |
validate:
|
| 22 |
method: gl_opex
|
|
|
|
| 16 |
# `semantic._one_binding_offer` refuses the key outright (refusal 3), which is why the GL
|
| 17 |
# account and vendor registries offered nothing at all.
|
| 18 |
empty: zero
|
| 19 |
+
description: "Posted operating expense from the GL (all expense-type accounts; COGS excluded). This is the Expenses dashboard's basis."
|
| 20 |
ai_context: "Company-level; includes payroll JEs/depreciation/fees that never hit vendor bills. Watch close-lag: the newest month is often still being booked."
|
| 21 |
validate:
|
| 22 |
method: gl_opex
|
platform/model/metrics/invoice_lines.yml
CHANGED
|
@@ -56,7 +56,7 @@ metrics:
|
|
| 56 |
store_filter_sql: "l.move_type = 'out_invoice' AND ca.is_true_agent"
|
| 57 |
format: usd
|
| 58 |
description: >-
|
| 59 |
-
Invoice-line sales whose line carries a REAL agent (res.partner.agent = True)
|
| 60 |
the internal salespeople who also carry commission lines.
|
| 61 |
ai_context: >-
|
| 62 |
Gross of credit notes by design (refund lines rarely carry commission rows); for the netted
|
|
@@ -71,7 +71,7 @@ metrics:
|
|
| 71 |
store_filter_sql: "l.move_type = 'out_invoice' AND ca.is_true_agent IS NOT TRUE"
|
| 72 |
format: usd
|
| 73 |
description: >-
|
| 74 |
-
Invoice-line sales with no REAL agent on the line
|
| 75 |
salesperson-only lines as unallocated.
|
| 76 |
ai_context: >-
|
| 77 |
Two defensible readings and this is the WIDER one (salesperson-covered business counts as
|
|
|
|
| 56 |
store_filter_sql: "l.move_type = 'out_invoice' AND ca.is_true_agent"
|
| 57 |
format: usd
|
| 58 |
description: >-
|
| 59 |
+
Invoice-line sales whose line carries a REAL agent (res.partner.agent = True), excluding
|
| 60 |
the internal salespeople who also carry commission lines.
|
| 61 |
ai_context: >-
|
| 62 |
Gross of credit notes by design (refund lines rarely carry commission rows); for the netted
|
|
|
|
| 71 |
store_filter_sql: "l.move_type = 'out_invoice' AND ca.is_true_agent IS NOT TRUE"
|
| 72 |
format: usd
|
| 73 |
description: >-
|
| 74 |
+
Invoice-line sales with no REAL agent on the line. This is the strict reading, which counts
|
| 75 |
salesperson-only lines as unallocated.
|
| 76 |
ai_context: >-
|
| 77 |
Two defensible readings and this is the WIDER one (salesperson-covered business counts as
|
platform/model/metrics/returns.yml
CHANGED
|
@@ -33,7 +33,7 @@ metrics:
|
|
| 33 |
field: amount_untaxed_signed
|
| 34 |
format: usd
|
| 35 |
description: >-
|
| 36 |
-
Untaxed value of posted customer invoices
|
| 37 |
against.
|
| 38 |
ai_context: >-
|
| 39 |
NOT `revenue`. `revenue` is order-LINE subtotals of confirmed sales orders; this is posted
|
|
@@ -46,7 +46,7 @@ metrics:
|
|
| 46 |
numerator: returns
|
| 47 |
denominator: invoiced
|
| 48 |
format: pct
|
| 49 |
-
description: "Returns as a share of invoiced sales
|
| 50 |
ai_context: >-
|
| 51 |
A FRACTION (0-1), like every other pct metric here β 0.0159 is 1.59%. The condition builder
|
| 52 |
divides a typed percentage by 100 before comparing (`input_scale`), so a user types 5 and
|
|
|
|
| 33 |
field: amount_untaxed_signed
|
| 34 |
format: usd
|
| 35 |
description: >-
|
| 36 |
+
Untaxed value of posted customer invoices, the denominator the business rates returns
|
| 37 |
against.
|
| 38 |
ai_context: >-
|
| 39 |
NOT `revenue`. `revenue` is order-LINE subtotals of confirmed sales orders; this is posted
|
|
|
|
| 46 |
numerator: returns
|
| 47 |
denominator: invoiced
|
| 48 |
format: pct
|
| 49 |
+
description: "Returns as a share of invoiced sales, the rate modules/returns.py reports."
|
| 50 |
ai_context: >-
|
| 51 |
A FRACTION (0-1), like every other pct metric here β 0.0159 is 1.59%. The condition builder
|
| 52 |
divides a typed percentage by 100 before comparing (`input_scale`), so a user types 5 and
|
platform/model/metrics/sales.yml
CHANGED
|
@@ -92,7 +92,7 @@ metrics:
|
|
| 92 |
denominator: units
|
| 93 |
format: usd
|
| 94 |
empty: blank
|
| 95 |
-
description: "Revenue per unit sold
|
| 96 |
ai_context: "revenue Γ· units at identical scope. Mixed units of measure are summed as ordered quantity, so this is per ordered unit, not per piece. Blank when nothing sold: an ASP of $0 on zero units is a false statement, not a missing one."
|
| 97 |
|
| 98 |
- key: orders
|
|
@@ -100,7 +100,7 @@ metrics:
|
|
| 100 |
topic: sales_orders
|
| 101 |
agg: count
|
| 102 |
format: int
|
| 103 |
-
description: "Confirmed wholesale orders in the window (order-header count
|
| 104 |
ai_context: "Order-level count; slightly higher than distinct-orders-from-lines because a few confirmed orders carry zero lines (a data-health artifact the reconciliation contract counts exactly)."
|
| 105 |
validate:
|
| 106 |
method: order_count
|
|
|
|
| 92 |
denominator: units
|
| 93 |
format: usd
|
| 94 |
empty: blank
|
| 95 |
+
description: "Revenue per unit sold: the blended average selling price."
|
| 96 |
ai_context: "revenue Γ· units at identical scope. Mixed units of measure are summed as ordered quantity, so this is per ordered unit, not per piece. Blank when nothing sold: an ASP of $0 on zero units is a false statement, not a missing one."
|
| 97 |
|
| 98 |
- key: orders
|
|
|
|
| 100 |
topic: sales_orders
|
| 101 |
agg: count
|
| 102 |
format: int
|
| 103 |
+
description: "Confirmed wholesale orders in the window (an order-header count, which is what the scorecards show)."
|
| 104 |
ai_context: "Order-level count; slightly higher than distinct-orders-from-lines because a few confirmed orders carry zero lines (a data-health artifact the reconciliation contract counts exactly)."
|
| 105 |
validate:
|
| 106 |
method: order_count
|
platform/model/metrics/stock.yml
CHANGED
|
@@ -53,5 +53,5 @@ metrics:
|
|
| 53 |
expr: "stock_in - stock_out"
|
| 54 |
format: int
|
| 55 |
empty: zero
|
| 56 |
-
description: "Arrivals minus departures over the window
|
| 57 |
ai_context: "Derived from stock_in and stock_out, so it always reconciles to them. It is a MOVEMENT figure, not the on-hand balance: the balance is `product_data.on_hand` from stock.quant."
|
|
|
|
| 53 |
expr: "stock_in - stock_out"
|
| 54 |
format: int
|
| 55 |
empty: zero
|
| 56 |
+
description: "Arrivals minus departures over the window: the period change in units held."
|
| 57 |
ai_context: "Derived from stock_in and stock_out, so it always reconciles to them. It is a MOVEMENT figure, not the on-hand balance: the balance is `product_data.on_hand` from stock.quant."
|
platform/model/topics/odoo_products.yml
CHANGED
|
@@ -14,8 +14,10 @@
|
|
| 14 |
# price_changes, closeouts, notes), and no key here is absent from the contract. So a
|
| 15 |
# field row IS hand-edited, and the rule is the honest one: the key, type and label must
|
| 16 |
# match `aios_grid_fields.json`, because the agent is otherwise trained on a schema the
|
| 17 |
-
# product does not have.
|
| 18 |
-
#
|
|
|
|
|
|
|
| 19 |
key: odoo_products
|
| 20 |
semantic:
|
| 21 |
approved: [code, product_id, product, category, supplier, origin_country, lead_days, first_cost, price_1, unit_1, price_2, unit_2, price_3, unit_3]
|
|
|
|
| 14 |
# price_changes, closeouts, notes), and no key here is absent from the contract. So a
|
| 15 |
# field row IS hand-edited, and the rule is the honest one: the key, type and label must
|
| 16 |
# match `aios_grid_fields.json`, because the agent is otherwise trained on a schema the
|
| 17 |
+
# product does not have. β D-400 GATE, 2026-09-16: `platform/verify_product_pool.py::
|
| 18 |
+
# section_product_field_contract` now holds this file, the json and `pd_fields` in step.
|
| 19 |
+
# Its `YML_ABSENT_KEYS` also lists 11 keys absent here WITHOUT a documented reason (fba and
|
| 20 |
+
# the ten category/attribute columns); whether they belong here is a decision still owed.
|
| 21 |
key: odoo_products
|
| 22 |
semantic:
|
| 23 |
approved: [code, product_id, product, category, supplier, origin_country, lead_days, first_cost, price_1, unit_1, price_2, unit_2, price_3, unit_3]
|
requirements.txt
CHANGED
|
@@ -53,4 +53,7 @@ python-multipart>=0.0.31
|
|
| 53 |
# the line does is turn the fallback into dead weight instead of the live path.
|
| 54 |
# β BOTH MANIFESTS, NOT ONE. This file's own streamlit story at the top is exactly what pinning
|
| 55 |
# one of them looks like a year later.
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
# the line does is turn the fallback into dead weight instead of the live path.
|
| 54 |
# β BOTH MANIFESTS, NOT ONE. This file's own streamlit story at the top is exactly what pinning
|
| 55 |
# one of them looks like a year later.
|
| 56 |
+
# D-384: an EXACT pin, equal to `api/requirements.txt`. This is the manifest the Dockerfile
|
| 57 |
+
# installs, so a floor here meant the container ran whatever PyPI resolved at build time.
|
| 58 |
+
# `api/verify_no_streamlit.py` asserts the two pins agree.
|
| 59 |
+
anthropic==0.96.0
|
web/src/customer-grid/CatalogView.tsx
CHANGED
|
@@ -31,6 +31,7 @@
|
|
| 31 |
|
| 32 |
import { memo, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
| 33 |
import { createPortal } from "react-dom";
|
|
|
|
| 34 |
import { foldNavOnWorkSurface } from "./navFold";
|
| 35 |
import {
|
| 36 |
CATALOG_COLS,
|
|
@@ -720,6 +721,8 @@ export const CatalogView = memo(function CatalogView({
|
|
| 720 |
null
|
| 721 |
);
|
| 722 |
const [askQuality, setAskQuality] = useState<CatalogSpec | null>(null);
|
|
|
|
|
|
|
| 723 |
const stageRef = useRef<HTMLDivElement | null>(null);
|
| 724 |
const printRef = useRef<HTMLDivElement | null>(null);
|
| 725 |
const [stageW, setStageW] = useState(0);
|
|
|
|
| 31 |
|
| 32 |
import { memo, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
| 33 |
import { createPortal } from "react-dom";
|
| 34 |
+
import { useEscapeClose } from "../ui/useEscapeClose";
|
| 35 |
import { foldNavOnWorkSurface } from "./navFold";
|
| 36 |
import {
|
| 37 |
CATALOG_COLS,
|
|
|
|
| 721 |
null
|
| 722 |
);
|
| 723 |
const [askQuality, setAskQuality] = useState<CatalogSpec | null>(null);
|
| 724 |
+
// W-113: the quality prompt is a modal, so Escape cancels it through the one arbiter.
|
| 725 |
+
useEscapeClose(askQuality !== null, () => setAskQuality(null));
|
| 726 |
const stageRef = useRef<HTMLDivElement | null>(null);
|
| 727 |
const printRef = useRef<HTMLDivElement | null>(null);
|
| 728 |
const [stageW, setStageW] = useState(0);
|
web/src/customer-grid/ColumnMenu.tsx
CHANGED
|
@@ -1915,7 +1915,7 @@ function ExtraTypeEditor({
|
|
| 1915 |
</label>
|
| 1916 |
<div className="cg-field-hint">{chosen.hint}</div>
|
| 1917 |
<div className="cg-field-hint">
|
| 1918 |
-
Cells here are written by the run and cannot be typed into
|
| 1919 |
would be replaced by the next run without saying so.
|
| 1920 |
</div>
|
| 1921 |
{/* A v1 LIMIT, said out loud rather than discovered. The column can be created on any
|
|
@@ -2123,7 +2123,7 @@ function ExtraTypeEditor({
|
|
| 2123 |
{hop?.draft.topic ? null : (
|
| 2124 |
<div className="cg-field-hint">
|
| 2125 |
A cell here holds the records you pick. Add a Rollup column afterwards to summarise a
|
| 2126 |
-
column of those records
|
| 2127 |
</div>
|
| 2128 |
)}
|
| 2129 |
</>
|
|
@@ -2258,7 +2258,7 @@ function ExtraTypeEditor({
|
|
| 2258 |
</select>
|
| 2259 |
</label>
|
| 2260 |
<div className="cg-field-hint">
|
| 2261 |
-
Recomputed against live data
|
| 2262 |
freezing the dates it was created on.
|
| 2263 |
</div>
|
| 2264 |
</>
|
|
@@ -2351,7 +2351,7 @@ function ExtraTypeEditor({
|
|
| 2351 |
{chosenLink && !target ? (
|
| 2352 |
<div className="cg-field-hint">
|
| 2353 |
This link points at <b>{chosenLink.link?.table}</b>, which is not among the databases
|
| 2354 |
-
you can open
|
| 2355 |
unavailable. Ask an admin to share that database with you, then reopen this editor.
|
| 2356 |
</div>
|
| 2357 |
) : null}
|
|
@@ -2468,7 +2468,7 @@ function ExtraTypeEditor({
|
|
| 2468 |
</>
|
| 2469 |
)}
|
| 2470 |
<div className="cg-field-hint">
|
| 2471 |
-
Computed for you and refreshed as the linked records change
|
| 2472 |
into.
|
| 2473 |
</div>
|
| 2474 |
</>
|
|
@@ -3702,7 +3702,7 @@ export default function ColumnMenu({
|
|
| 3702 |
"(over a period)" β plus an example, because "Metric" alone does not say
|
| 3703 |
that the answer moves with the window above it. */}
|
| 3704 |
<div className="cg-field-hint">
|
| 3705 |
-
A total, average or count over the period you choose
|
| 3706 |
days. Computed for every customer, and read-only.
|
| 3707 |
</div>
|
| 3708 |
</>
|
|
@@ -4397,7 +4397,7 @@ export default function ColumnMenu({
|
|
| 4397 |
<div className="cg-edit-swap">
|
| 4398 |
<span className="cg-type-title">Change field</span>
|
| 4399 |
<div className="cg-field-hint">
|
| 4400 |
-
Show a different field in this column
|
| 4401 |
</div>
|
| 4402 |
<div className="cg-column-swap">
|
| 4403 |
{/* Item 20 β the ONE picker on this surface that keeps its groups, and it is
|
|
|
|
| 1915 |
</label>
|
| 1916 |
<div className="cg-field-hint">{chosen.hint}</div>
|
| 1917 |
<div className="cg-field-hint">
|
| 1918 |
+
Cells here are written by the run and cannot be typed into. A value you entered
|
| 1919 |
would be replaced by the next run without saying so.
|
| 1920 |
</div>
|
| 1921 |
{/* A v1 LIMIT, said out loud rather than discovered. The column can be created on any
|
|
|
|
| 2123 |
{hop?.draft.topic ? null : (
|
| 2124 |
<div className="cg-field-hint">
|
| 2125 |
A cell here holds the records you pick. Add a Rollup column afterwards to summarise a
|
| 2126 |
+
column of those records: an average, a total, a count.
|
| 2127 |
</div>
|
| 2128 |
)}
|
| 2129 |
</>
|
|
|
|
| 2258 |
</select>
|
| 2259 |
</label>
|
| 2260 |
<div className="cg-field-hint">
|
| 2261 |
+
Recomputed against live data: the window moves with today's date rather than
|
| 2262 |
freezing the dates it was created on.
|
| 2263 |
</div>
|
| 2264 |
</>
|
|
|
|
| 2351 |
{chosenLink && !target ? (
|
| 2352 |
<div className="cg-field-hint">
|
| 2353 |
This link points at <b>{chosenLink.link?.table}</b>, which is not among the databases
|
| 2354 |
+
you can open, so its columns cannot be listed here and the conditions below stay
|
| 2355 |
unavailable. Ask an admin to share that database with you, then reopen this editor.
|
| 2356 |
</div>
|
| 2357 |
) : null}
|
|
|
|
| 2468 |
</>
|
| 2469 |
)}
|
| 2470 |
<div className="cg-field-hint">
|
| 2471 |
+
Computed for you and refreshed as the linked records change. The cell cannot be typed
|
| 2472 |
into.
|
| 2473 |
</div>
|
| 2474 |
</>
|
|
|
|
| 3702 |
"(over a period)" β plus an example, because "Metric" alone does not say
|
| 3703 |
that the answer moves with the window above it. */}
|
| 3704 |
<div className="cg-field-hint">
|
| 3705 |
+
A total, average or count over the period you choose, such as Sales, last 90
|
| 3706 |
days. Computed for every customer, and read-only.
|
| 3707 |
</div>
|
| 3708 |
</>
|
|
|
|
| 4397 |
<div className="cg-edit-swap">
|
| 4398 |
<span className="cg-type-title">Change field</span>
|
| 4399 |
<div className="cg-field-hint">
|
| 4400 |
+
Show a different field in this column. The current one is hidden, not lost.
|
| 4401 |
</div>
|
| 4402 |
<div className="cg-column-swap">
|
| 4403 |
{/* Item 20 β the ONE picker on this surface that keeps its groups, and it is
|
web/src/customer-grid/FormInterface.tsx
CHANGED
|
@@ -267,7 +267,7 @@ export function FormInterface({
|
|
| 267 |
{carryBroken && (
|
| 268 |
<p className="cg-form-warn">
|
| 269 |
Nothing is being saved: this view gave back no form after the last change. Reload the
|
| 270 |
-
page
|
| 271 |
told, because everything typed here is being discarded.
|
| 272 |
</p>
|
| 273 |
)}
|
|
@@ -310,7 +310,7 @@ export function FormInterface({
|
|
| 310 |
{askable.length === 0 ? (
|
| 311 |
<p className="cg-form-note">
|
| 312 |
No column on this database can be a form question yet. A form can ask for text,
|
| 313 |
-
numbers, dates, choices and yes/no
|
| 314 |
</p>
|
| 315 |
) : (
|
| 316 |
<ul className="cg-form-fields">
|
|
|
|
| 267 |
{carryBroken && (
|
| 268 |
<p className="cg-form-warn">
|
| 269 |
Nothing is being saved: this view gave back no form after the last change. Reload the
|
| 270 |
+
page. If it repeats, this build cannot store forms and an administrator should be
|
| 271 |
told, because everything typed here is being discarded.
|
| 272 |
</p>
|
| 273 |
)}
|
|
|
|
| 310 |
{askable.length === 0 ? (
|
| 311 |
<p className="cg-form-note">
|
| 312 |
No column on this database can be a form question yet. A form can ask for text,
|
| 313 |
+
numbers, dates, choices and yes/no, but not a value the app computes.
|
| 314 |
</p>
|
| 315 |
) : (
|
| 316 |
<ul className="cg-form-fields">
|
web/src/customer-grid/ImportDialog.tsx
CHANGED
|
@@ -35,6 +35,7 @@ import type { Field } from "./types";
|
|
| 35 |
import { buildImportPlan } from "./importPlan";
|
| 36 |
import type { ImportMapping, ParsedUpload } from "./importPlan";
|
| 37 |
import "./ImportDialog.css";
|
|
|
|
| 38 |
|
| 39 |
/** The one header a JSON POST needs. `apiBridge` keeps its own module-local copy; this is a
|
| 40 |
* literal rather than an import because that constant is not exported and that file is not
|
|
@@ -67,6 +68,8 @@ export default function ImportDialog({
|
|
| 67 |
onImported,
|
| 68 |
onClose,
|
| 69 |
}: ImportDialogProps): React.ReactElement {
|
|
|
|
|
|
|
| 70 |
const [parsed, setParsed] = useState<Parsed | null>(null);
|
| 71 |
const [mapping, setMapping] = useState<ImportMapping>({});
|
| 72 |
const [busy, setBusy] = useState(false);
|
|
@@ -249,7 +252,7 @@ export default function ImportDialog({
|
|
| 249 |
<p>β¦and {(plan.problems.length - 5).toLocaleString()} more.</p>
|
| 250 |
)}
|
| 251 |
<p>
|
| 252 |
-
Fix them in the file, or point that column somewhere else
|
| 253 |
imported yet.
|
| 254 |
</p>
|
| 255 |
</div>
|
|
|
|
| 35 |
import { buildImportPlan } from "./importPlan";
|
| 36 |
import type { ImportMapping, ParsedUpload } from "./importPlan";
|
| 37 |
import "./ImportDialog.css";
|
| 38 |
+
import { useEscapeClose } from "../ui/useEscapeClose";
|
| 39 |
|
| 40 |
/** The one header a JSON POST needs. `apiBridge` keeps its own module-local copy; this is a
|
| 41 |
* literal rather than an import because that constant is not exported and that file is not
|
|
|
|
| 68 |
onImported,
|
| 69 |
onClose,
|
| 70 |
}: ImportDialogProps): React.ReactElement {
|
| 71 |
+
// W-113: Escape closes it through the one arbiter, the same door the scrim click uses.
|
| 72 |
+
useEscapeClose(true, onClose);
|
| 73 |
const [parsed, setParsed] = useState<Parsed | null>(null);
|
| 74 |
const [mapping, setMapping] = useState<ImportMapping>({});
|
| 75 |
const [busy, setBusy] = useState(false);
|
|
|
|
| 252 |
<p>β¦and {(plan.problems.length - 5).toLocaleString()} more.</p>
|
| 253 |
)}
|
| 254 |
<p>
|
| 255 |
+
Fix them in the file, or point that column somewhere else. Nothing has been
|
| 256 |
imported yet.
|
| 257 |
</p>
|
| 258 |
</div>
|
web/src/customer-grid/SelectFromFile.tsx
CHANGED
|
@@ -15,6 +15,7 @@ import type { TabularUpload } from "./apiBridge";
|
|
| 15 |
import { matchRowsByValue, matchSummary, parsePastedList } from "./fileSelect";
|
| 16 |
import type { MatchResult, MatchRow } from "./fileSelect";
|
| 17 |
import type { Field } from "./types";
|
|
|
|
| 18 |
|
| 19 |
/** The kinds a name can plausibly live in. A rating or a checkbox column is not
|
| 20 |
* something anyone pastes a list of, and offering all 27 field types makes the
|
|
@@ -49,6 +50,8 @@ export default function SelectFromFile({
|
|
| 49 |
onSelect,
|
| 50 |
onClose,
|
| 51 |
}: SelectFromFileProps) {
|
|
|
|
|
|
|
| 52 |
const matchable = useMemo(
|
| 53 |
() => fields.filter((f) => MATCHABLE.has(f.type) || f.key === primaryKey),
|
| 54 |
[fields, primaryKey]
|
|
@@ -177,14 +180,14 @@ export default function SelectFromFile({
|
|
| 177 |
{/* ββ every disclosure the inputs owe, before the button βββββββββββββββ */}
|
| 178 |
{upload?.truncated ? (
|
| 179 |
<p className="cg-sff-warn">
|
| 180 |
-
This file is longer than the {(20000).toLocaleString()}-value limit
|
| 181 |
first {(20000).toLocaleString()} values in each column were read. Anything past
|
| 182 |
that is not being matched.
|
| 183 |
</p>
|
| 184 |
) : null}
|
| 185 |
{!upload && pasted.extraColumns ? (
|
| 186 |
<p className="cg-sff-warn">
|
| 187 |
-
The pasted text has more than one column
|
| 188 |
</p>
|
| 189 |
) : null}
|
| 190 |
{!upload && pasted.blanks > 0 ? (
|
|
|
|
| 15 |
import { matchRowsByValue, matchSummary, parsePastedList } from "./fileSelect";
|
| 16 |
import type { MatchResult, MatchRow } from "./fileSelect";
|
| 17 |
import type { Field } from "./types";
|
| 18 |
+
import { useEscapeClose } from "../ui/useEscapeClose";
|
| 19 |
|
| 20 |
/** The kinds a name can plausibly live in. A rating or a checkbox column is not
|
| 21 |
* something anyone pastes a list of, and offering all 27 field types makes the
|
|
|
|
| 50 |
onSelect,
|
| 51 |
onClose,
|
| 52 |
}: SelectFromFileProps) {
|
| 53 |
+
// W-113: an overlay reaches Escape through the one arbiter (DESIGN.md section 4).
|
| 54 |
+
useEscapeClose(true, onClose);
|
| 55 |
const matchable = useMemo(
|
| 56 |
() => fields.filter((f) => MATCHABLE.has(f.type) || f.key === primaryKey),
|
| 57 |
[fields, primaryKey]
|
|
|
|
| 180 |
{/* ββ every disclosure the inputs owe, before the button βββββββββββββββ */}
|
| 181 |
{upload?.truncated ? (
|
| 182 |
<p className="cg-sff-warn">
|
| 183 |
+
This file is longer than the {(20000).toLocaleString()}-value limit, so only the
|
| 184 |
first {(20000).toLocaleString()} values in each column were read. Anything past
|
| 185 |
that is not being matched.
|
| 186 |
</p>
|
| 187 |
) : null}
|
| 188 |
{!upload && pasted.extraColumns ? (
|
| 189 |
<p className="cg-sff-warn">
|
| 190 |
+
The pasted text has more than one column, so only the first is being matched.
|
| 191 |
</p>
|
| 192 |
) : null}
|
| 193 |
{!upload && pasted.blanks > 0 ? (
|
web/src/customer-grid/SwipeView.tsx
CHANGED
|
@@ -514,7 +514,7 @@ function SwipeBinder({
|
|
| 514 |
<div className="cg-mode-empty">
|
| 515 |
<p>
|
| 516 |
A swipe deck sorts into a single-select field with at least two options. This database
|
| 517 |
-
does not have one yet
|
| 518 |
</p>
|
| 519 |
</div>
|
| 520 |
);
|
|
@@ -566,7 +566,7 @@ function SwipeBinder({
|
|
| 566 |
// Stated, not silently refused: both engines DROP a binding whose sides are the same
|
| 567 |
// option, so a Save that looked like it worked would simply not persist.
|
| 568 |
<p className="cg-swipe-setup-warn">
|
| 569 |
-
The two sides must be different options
|
| 570 |
</p>
|
| 571 |
)}
|
| 572 |
<button
|
|
|
|
| 514 |
<div className="cg-mode-empty">
|
| 515 |
<p>
|
| 516 |
A swipe deck sorts into a single-select field with at least two options. This database
|
| 517 |
+
does not have one yet. Add a single-select column, then come back.
|
| 518 |
</p>
|
| 519 |
</div>
|
| 520 |
);
|
|
|
|
| 566 |
// Stated, not silently refused: both engines DROP a binding whose sides are the same
|
| 567 |
// option, so a Save that looked like it worked would simply not persist.
|
| 568 |
<p className="cg-swipe-setup-warn">
|
| 569 |
+
The two sides must be different options, otherwise both gestures do the same thing.
|
| 570 |
</p>
|
| 571 |
)}
|
| 572 |
<button
|
web/src/customer-grid/TimeSeriesPanel.tsx
CHANGED
|
@@ -945,7 +945,7 @@ export default function TimeSeriesPanel({
|
|
| 945 |
return (
|
| 946 |
<div className="cg-mode-empty" onPointerDown={foldNavOnWorkSurface}>
|
| 947 |
This table has no number fields to plot. A time series needs either a metric with a
|
| 948 |
-
period, or a numeric column to snapshot
|
| 949 |
</div>
|
| 950 |
);
|
| 951 |
}
|
|
@@ -1621,7 +1621,7 @@ function TsRowBlock({
|
|
| 1621 |
<VegaLiteChart spec={spec} label={`${row.label} over time`} />
|
| 1622 |
) : (
|
| 1623 |
<div className="cg-ts-note">
|
| 1624 |
-
Nothing to plot
|
| 1625 |
</div>
|
| 1626 |
)}
|
| 1627 |
</td>
|
|
|
|
| 945 |
return (
|
| 946 |
<div className="cg-mode-empty" onPointerDown={foldNavOnWorkSurface}>
|
| 947 |
This table has no number fields to plot. A time series needs either a metric with a
|
| 948 |
+
period, or a numeric column to snapshot. Add one from a column menu, then pick it here.
|
| 949 |
</div>
|
| 950 |
);
|
| 951 |
}
|
|
|
|
| 1621 |
<VegaLiteChart spec={spec} label={`${row.label} over time`} />
|
| 1622 |
) : (
|
| 1623 |
<div className="cg-ts-note">
|
| 1624 |
+
Nothing to plot: every period for this metric is unanswered.
|
| 1625 |
</div>
|
| 1626 |
)}
|
| 1627 |
</td>
|
web/src/pages/DrillPanel.tsx
CHANGED
|
@@ -22,6 +22,7 @@
|
|
| 22 |
|
| 23 |
import { fmt } from "../ui";
|
| 24 |
import type { DecompDescriptor, DrillDescriptor, EntityDescriptor } from "../ui/types";
|
|
|
|
| 25 |
|
| 26 |
const ENTITY_WORD: Record<string, string> = {
|
| 27 |
customer: "Customer",
|
|
@@ -46,6 +47,8 @@ export function DrillPanel({
|
|
| 46 |
drill: DrillDescriptor;
|
| 47 |
onClose: () => void;
|
| 48 |
}) {
|
|
|
|
|
|
|
| 49 |
const isDecomp = drill.kind === "decomp";
|
| 50 |
const d = drill as DecompDescriptor;
|
| 51 |
const e = drill as EntityDescriptor;
|
|
@@ -84,7 +87,7 @@ export function DrillPanel({
|
|
| 84 |
<p className="pg-drill-note">
|
| 85 |
This wave ships the drill as a complete <em>declaration</em>: the exact
|
| 86 |
scope above is what the number was computed over, and you can check it.
|
| 87 |
-
The row-level breakdown behind it opens in the next release
|
| 88 |
then, use the same view in the current application.
|
| 89 |
</p>
|
| 90 |
</div>
|
|
|
|
| 22 |
|
| 23 |
import { fmt } from "../ui";
|
| 24 |
import type { DecompDescriptor, DrillDescriptor, EntityDescriptor } from "../ui/types";
|
| 25 |
+
import { useEscapeClose } from "../ui/useEscapeClose";
|
| 26 |
|
| 27 |
const ENTITY_WORD: Record<string, string> = {
|
| 28 |
customer: "Customer",
|
|
|
|
| 47 |
drill: DrillDescriptor;
|
| 48 |
onClose: () => void;
|
| 49 |
}) {
|
| 50 |
+
// W-113: an overlay reaches Escape through the one arbiter (DESIGN.md section 4).
|
| 51 |
+
useEscapeClose(true, onClose);
|
| 52 |
const isDecomp = drill.kind === "decomp";
|
| 53 |
const d = drill as DecompDescriptor;
|
| 54 |
const e = drill as EntityDescriptor;
|
|
|
|
| 87 |
<p className="pg-drill-note">
|
| 88 |
This wave ships the drill as a complete <em>declaration</em>: the exact
|
| 89 |
scope above is what the number was computed over, and you can check it.
|
| 90 |
+
The row-level breakdown behind it opens in the next release. Until
|
| 91 |
then, use the same view in the current application.
|
| 92 |
</p>
|
| 93 |
</div>
|
web/src/settings/ExternalAccessPane.tsx
CHANGED
|
@@ -299,8 +299,9 @@ export default function ExternalAccessPane() {
|
|
| 299 |
<div className="set-pane">
|
| 300 |
<h3 className="set-h">External AI</h3>
|
| 301 |
<p className="set-help set-pane-intro">
|
| 302 |
-
Create a private credential for an AI you use. It
|
| 303 |
-
|
|
|
|
| 304 |
</p>
|
| 305 |
|
| 306 |
{error ? <p className="set-error">{error}</p> : null}
|
|
@@ -309,8 +310,8 @@ export default function ExternalAccessPane() {
|
|
| 309 |
<section className="set-card">
|
| 310 |
<h4 className="set-h4">Portable skill</h4>
|
| 311 |
<p className="set-help">
|
| 312 |
-
Download or copy a skill.md for your AI. It describes your
|
| 313 |
-
no credential or other secret.
|
| 314 |
</p>
|
| 315 |
<div className="set-actions">
|
| 316 |
<button
|
|
|
|
| 299 |
<div className="set-pane">
|
| 300 |
<h3 className="set-h">External AI</h3>
|
| 301 |
<p className="set-help set-pane-intro">
|
| 302 |
+
Create a private credential for an AI you use. It can read and build, and it is held to
|
| 303 |
+
exactly the access you have in Loopable, so it can never reach what you cannot.
|
| 304 |
+
Revoking it stops the next request.
|
| 305 |
</p>
|
| 306 |
|
| 307 |
{error ? <p className="set-error">{error}</p> : null}
|
|
|
|
| 310 |
<section className="set-card">
|
| 311 |
<h4 className="set-h4">Portable skill</h4>
|
| 312 |
<p className="set-help">
|
| 313 |
+
Download or copy a skill.md for your AI. It describes what your credential can reach and
|
| 314 |
+
build, and it carries no credential or other secret.
|
| 315 |
</p>
|
| 316 |
<div className="set-actions">
|
| 317 |
<button
|
web/src/settings/SettingsModal.tsx
CHANGED
|
@@ -486,7 +486,7 @@ function AddUser({
|
|
| 486 |
<p className="set-help">
|
| 487 |
A full email address works here, and is usually the better choice: it is the
|
| 488 |
one thing a person already knows about themselves. A short name works too.
|
| 489 |
-
Must be new. To change an existing account, edit it above
|
| 490 |
one would revive sessions that were revoked.
|
| 491 |
</p>
|
| 492 |
</div>
|
|
|
|
| 486 |
<p className="set-help">
|
| 487 |
A full email address works here, and is usually the better choice: it is the
|
| 488 |
one thing a person already knows about themselves. A short name works too.
|
| 489 |
+
Must be new. To change an existing account, edit it above, because re-creating
|
| 490 |
one would revive sessions that were revoked.
|
| 491 |
</p>
|
| 492 |
</div>
|
web/src/shell/ErrorBoundary.tsx
CHANGED
|
@@ -99,7 +99,7 @@ export function FailurePanel({ surface, message, onReload }: FailurePanelProps)
|
|
| 99 |
<div className="shell-placeholder shell-crash" role="alert">
|
| 100 |
<h1>{surface} could not be shown</h1>
|
| 101 |
<p>
|
| 102 |
-
Something here failed while drawing. The rest of the app still works
|
| 103 |
another database from the sidebar, or reload to try this one again.
|
| 104 |
</p>
|
| 105 |
{message ? <p className="shell-crash-detail">{message}</p> : null}
|
|
|
|
| 99 |
<div className="shell-placeholder shell-crash" role="alert">
|
| 100 |
<h1>{surface} could not be shown</h1>
|
| 101 |
<p>
|
| 102 |
+
Something here failed while drawing. The rest of the app still works. Pick
|
| 103 |
another database from the sidebar, or reload to try this one again.
|
| 104 |
</p>
|
| 105 |
{message ? <p className="shell-crash-detail">{message}</p> : null}
|
web/src/shell/NavExtras.tsx
CHANGED
|
@@ -425,7 +425,7 @@ function DeleteFace({
|
|
| 425 |
) : f === null ? (
|
| 426 |
<p className="shell-navmenu-note">
|
| 427 |
The server did not say what this database holds. Deleting it removes its records,
|
| 428 |
-
columns, views, comments, documents and sharing
|
| 429 |
</p>
|
| 430 |
) : (
|
| 431 |
<>
|
|
|
|
| 425 |
) : f === null ? (
|
| 426 |
<p className="shell-navmenu-note">
|
| 427 |
The server did not say what this database holds. Deleting it removes its records,
|
| 428 |
+
columns, views, comments, documents and sharing, permanently.
|
| 429 |
</p>
|
| 430 |
) : (
|
| 431 |
<>
|
web/src/shell/Shell.tsx
CHANGED
|
@@ -4075,7 +4075,7 @@ function ShellFrame() {
|
|
| 4075 |
>
|
| 4076 |
<span className="shell-newdb-kind-name">Blank</span>
|
| 4077 |
<span className="shell-newdb-kind-detail">
|
| 4078 |
-
An empty database
|
| 4079 |
</span>
|
| 4080 |
</button>
|
| 4081 |
<button
|
|
|
|
| 4075 |
>
|
| 4076 |
<span className="shell-newdb-kind-name">Blank</span>
|
| 4077 |
<span className="shell-newdb-kind-detail">
|
| 4078 |
+
An empty database. Add fields and records once it opens.
|
| 4079 |
</span>
|
| 4080 |
</button>
|
| 4081 |
<button
|