From 76dd20c1ce9e0cd0c117f6c5c3e09118da86bd0f Mon Sep 17 00:00:00 2001
From: ValueOn AG
Date: Sun, 15 Feb 2026 09:43:53 +0100
Subject: [PATCH] fix: add teamsbot to FEATURE_REGISTRY, fix duplicate key
warning
- Added teamsbot feature config to FEATURE_REGISTRY with labels (Teams Bot)
and view definitions (Dashboard, Sessions, Settings)
- Fixed React key warning in language dropdown (duplicate language codes from Google TTS API)
Co-authored-by: Cursor
---
src/pages/views/teamsbot/TeamsbotSettingsView.tsx | 4 ++--
src/types/mandate.ts | 10 ++++++++++
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/pages/views/teamsbot/TeamsbotSettingsView.tsx b/src/pages/views/teamsbot/TeamsbotSettingsView.tsx
index 83e1487..f69bc14 100644
--- a/src/pages/views/teamsbot/TeamsbotSettingsView.tsx
+++ b/src/pages/views/teamsbot/TeamsbotSettingsView.tsx
@@ -221,8 +221,8 @@ export const TeamsbotSettingsView: React.FC = () => {
onChange={(e) => _handleLanguageChange(e.target.value)}
>
{languages.length > 0 ? (
- languages.map(lang => (
-
+ languages.map((lang, idx) => (
+
))
) : (
<>
diff --git a/src/types/mandate.ts b/src/types/mandate.ts
index 3f63196..1a8a2b8 100644
--- a/src/types/mandate.ts
+++ b/src/types/mandate.ts
@@ -248,6 +248,16 @@ export const FEATURE_REGISTRY: Record = {
{ code: 'workflows', label: { de: 'Workflows', en: 'Workflows' }, path: 'workflows' },
]
},
+ teamsbot: {
+ code: 'teamsbot',
+ label: { de: 'Teams Bot', en: 'Teams Bot' },
+ icon: 'headset_mic',
+ views: [
+ { code: 'dashboard', label: { de: 'Übersicht', en: 'Dashboard' }, path: 'dashboard' },
+ { code: 'sessions', label: { de: 'Sitzungen', en: 'Sessions' }, path: 'sessions' },
+ { code: 'settings', label: { de: 'Einstellungen', en: 'Settings' }, path: 'settings' },
+ ]
+ },
automation: {
code: 'automation',
label: { de: 'Automatisierung', en: 'Automation' },