import { InterpretationReport } from '@/lib/types' import BenchmarkTable from './BenchmarkTable' interface ReportViewProps { report: InterpretationReport } const strengthStyles: Record = { strong: 'bg-green-100 text-green-800', moderate: 'bg-yellow-100 text-yellow-800', weak: 'bg-red-100 text-red-800', } const strengthLabels: Record = { strong: 'Strong', moderate: 'Moderate', weak: 'Weak', } export default function ReportView({ report }: ReportViewProps) { const today = new Date().toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric', }) return (
{/* Header */}

DevOps Performance Report

{today}

{/* Delivery Profile */}

Delivery Profile

{report.deliveryProfile}

{/* Benchmark Alignment */}

Benchmark Alignment

{/* Leadership Summary */}

Leadership Summary

Delivery Speed: {strengthLabels[report.leadershipSummary.deliverySpeed] ?? report.leadershipSummary.deliverySpeed}
Reliability: {strengthLabels[report.leadershipSummary.reliability] ?? report.leadershipSummary.reliability}
Focus Area: {report.leadershipSummary.focusArea}
{/* Likely Bottlenecks */}

Likely Bottlenecks

    {report.likelyBottlenecks.map((bottleneck) => (
  • {bottleneck}
  • ))}
{/* Improvements */}

Recommended Improvements

    {[...report.improvements] .sort((a, b) => a.priority - b.priority) .map((improvement) => (
  1. {improvement.priority}

    {improvement.action}

    {improvement.rationale}

  2. ))}
) }