Deploy AIOS web (React glide grid + FastAPI slice)
Browse files- RELEASES.json +1 -1
- VERSION +1 -1
- api/routes_connectors.py +13 -1
- web/public/AIOS_DEPLOY_RECEIPT +1 -1
- web/src/automation/AutomationBuilder.tsx +1 -1
- web/src/connectors/ConnectorsPage.tsx +2 -0
- web/src/customer-grid/RecordDetail.tsx +4 -2
- web/src/settings/SettingsModal.tsx +1 -1
RELEASES.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
"releases": []
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "d9b4c2c4",
|
| 3 |
"releases": []
|
| 4 |
}
|
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
d9b4c2c4
|
api/routes_connectors.py
CHANGED
|
@@ -1004,10 +1004,19 @@ def directory(rt, uname, is_admin=False, incomplete=None):
|
|
| 1004 |
# would have flipped a real connection to "available" — the silent case W31-T44 exists to
|
| 1005 |
# prevent, re-introduced by the fix for its sibling.
|
| 1006 |
def _odoo():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1007 |
rows.append({
|
| 1008 |
"key": "odoo", "label": "Odoo", "kind": "builtin",
|
| 1009 |
"desc": "Sales, invoices, products and customers from your Odoo ERP.",
|
| 1010 |
-
"state": ("
|
|
|
|
| 1011 |
else "available"),
|
| 1012 |
# W32-T11 / C1 — always business: Odoo is what the whole workspace's databases are
|
| 1013 |
# read through, which is why `routes_keychain.TENANT_WIDE_TYPES` refuses to make it
|
|
@@ -1213,6 +1222,9 @@ def directory(rt, uname, is_admin=False, incomplete=None):
|
|
| 1213 |
_safe_connector_status(row.get("key"), row)
|
| 1214 |
_directory_card_action(row, is_admin)
|
| 1215 |
contact = _contact_rows(rt, uname, is_admin, short)
|
|
|
|
|
|
|
|
|
|
| 1216 |
reserved = {row["key"] for row in contact}
|
| 1217 |
# Slack's old sign-in-provider listing must not become a second card for the same channel.
|
| 1218 |
return contact + [row for row in rows if row.get("key") not in reserved]
|
|
|
|
| 1004 |
# would have flipped a real connection to "available" — the silent case W31-T44 exists to
|
| 1005 |
# prevent, re-introduced by the fix for its sibling.
|
| 1006 |
def _odoo():
|
| 1007 |
+
# S70-T37 (R4/D-202): a DISCONNECT freezes the tenant's mirror durably, and a frozen tenant
|
| 1008 |
+
# reads "disconnected" even while Royal's environment credential is still present. The read
|
| 1009 |
+
# is fresh and tenant-bound, so one tenant's freeze never shows on another tenant's card.
|
| 1010 |
+
try:
|
| 1011 |
+
cfg = rt.get("odoo_connector_config", fresh=True)
|
| 1012 |
+
frozen = isinstance(cfg, dict) and bool(cfg.get("frozen"))
|
| 1013 |
+
except Exception: # noqa: BLE001
|
| 1014 |
+
frozen = False
|
| 1015 |
rows.append({
|
| 1016 |
"key": "odoo", "label": "Odoo", "kind": "builtin",
|
| 1017 |
"desc": "Sales, invoices, products and customers from your Odoo ERP.",
|
| 1018 |
+
"state": ("disconnected" if frozen
|
| 1019 |
+
else "connected" if ("odoo" in have or env_odoo_available(rt))
|
| 1020 |
else "available"),
|
| 1021 |
# W32-T11 / C1 — always business: Odoo is what the whole workspace's databases are
|
| 1022 |
# read through, which is why `routes_keychain.TENANT_WIDE_TYPES` refuses to make it
|
|
|
|
| 1222 |
_safe_connector_status(row.get("key"), row)
|
| 1223 |
_directory_card_action(row, is_admin)
|
| 1224 |
contact = _contact_rows(rt, uname, is_admin, short)
|
| 1225 |
+
for row in contact:
|
| 1226 |
+
# Eligibility rides every card, Contact's included, or the toggle's filter has nothing to read.
|
| 1227 |
+
row["allowedScopes"] = list(allowed_scopes(_entry_type_for(row.get("key"))))
|
| 1228 |
reserved = {row["key"] for row in contact}
|
| 1229 |
# Slack's old sign-in-provider listing must not become a second card for the same channel.
|
| 1230 |
return contact + [row for row in rows if row.get("key") not in reserved]
|
web/public/AIOS_DEPLOY_RECEIPT
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
5ec3109105b24f37211b6d2f80a3bd2d70bffccca3650602b311941bfee9d2b1
|
web/src/automation/AutomationBuilder.tsx
CHANGED
|
@@ -2165,7 +2165,7 @@ function TriggerProps({
|
|
| 2165 |
id="autox-thook"
|
| 2166 |
className="auto-input is-mono"
|
| 2167 |
readOnly
|
| 2168 |
-
value={`/api/v1/automations/hook/${trigger.token}`}
|
| 2169 |
/>
|
| 2170 |
<p className="auto-hint">Minted once. It survives every other change to this trigger.</p>
|
| 2171 |
</div>
|
|
|
|
| 2165 |
id="autox-thook"
|
| 2166 |
className="auto-input is-mono"
|
| 2167 |
readOnly
|
| 2168 |
+
value={`/api/v1/automations/${encodeURIComponent(automation.id)}/hook/${trigger.token}`}
|
| 2169 |
/>
|
| 2170 |
<p className="auto-hint">Minted once. It survives every other change to this trigger.</p>
|
| 2171 |
</div>
|
web/src/connectors/ConnectorsPage.tsx
CHANGED
|
@@ -624,6 +624,8 @@ export function isOperationalConnector(row: ConnectorRow): boolean {
|
|
| 624 |
// scraper credential exists. The missing credential is validated only at explicit Run now.
|
| 625 |
if (row.key === "scraper") return true;
|
| 626 |
if (["connected", "reconnect", "expired"].includes(row.state)) return true;
|
|
|
|
|
|
|
| 627 |
if (row.state !== "available" || row.needs?.trim()) return false;
|
| 628 |
const operation = row.operation || (row.action === AMAZON_REVIEWS_ACTION ? row.action : "");
|
| 629 |
if (operation) return operation === AMAZON_REVIEWS_ACTION;
|
|
|
|
| 624 |
// scraper credential exists. The missing credential is validated only at explicit Run now.
|
| 625 |
if (row.key === "scraper") return true;
|
| 626 |
if (["connected", "reconnect", "expired"].includes(row.state)) return true;
|
| 627 |
+
// A frozen (disconnected) Odoo keeps its card so it can be connected again.
|
| 628 |
+
if (row.state === "disconnected") return true;
|
| 629 |
if (row.state !== "available" || row.needs?.trim()) return false;
|
| 630 |
const operation = row.operation || (row.action === AMAZON_REVIEWS_ACTION ? row.action : "");
|
| 631 |
if (operation) return operation === AMAZON_REVIEWS_ACTION;
|
web/src/customer-grid/RecordDetail.tsx
CHANGED
|
@@ -949,8 +949,10 @@ export function RecordLinkValue({ field, value, inputId, onOpen }: {
|
|
| 949 |
: !settled ? "pending" : answer.refused ? "unavailable" : "ready";
|
| 950 |
return (
|
| 951 |
<span className="cg-detail-value cg-detail-jsonslot" data-record-link-state={state} aria-busy={state === "pending"}>
|
| 952 |
-
|
| 953 |
-
|
|
|
|
|
|
|
| 954 |
{field.link?.table && <button id={inputId} type="button" className="cg-detail-imagebtn" onClick={onOpen}>Open</button>}
|
| 955 |
</span>
|
| 956 |
);
|
|
|
|
| 949 |
: !settled ? "pending" : answer.refused ? "unavailable" : "ready";
|
| 950 |
return (
|
| 951 |
<span className="cg-detail-value cg-detail-jsonslot" data-record-link-state={state} aria-busy={state === "pending"}>
|
| 952 |
+
{state === "pending"
|
| 953 |
+
? <span className="lp-spin" role="status" aria-label="Loading" />
|
| 954 |
+
: <span>{state === "empty" ? "No linked records"
|
| 955 |
+
: state === "unavailable" ? settled ? answer.text : "Linked records are unavailable." : answer?.text}</span>}
|
| 956 |
{field.link?.table && <button id={inputId} type="button" className="cg-detail-imagebtn" onClick={onOpen}>Open</button>}
|
| 957 |
</span>
|
| 958 |
);
|
web/src/settings/SettingsModal.tsx
CHANGED
|
@@ -1308,7 +1308,7 @@ function KeychainPane() {
|
|
| 1308 |
value={form.scope}
|
| 1309 |
onChange={(e) => setForm({ ...form, scope: e.target.value })}
|
| 1310 |
>
|
| 1311 |
-
<option value="business">Business-wide
|
| 1312 |
<option value="personal">Personal: only me</option>
|
| 1313 |
</select>
|
| 1314 |
) : (
|
|
|
|
| 1308 |
value={form.scope}
|
| 1309 |
onChange={(e) => setForm({ ...form, scope: e.target.value })}
|
| 1310 |
>
|
| 1311 |
+
<option value="business">Business-wide</option>
|
| 1312 |
<option value="personal">Personal: only me</option>
|
| 1313 |
</select>
|
| 1314 |
) : (
|