'use client'
import { Badge } from '@/components/ui/badge'
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
import { CheckCircle2, AlertCircle, AlertTriangle, Layers, GitBranch, ArrowRight } from 'lucide-react'
import { cn } from '@/lib/utils'
import { validateAll } from '@/lib/pipeline-validation'
import type { WizardState, ValidationResult } from '@/types/pipeline-wizard'
type ReviewSectionProps = {
state: WizardState
}
function ValidationStatusIcon({ result }: { result: ValidationResult }) {
if (result.valid && result.warnings.length === 0) {
return
{label}
{result.errors.map((err, i) => ({err}
))} {result.warnings.map((warn, i) => ({warn}
))} {result.valid && result.errors.length === 0 && result.warnings.length === 0 && (Looks good
)}Pipeline is ready to be saved
> ) : ( <>Pipeline has validation errors that must be fixed
> )}{totalTracks}
{totalStages}
{totalTransitions}
{enabledNotifications}
Notifications