diff --git a/src/client/routes/threads/$threadId.tsx b/src/client/routes/threads/$threadId.tsx index f16ccc2..4ba63b2 100644 --- a/src/client/routes/threads/$threadId.tsx +++ b/src/client/routes/threads/$threadId.tsx @@ -3,6 +3,7 @@ import { Reorder } from "framer-motion"; import { useEffect, useState } from "react"; import { CandidateCard } from "../../components/CandidateCard"; import { CandidateListItem } from "../../components/CandidateListItem"; +import { ComparisonTable } from "../../components/ComparisonTable"; import { useReorderCandidates, useUpdateCandidate, @@ -120,7 +121,7 @@ function ThreadDetailPage() { {/* Toolbar: Add candidate + view toggle */}
- {isActive && ( + {isActive && candidateViewMode !== "compare" && ( + {thread.candidates.length >= 2 && ( + + )}
)} @@ -189,6 +204,11 @@ function ThreadDetailPage() { Add your first candidate to start comparing.

+ ) : candidateViewMode === "compare" ? ( + ) : candidateViewMode === "list" ? ( isActive ? ( void; // Candidate view mode - candidateViewMode: "list" | "grid"; - setCandidateViewMode: (mode: "list" | "grid") => void; + candidateViewMode: "list" | "grid" | "compare"; + setCandidateViewMode: (mode: "list" | "grid" | "compare") => void; } export const useUIStore = create((set) => ({