feat(halacha): טאבים נדחו/אושרו + שחזור הלכה + הסרת placeholders עם שמות
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 43s

- מוסיף טאב "נדחו" לדף האישורים: הלכות שנדחו מופיעות עם כפתורי "אשר" (ישירות) ו-"שחזר לתור"
- מוסיף טאב "אושרו": הלכות שאושרו עם "בטל אישור" ו-"דחה"
- ספירה צבועה על כל טאב (זהב/אדום/כחול)
- מוסיף useHalachotByStatus hook ב-API
- מסיר placeholders עם שמות ("דפנה תמיר") משדות יו"ר

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-06 12:07:49 +00:00
parent f5926506fe
commit c83d0162ca
4 changed files with 341 additions and 76 deletions

View File

@@ -576,6 +576,19 @@ export function useHalachotPending(limit = 200) {
});
}
export function useHalachotByStatus(status: string, limit = 300) {
return useQuery({
queryKey: libraryKeys.halachot({ review_status: status, limit: String(limit) }),
queryFn: ({ signal }) =>
apiRequest<{ items: Halacha[]; count: number }>(
`/api/halachot?review_status=${encodeURIComponent(status)}&limit=${limit}`,
{ signal },
),
staleTime: 10_000,
refetchOnMount: "always",
});
}
export type HalachaPatch = Partial<{
review_status: "pending_review" | "approved" | "rejected" | "published" | "deferred";
reviewer: string;