"use client"; import { useState } from "react"; import { ChevronDown, ChevronUp } from "lucide-react"; import type { CaseStatus } from "@/lib/api/cases"; import { STATUS_LABELS, STATUS_ICONS, STATUS_DESCRIPTIONS, STATUS_TONE } from "@/components/cases/status-badge"; /* * Collapsible guide showing all 13 statuses grouped by phase, * each with its icon, Hebrew label, color badge, and description. * Intended to sit below the WorkflowTimeline in the case sidebar. */ type PhaseGroup = { label: string; statuses: CaseStatus[]; }; const PHASE_GROUPS: PhaseGroup[] = [ { label: "קליטה ועיבוד", statuses: ["new", "uploading", "processing"] }, { label: "הכנת תיק", statuses: ["documents_ready", "analyst_verified", "research_complete", "outcome_set"] }, { label: "ניתוח וכיוון", statuses: ["brainstorming", "direction_approved", "analysis_enriched", "ready_for_writing"] }, { label: "כתיבת טיוטה", statuses: ["drafting", "qa_review", "drafted"] }, { label: "סגירה", statuses: ["exported", "reviewed", "final"] }, ]; export function StatusGuide() { const [open, setOpen] = useState(false); return (