@@ -116,211 +356,61 @@ export function MissingPrecedentsTable({ status, q, legalTopic }: Props) {
);
}
- return (
- <>
+ if (isPending) {
+ return (
-
-
- פסיקה
- נושא
- תיק
- צוטט ע״י
- סטטוס
- נוצר
-
-
-
+
- {isPending ? (
-
- ) : !data?.items.length ? (
-
-
- אין פסיקות חסרות בקריטריונים הנוכחיים.
-
-
- ) : (
- data.items.map((mp) => (
- setOpenId(mp.id)}
- >
-
- {/* Single line when there's no distinct case_name — the old
- two-line layout repeated the citation (name fell back to a
- truncation of the same citation). Show the name row only
- when it adds information. */}
- {mp.case_name && mp.case_name.trim() ? (
- <>
-
- {mp.case_name}
-
-
- {mp.citation}
-
- >
- ) : (
-
- {mp.citation}
-
- )}
-
-
- {mp.legal_topic || "—"}
-
-
- {mp.cited_by_decisions?.length ? (
- /* committee decision(s) that cite this missing ruling
- (corpus citation-graph bridge) */
-
-
- {mp.cited_by_decisions[0]}
-
- {mp.cited_by_decisions.length > 1 ? (
-
- +{mp.cited_by_decisions.length - 1}
-
- ) : null}
-
- ) : mp.cited_in_case_number ? (
- e.stopPropagation()}
- className="text-sm text-navy hover:text-gold-deep inline-flex items-center gap-1"
- >
- {mp.cited_in_case_number}
-
-
- ) : (
- —
- )}
-
-
- {mp.cited_by_chairs?.length ? (
- /* cited by a committee DECISION in the corpus → show the
- chair who relied on it (e.g. דפנה תמיר). Bridge from
- precedent_internal_citations; takes priority over the
- generic discovery-source chips. */
- <>
-
- {mp.cited_by_chairs[0]}
-
- {mp.cited_by_chairs.length > 1 ? (
-