({
transcript,
onClose,
initialTab,
onPostRecap,
}: TranscriptPanelProps)
| 964 | const isRunning = status === "live" || status === "paused"; |
| 965 | const [recapPosted, setRecapPosted] = useState(false); |
| 966 | |
| 967 | useEffect(() => { |
| 968 | if (!recapPosted) return; |
| 969 | const timer = window.setTimeout(() => setRecapPosted(false), 5_000); |
| 970 | return () => window.clearTimeout(timer); |
| 971 | }, [recapPosted]); |
| 972 | |
| 973 | if (!hasMinutes) { |
| 974 | return isRunning ? <MinutesBuilding /> : <MinutesFallback />; |
| 975 | } |
| 976 | |
| 977 | const canPostRecap = Boolean(onPostRecap) && !transcript.isViewOnly; |
| 978 | |
| 979 | return ( |
| 980 | <div className="min-h-0 flex-1 space-y-4 overflow-y-auto px-4 py-4"> |
| 981 | <MinutesStatusBar transcript={transcript} /> |
| 982 | {minutes.summary.trim() ? ( |
| 983 | <div className="rounded-xl border border-white/10 bg-white/[0.03] px-3.5 py-3"> |
| 984 | <div className="mb-1.5 flex items-center gap-2 text-[12.5px] font-semibold text-[#e4e4e7]"> |
| 985 | <FileText size={14} strokeWidth={1.8} className="text-[#71717a]" /> |
| 986 | Summary |
| 987 | </div> |
| 988 | <Response>{minutes.summary}</Response> |
| 989 | </div> |
| 990 | ) : null} |
| 991 | <MinutesTask |
| 992 | title="Topics" |
| 993 | icon={<Tag size={14} strokeWidth={1.8} />} |
| 994 | items={minutes.topics} |
| 995 | /> |
| 996 | <MinutesTask |
| 997 | title="Decisions" |
| 998 | icon={<CheckCircle2 size={14} strokeWidth={1.8} />} |
| 999 | items={minutes.decisions} |
| 1000 | /> |
| 1001 | <MinutesTask |
| 1002 | title="Action items" |
| 1003 | icon={<ListTodo size={14} strokeWidth={1.8} />} |
| 1004 | items={minutes.actionItems} |
| 1005 | /> |
| 1006 | <MinutesTask |
| 1007 | title="Open questions" |
| 1008 | icon={<HelpCircle size={14} strokeWidth={1.8} />} |
| 1009 | items={minutes.openQuestions} |
| 1010 | /> |
| 1011 | <MinutesTask |
| 1012 | title="Follow-ups" |
| 1013 | icon={<ListChecks size={14} strokeWidth={1.8} />} |
| 1014 | items={minutes.followUps} |
| 1015 | /> |
| 1016 | {canPostRecap ? ( |
| 1017 | <div className="border-t border-white/[0.06] pt-3"> |
| 1018 | <button |
| 1019 | type="button" |
| 1020 | disabled={recapPosted} |
| 1021 | onClick={() => { |
| 1022 | if (recapPosted) return; |
| 1023 | if (onPostRecap?.()) { |
nothing calls this directly
no test coverage detected