'use client'
/**
* Quality Dashboard - BQAS (Breakpilot Quality Assurance System)
*
* Umfassendes Qualitaetssicherungs-Dashboard mit:
* - Golden Test Suite Ergebnisse
* - Synthetic Test Generierung
* - Regression Tracking
* - Test Run Historie
* - RAG Correction Tests
*/
import AdminLayout from '@/components/admin/AdminLayout'
import { useQualityDashboard } from './useQualityDashboard'
import { VOICE_SERVICE_URL, TabId } from './types'
import { OverviewTab } from './_components/OverviewTab'
import { GoldenTab } from './_components/GoldenTab'
import { RagTab } from './_components/RagTab'
import { SyntheticTab } from './_components/SyntheticTab'
import { TestRunsTable } from './_components/TestRunsTable'
import { SchedulerTab } from './_components/SchedulerTab'
const TABS: { id: TabId; label: string }[] = [
{ id: 'overview', label: 'Uebersicht' },
{ id: 'golden', label: 'Golden Suite' },
{ id: 'rag', label: 'RAG/Korrektur' },
{ id: 'synthetic', label: 'Synthetic' },
{ id: 'history', label: 'Historie' },
{ id: 'scheduler', label: 'Lokaler Scheduler' },
]
export default function QualityDashboard() {
const state = useQualityDashboard()
const renderTabContent = () => {
switch (state.activeTab) {
case 'overview':
return (