fix(2.10.3): expose AssistantRule + CaseMemory in Admin Layout Manager
Two metadata gaps spotted when the user couldn't see Shira entities in Admin → Layout Manager and got console 404s on /#CaseMemory: * AssistantRule.json (scopes/) was missing `customizable: true` and `importable: false`. Without `customizable: true` EspoCRM hides the entity from Admin → Entity Manager → Layouts. Other Shira entities already had it; this one was the outlier. * CaseMemory.json (clientDefs/) didn't exist at all. The Metadata endpoint returned an empty object, so the frontend fell through to default convention `client/custom/modules/smart-assistant/src/controllers/case-memory.js` which doesn't exist → 404 in browser console. Adding clientDefs with `controller: controllers/record` + icon + filters lets the standard record controller handle the entity without any custom JS file. Verified on prod after hot-patch: - Metadata?key=scopes.AssistantRule.customizable → "true" - Metadata?key=clientDefs.CaseMemory → full object Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"controller": "controllers/record",
|
||||||
|
"color": "#9b59b6",
|
||||||
|
"iconClass": "fas fa-brain",
|
||||||
|
"boolFilterList": ["onlyMy"],
|
||||||
|
"filterList": [
|
||||||
|
{"name": "pinned"},
|
||||||
|
{"name": "byCategory"}
|
||||||
|
]
|
||||||
|
}
|
||||||
+3
-1
@@ -7,5 +7,7 @@
|
|||||||
"aclLevelList": ["all", "team", "own", "no"],
|
"aclLevelList": ["all", "team", "own", "no"],
|
||||||
"stream": false,
|
"stream": false,
|
||||||
"tab": true,
|
"tab": true,
|
||||||
"disabled": false
|
"disabled": false,
|
||||||
|
"importable": false,
|
||||||
|
"customizable": true
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
"module": "SmartAssistant",
|
"module": "SmartAssistant",
|
||||||
"description": "Unified AI Assistant for Legal CRM — floating chat with case memory, office alerts, and AI Gateway integration",
|
"description": "Unified AI Assistant for Legal CRM — floating chat with case memory, office alerts, and AI Gateway integration",
|
||||||
"author": "klear",
|
"author": "klear",
|
||||||
"version": "2.10.2",
|
"version": "2.10.3",
|
||||||
"acceptableVersions": [
|
"acceptableVersions": [
|
||||||
">=8.0.0"
|
">=8.0.0"
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user