feat: add language selection combobox and update TTS dialog for improved language handling

This commit is contained in:
JSC
2025-09-21 15:20:12 +02:00
parent 7ac979a4f4
commit 7faf2d38ab
7 changed files with 141 additions and 45 deletions

View File

@@ -2,7 +2,6 @@ import { useState, useEffect, useCallback } from 'react'
import { ttsService, type TTSResponse } from '@/lib/api/services/tts'
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
import { Badge } from '@/components/ui/badge'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
import { Label } from '@/components/ui/label'
@@ -31,7 +30,7 @@ export function TTSList() {
setIsLoading(true)
setError(null)
const data = await ttsService.getTTSHistory({ limit })
setTTSHistory(data)
setTTSHistory(data.tts)
} catch (err) {
setError('Failed to load TTS history')
console.error('Failed to fetch TTS history:', err)