From a0d9d1133aedddd0e6859655877fc45a6d13e30d Mon Sep 17 00:00:00 2001 From: bsiggel Date: Thu, 26 Mar 2026 22:41:47 +0100 Subject: [PATCH] Add AI provider field and localization updates; modify microtime values in config and state files --- custom/Espo/Custom/Resources/i18n/de_DE/CAkten.json | 5 +++++ custom/Espo/Custom/Resources/i18n/en_US/CAkten.json | 5 +++++ .../Espo/Custom/Resources/layouts/CAkten/detail.json | 6 ++++++ .../Custom/Resources/metadata/entityDefs/CAkten.json | 10 ++++++++++ data/config.php | 2 +- data/state.php | 4 ++-- 6 files changed, 29 insertions(+), 3 deletions(-) diff --git a/custom/Espo/Custom/Resources/i18n/de_DE/CAkten.json b/custom/Espo/Custom/Resources/i18n/de_DE/CAkten.json index 06678ab3..785eb203 100644 --- a/custom/Espo/Custom/Resources/i18n/de_DE/CAkten.json +++ b/custom/Espo/Custom/Resources/i18n/de_DE/CAkten.json @@ -22,6 +22,7 @@ "aiAktivierungsstatus": "AI Aktivierungsstatus", "aiSyncStatus": "AI Sync-Status", "aiLastSync": "AI Letzter Sync", + "aiProvider": "AI Anbieter", "globalSyncStatus": "Globaler Sync-Status", "globalLastSync": "Globaler letzter Sync", "syncSchalter": "Sync aktiv", @@ -55,6 +56,10 @@ "pending_sync": "Synchronisierung ausstehend", "failed": "Fehlgeschlagen" }, + "aiProvider": { + "ragflow": "RAGflow", + "xai": "xAI" + }, "globalSyncStatus": { "synced": "Synchronisiert", "unclean": "Nicht synchronisiert", diff --git a/custom/Espo/Custom/Resources/i18n/en_US/CAkten.json b/custom/Espo/Custom/Resources/i18n/en_US/CAkten.json index e2e1b8e3..a11b91dd 100644 --- a/custom/Espo/Custom/Resources/i18n/en_US/CAkten.json +++ b/custom/Espo/Custom/Resources/i18n/en_US/CAkten.json @@ -23,6 +23,7 @@ "aiAktivierungsstatus": "AI Activation Status", "aiSyncStatus": "AI Sync Status", "aiLastSync": "AI Last Sync", + "aiProvider": "AI Provider", "globalSyncStatus": "Global Sync Status", "globalLastSync": "Global Last Sync", "syncSchalter": "Sync Active", @@ -56,6 +57,10 @@ "pending_sync": "Synchronization Pending", "failed": "Failed" }, + "aiProvider": { + "ragflow": "RAGflow", + "xai": "xAI" + }, "globalSyncStatus": { "synced": "Synchronized", "unclean": "Not Synchronized", diff --git a/custom/Espo/Custom/Resources/layouts/CAkten/detail.json b/custom/Espo/Custom/Resources/layouts/CAkten/detail.json index 17702b32..aec1d791 100644 --- a/custom/Espo/Custom/Resources/layouts/CAkten/detail.json +++ b/custom/Espo/Custom/Resources/layouts/CAkten/detail.json @@ -68,6 +68,12 @@ { "name": "aiLastSync" } + ], + [ + { + "name": "aiProvider" + }, + {} ] ], "style": "default", diff --git a/custom/Espo/Custom/Resources/metadata/entityDefs/CAkten.json b/custom/Espo/Custom/Resources/metadata/entityDefs/CAkten.json index 81673706..c55d0f5a 100644 --- a/custom/Espo/Custom/Resources/metadata/entityDefs/CAkten.json +++ b/custom/Espo/Custom/Resources/metadata/entityDefs/CAkten.json @@ -169,6 +169,16 @@ "tooltip": true, "isCustom": true }, + "aiProvider": { + "type": "enum", + "required": false, + "options": [ + "ragflow", + "xai" + ], + "default": "ragflow", + "isCustom": true + }, "globalSyncStatus": { "type": "enum", "required": false, diff --git a/data/config.php b/data/config.php index bc4eb420..9e625531 100644 --- a/data/config.php +++ b/data/config.php @@ -359,7 +359,7 @@ return [ 0 => 'youtube.com', 1 => 'google.com' ], - 'microtime' => 1774536094.057648, + 'microtime' => 1774561277.765123, 'siteUrl' => 'https://crm.bitbylaw.com', 'fullTextSearchMinLength' => 4, 'webSocketUrl' => 'ws://api.bitbylaw.com:5000/espocrm/ws', diff --git a/data/state.php b/data/state.php index 9eb463f7..11697445 100644 --- a/data/state.php +++ b/data/state.php @@ -1,7 +1,7 @@ 1774536094, - 'microtimeState' => 1774536094.274373, + 'cacheTimestamp' => 1774561277, + 'microtimeState' => 1774561277.939448, 'currencyRates' => [ 'EUR' => 1.0 ],