/** * PBL v2 — Completion CTA card. * * Appears in chat ONCE the final evaluation has finished streaming. * It is NOT the completion report itself — the report is a separate * page (PR 7's completion.tsx). This card is the entry-point that * lets the learner re-read the chat history before opening the * report. * * Why a CTA in chat rather than auto-navigating: the user * explicitly asked for this in the refactor/openmaic-pbl repo — * forcibly navigating away robbed them of the chance to scroll * back through the milestone reflections. We respect that. * * Final milestone's MilestoneCard above renders without a Continue * button (handover is absent for the last milestone). Once the * final eval finishes, this card appears below it as the only * remaining action. */ 'use client'; import { ArrowRight, PartyPopper } from 'lucide-react'; import { cn } from '@/lib/utils'; import { useI18n } from '@/lib/hooks/use-i18n'; interface Props { onView: () => void; className?: string; } export function CompletionCtaCard({ onView, className }: Props) { const { t } = useI18n(); return (
{t('pbl.v2.completionCard.description')}