From 94397c809b466b4cbd6e44ef3075200b3b54eda7 Mon Sep 17 00:00:00 2001 From: Chaim Date: Mon, 6 Apr 2026 14:09:50 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20reorder=20dashlet=20tabs=20=E2=80=94=20a?= =?UTF-8?q?ttention=20first,=20open=20cases=20last?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move "needs attention" tab to the right (first in RTL), make it active by default, and move "open cases" to the left (last). Co-Authored-By: Claude Opus 4.6 (1M context) --- .../smart-assistant/src/views/dashlets/smart-assistant.js | 6 +++--- manifest.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files/client/custom/modules/smart-assistant/src/views/dashlets/smart-assistant.js b/files/client/custom/modules/smart-assistant/src/views/dashlets/smart-assistant.js index 42957fb..44e7d03 100644 --- a/files/client/custom/modules/smart-assistant/src/views/dashlets/smart-assistant.js +++ b/files/client/custom/modules/smart-assistant/src/views/dashlets/smart-assistant.js @@ -24,7 +24,7 @@ define('modules/smart-assistant/views/dashlets/smart-assistant', ['view'], funct afterRender: function () { this._alerts = []; this._summary = {}; - this._activeType = null; + this._activeType = 'attention'; var self = this; Espo.Ajax.getRequest('SmartAssistant/action/status').then(function (result) { @@ -54,10 +54,10 @@ define('modules/smart-assistant/views/dashlets/smart-assistant', ['view'], funct renderCards: function (summary) { var cards = [ - {type: 'open', label: 'תיקים פתוחים', value: summary.totalOpenCases || 0, color: '#1565c0', bg: '#e3f2fd', icon: 'fa-folder-open'}, + {type: 'attention', label: 'דורשים תשומת לב', value: summary.casesNeedingAttention || 0, color: '#f9a825', bg: '#fff9c4', icon: 'fa-bell'}, {type: 'overdue', label: 'משימות באיחור', value: summary.totalOverdueTasks || 0, color: '#c62828', bg: '#ffcdd2', icon: 'fa-exclamation-circle'}, {type: 'hearings', label: 'דיונים השבוע', value: summary.upcomingHearings7d || 0, color: '#e65100', bg: '#fff3e0', icon: 'fa-gavel'}, - {type: 'attention', label: 'דורשים תשומת לב', value: summary.casesNeedingAttention || 0, color: '#f9a825', bg: '#fff9c4', icon: 'fa-bell'}, + {type: 'open', label: 'תיקים פתוחים', value: summary.totalOpenCases || 0, color: '#1565c0', bg: '#e3f2fd', icon: 'fa-folder-open'}, ]; var self = this; diff --git a/manifest.json b/manifest.json index 58f1c3f..9d8270e 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "module": "SmartAssistant", "description": "Unified AI Assistant for Legal CRM — floating chat with case memory, office alerts, and AI Gateway integration", "author": "klear", - "version": "2.5.0", + "version": "2.5.1", "acceptableVersions": [ ">=8.0.0" ],