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:
parent
09dd6e9096
commit
76dd20c1ce
2 changed files with 12 additions and 2 deletions
|
|
@ -221,8 +221,8 @@ export const TeamsbotSettingsView: React.FC = () => {
|
||||||
onChange={(e) => _handleLanguageChange(e.target.value)}
|
onChange={(e) => _handleLanguageChange(e.target.value)}
|
||||||
>
|
>
|
||||||
{languages.length > 0 ? (
|
{languages.length > 0 ? (
|
||||||
languages.map(lang => (
|
languages.map((lang, idx) => (
|
||||||
<option key={lang.code} value={lang.code}>{lang.name} ({lang.code})</option>
|
<option key={`${lang.code}-${idx}`} value={lang.code}>{lang.name} ({lang.code})</option>
|
||||||
))
|
))
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
|
|
|
||||||
|
|
@ -248,6 +248,16 @@ export const FEATURE_REGISTRY: Record<string, FeatureConfig> = {
|
||||||
{ code: 'workflows', label: { de: 'Workflows', en: 'Workflows' }, path: 'workflows' },
|
{ 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: {
|
automation: {
|
||||||
code: 'automation',
|
code: 'automation',
|
||||||
label: { de: 'Automatisierung', en: 'Automation' },
|
label: { de: 'Automatisierung', en: 'Automation' },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue