From 5dd711bcd262ecbbac31d1fee012fb068a6df3e2 Mon Sep 17 00:00:00 2001 From: Josako Date: Thu, 13 Nov 2025 10:19:39 +0100 Subject: [PATCH 1/2] - Add human_message_inactive_text_color --- common/utils/chat_utils.py | 2 +- .../CHAT_CLIENT_CUSTOMISATION/1.0.0.yaml | 5 ++++ config/static-manifest/manifest.json | 4 +-- .../assets/vue-components/ChatInput.vue | 26 +++++++++++++++++++ eveai_chat_client/templates/chat.html | 2 ++ 5 files changed, 36 insertions(+), 3 deletions(-) diff --git a/common/utils/chat_utils.py b/common/utils/chat_utils.py index 9b7fd87..2199445 100644 --- a/common/utils/chat_utils.py +++ b/common/utils/chat_utils.py @@ -36,7 +36,7 @@ def get_default_chat_customisation(tenant_customisation=None): 'ai_message_text_color': '#212529', 'human_message_background': '#212529', 'human_message_text_color': '#ffffff', - + 'human_message_inactive_text_color': '#808080' } # If no tenant customization is provided, return the defaults diff --git a/config/customisations/globals/CHAT_CLIENT_CUSTOMISATION/1.0.0.yaml b/config/customisations/globals/CHAT_CLIENT_CUSTOMISATION/1.0.0.yaml index c8f9273..7723c07 100644 --- a/config/customisations/globals/CHAT_CLIENT_CUSTOMISATION/1.0.0.yaml +++ b/config/customisations/globals/CHAT_CLIENT_CUSTOMISATION/1.0.0.yaml @@ -82,6 +82,11 @@ configuration: description: "Human Message Text Color" type: "color" required: false + human_message_inactive_text_color: + name: "Human Message Inactive Text Color" + description: "Human Message Inactive Text Color" + type: "color" + required: false metadata: author: "Josako" date_added: "2024-06-06" diff --git a/config/static-manifest/manifest.json b/config/static-manifest/manifest.json index a6ff778..08309b1 100644 --- a/config/static-manifest/manifest.json +++ b/config/static-manifest/manifest.json @@ -1,6 +1,6 @@ { - "dist/chat-client.js": "dist/chat-client.f7f06623.js", - "dist/chat-client.css": "dist/chat-client.cf7bc0ef.css", + "dist/chat-client.js": "dist/chat-client.f7134231.js", + "dist/chat-client.css": "dist/chat-client.99e10656.css", "dist/main.js": "dist/main.6a617099.js", "dist/main.css": "dist/main.06893f70.css" } \ No newline at end of file diff --git a/eveai_chat_client/static/assets/vue-components/ChatInput.vue b/eveai_chat_client/static/assets/vue-components/ChatInput.vue index e6f4798..79072fd 100644 --- a/eveai_chat_client/static/assets/vue-components/ChatInput.vue +++ b/eveai_chat_client/static/assets/vue-components/ChatInput.vue @@ -49,6 +49,7 @@ :maxlength="maxLength" class="message-input" :class="{ 'over-limit': isOverLimit }" + :style="{ '--placeholder-color': placeholderColor }" > @@ -170,6 +171,13 @@ export default { return 'Verzenden...'; } return this.formData ? 'Verstuur formulier' : 'Verstuur bericht'; + }, + + // Kleur voor placeholder (inactieve toestand) + placeholderColor() { + const cfg = (typeof window !== 'undefined' && window.chatConfig) ? window.chatConfig : {}; + const custom = cfg.customisation || {}; + return custom.human_message_inactive_text_color || '#808080'; } }, watch: { @@ -487,6 +495,24 @@ export default { display: none; } +/* Placeholder kleur op basis van customisation */ +.message-input::placeholder { + color: var(--placeholder-color, #808080); + opacity: 1; /* Zorgt ervoor dat de kleur niet gedimd wordt in sommige browsers */ +} +.message-input::-webkit-input-placeholder { + color: var(--placeholder-color, #808080); +} +.message-input::-moz-placeholder { + color: var(--placeholder-color, #808080); +} +.message-input:-ms-input-placeholder { + color: var(--placeholder-color, #808080); +} +.message-input::-ms-input-placeholder { + color: var(--placeholder-color, #808080); +} + /* Input actions */ .input-actions { diff --git a/eveai_chat_client/templates/chat.html b/eveai_chat_client/templates/chat.html index 9d0731b..74b690d 100644 --- a/eveai_chat_client/templates/chat.html +++ b/eveai_chat_client/templates/chat.html @@ -29,6 +29,8 @@ 'name': tenant_make.name or 'EveAI', 'logo_url': tenant_make.logo_url or '' }|tojson|safe }}, + // Geef volledige customisation door naar de client + customisation: {{ customisation|tojson|safe }}, // Environment-aware static base provided by Flask's overridden url_for staticBase: {{ static_url|tojson }} }; From 04c9d8cf9810669c0f6a25ed9d11ab283f7e7aff Mon Sep 17 00:00:00 2001 From: Josako Date: Thu, 13 Nov 2025 10:24:51 +0100 Subject: [PATCH 2/2] - Release notes v3.1.16-beta --- content/changelog/1.0/1.0.0.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/changelog/1.0/1.0.0.md b/content/changelog/1.0/1.0.0.md index ffb76f1..d7d269b 100644 --- a/content/changelog/1.0/1.0.0.md +++ b/content/changelog/1.0/1.0.0.md @@ -5,6 +5,13 @@ All notable changes to EveAI will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 3.1.16-beta + +Release date: + +### Added +- human_message_inactive_text_color added to Tenant Make configuration options, to allow for customisation of inactive messages in the chat client. + ## 3.1.15-beta Release date: 2025-10-29