diff --git a/web-ui/src/app/page.tsx b/web-ui/src/app/page.tsx index 0454b7e..a513f47 100644 --- a/web-ui/src/app/page.tsx +++ b/web-ui/src/app/page.tsx @@ -9,7 +9,7 @@ import { AppealTypeBars, subtypeOf } from "@/components/cases/appeal-type-bars"; import { CasesTable } from "@/components/cases/cases-table"; import { Card, CardContent } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; -import { useCases, type Case, type CaseStatus } from "@/lib/api/cases"; +import { useCases, type Case } from "@/lib/api/cases"; import { usePendingApprovals, type ApprovalSeverity, @@ -23,17 +23,6 @@ const SEVERITY_DOT: Record = { ok: "bg-success", }; -// "תיקים לפי סטטוס" horizontal status bars (mockup 04: .bar / .track / .fill). -// Driven by the same live cases the KPI row uses — five status groups onto the -// gold/info/success/danger/muted palette. -type StatusBarRow = { label: string; fill: string; match: CaseStatus[] }; -const STATUS_BARS: StatusBarRow[] = [ - { label: "בהכנה", fill: "bg-info", match: ["new", "uploading", "processing", "documents_ready", "analyst_verified", "research_complete", "outcome_set"] }, - { label: "ניתוח וכיוון", fill: "bg-gold", match: ["brainstorming", "direction_approved", "analysis_enriched", "ready_for_writing"] }, - { label: "בכתיבה", fill: "bg-warn", match: ["drafting", "qa_review", "drafted"] }, - { label: "הושלם", fill: "bg-success", match: ["exported", "reviewed", "final"] }, -]; - export default function HomePage() { const { data, isPending, error } = useCases(true); // INV-IA1 pointer: surface the single approvals aggregate on the dashboard, @@ -52,16 +41,6 @@ export default function HomePage() { return { permits, levies }; }, [data]); - const statusBars = useMemo(() => { - const cases = data ?? []; - const counts = STATUS_BARS.map((b) => ({ - ...b, - n: cases.filter((c) => b.match.includes(c.status)).length, - })); - const max = Math.max(1, ...counts.map((c) => c.n)); - return { counts, max }; - }, [data]); - return (
@@ -93,31 +72,8 @@ export default function HomePage() { {/* two-column body — main flow + narrow gold gate rail (mockup 04 .cols) */}
- {/* תיקים לפי סטטוס — horizontal bars (mockup 04) */} - - -

תיקים לפי סטטוס

-
    - {statusBars.counts.map((b) => ( -
  • - - {b.label} - - - - - - {isPending ? "—" : b.n} - -
  • - ))} -
-
-
- + {/* "תיקים לפי סטטוס" (פסים אופקיים) הוסר — פיזור-הסטטוסים מוצג + בדונאט "פיזור סטטוסים" בטור-הצד (#1). */} {/* live case tables kept in full (richer than the mockup's single feed) */}