"use client"; import { useMemo } from "react"; import Link from "next/link"; import { AppShell } from "@/components/app-shell"; import { KPICards } from "@/components/cases/kpi-cards"; import { StatusDonut } from "@/components/cases/status-donut"; 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 } from "@/lib/api/cases"; import { usePendingApprovals, type ApprovalSeverity, } from "@/lib/api/chair"; // severity dot per the approved 04-home mockup gate-list (.dot.high/.med/.ok) const SEVERITY_DOT: Record = { high: "bg-danger", medium: "bg-warn", low: "bg-info", ok: "bg-success", }; export default function HomePage() { const { data, isPending, error } = useCases(true); // INV-IA1 pointer: surface the single approvals aggregate on the dashboard, // deep-linking to /approvals (the owner) — never a competing client counter. const { data: approvals } = usePendingApprovals(); const { permits, levies } = useMemo(() => { const permits: Case[] = []; const levies: Case[] = []; (data ?? []).forEach((c) => { const s = subtypeOf(c); if (s === "building_permit") permits.push(c); else if (s === "betterment_levy" || s === "compensation_197") levies.push(c); else permits.push(c); // fallback bucket — keep visible }); return { permits, levies }; }, [data]); return (
ועדת ערר לתכנון ובנייה · ירושלים

עוזר משפטי

מבט-על על הוועדה — תיקים, אישורים ופעילות אחרונה במקום אחד.

{/* KPI row — mockup 04 .kpis (4-up, gold-washed "ממתינים לאישור") */} {/* two-column body — main flow + narrow gold gate rail (mockup 04 .cols). Rail trimmed 360→280 so the cases table gets the width it needs and no longer needs a horizontal scrollbar (chair request). */}
{/* "תיקים לפי סטטוס" (פסים אופקיים) הוסר — פיזור-הסטטוסים מוצג בדונאט "פיזור סטטוסים" בטור-הצד (#1). */} {/* live case tables kept in full (richer than the mockup's single feed) */}

רישוי ובנייה

עררים 1xxx
מעודכן חי

היטל השבחה ופיצויים

עררים 8xxx · 9xxx
מעודכן חי
); }