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 <cursoragent@cursor.com>
This commit is contained in:
ValueOn AG 2026-02-15 09:43:53 +01:00
parent 09dd6e9096
commit 76dd20c1ce
2 changed files with 12 additions and 2 deletions

View file

@ -221,8 +221,8 @@ export const TeamsbotSettingsView: React.FC = () => {
onChange={(e) => _handleLanguageChange(e.target.value)}
>
{languages.length > 0 ? (
languages.map(lang => (
<option key={lang.code} value={lang.code}>{lang.name} ({lang.code})</option>
languages.map((lang, idx) => (
<option key={`${lang.code}-${idx}`} value={lang.code}>{lang.name} ({lang.code})</option>
))
) : (
<>

View file

@ -248,6 +248,16 @@ export const FEATURE_REGISTRY: Record<string, FeatureConfig> = {
{ 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' },