Review card too

This commit is contained in:
Nicolas Mowen 2025-12-30 15:25:37 -07:00
parent 64b5162000
commit 9bc8c93d20

View File

@ -39,6 +39,7 @@ import { Trans, useTranslation } from "react-i18next";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import { LuCircle } from "react-icons/lu"; import { LuCircle } from "react-icons/lu";
import { MdAutoAwesome } from "react-icons/md"; import { MdAutoAwesome } from "react-icons/md";
import { GenAISummaryDialog } from "../overlay/chip/GenAISummaryChip";
type ReviewCardProps = { type ReviewCardProps = {
event: ReviewSegment; event: ReviewSegment;
@ -219,12 +220,14 @@ export default function ReviewCard({
/> />
</div> </div>
{event.data.metadata?.title && ( {event.data.metadata?.title && (
<div className="flex items-center gap-1.5 rounded bg-secondary/50"> <GenAISummaryDialog review={event}>
<MdAutoAwesome className="size-3 shrink-0 text-primary" /> <div className="flex items-center gap-1.5 rounded bg-secondary/50 hover:underline">
<span className="truncate text-xs text-primary"> <MdAutoAwesome className="size-3 shrink-0 text-primary" />
{event.data.metadata.title} <span className="truncate text-xs text-primary">
</span> {event.data.metadata.title}
</div> </span>
</div>
</GenAISummaryDialog>
)} )}
</div> </div>
); );