import type { StudioWorkResult } from '../protocol/studio-agent-types' import type { StudioReviewViewModel } from '../store/studio-selectors' import { studioPanelClass } from '../theme' import { StudioReviewFindingList } from './StudioReviewFindingList' interface StudioReviewPanelProps { result: StudioWorkResult | null review: StudioReviewViewModel | null } export function StudioReviewPanel({ result, review }: StudioReviewPanelProps) { if (!result || !review) { return (
Review
Structured review output will appear here when the selected work produces a review-report result.
) } return (
Review

{result.summary}

{(review.sourceLabel || review.path) && (
{review.sourceLabel ?? review.path}
)}
Findings
Summary
{review.summary ?? 'No structured summary'}
{review.changeSet && (
Change Set
{review.changeSet.before && } {review.changeSet.after && } {review.changeSet.diff && }
)} {review.report && }
) } function CodeBlock({ title, content }: { title: string; content: string }) { return (
{title}
{content}
) }