'use client'
/**
* Test 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 Link from 'next/link'
import { PagePurpose } from '@/components/common/PagePurpose'
import { AIToolsSidebarResponsive } from '@/components/ai/AIToolsSidebar'
import type { TabType } from './types'
import { useTestQuality } from './useTestQuality'
import {
ToastContainer,
TestRunsTable,
OverviewTab,
GoldenTab,
RagTab,
SyntheticTab,
GuideTab,
} from './_components'
const TABS: { id: TabType; label: string; highlight?: boolean }[] = [
{ id: 'overview', label: 'Uebersicht' },
{ id: 'golden', label: 'Golden Suite' },
{ id: 'rag', label: 'RAG/Korrektur' },
{ id: 'synthetic', label: 'Synthetic' },
{ id: 'history', label: 'Historie' },
{ id: 'guide', label: 'Anleitung', highlight: true },
]
export default function TestQualityPage() {
const {
activeTab,
setActiveTab,
isLoading,
error,
toasts,
removeToast,
goldenMetrics,
syntheticMetrics,
ragMetrics,
testRuns,
trendData,
isRunningGolden,
isRunningSynthetic,
isRunningRag,
fetchData,
runGoldenTests,
runSyntheticTests,
runRagTests,
} = useTestQuality()
const renderTabContent = () => {
switch (activeTab) {
case 'overview':
return (