fix(missing-precedents): load full set so accordion counts match the header #314

Merged
chaim merged 1 commits from worktree-mp-loadall into main 2026-06-20 13:35:06 +00:00
Owner

הבעיה

הטבלה משכה limit:200, אבל ה-header מציג את ספירת-הפתוחים האמיתית (~497, שאילתת COUNT נפרדת). עם האקורדיון זה נחשף: הסעיפים הסתכמו בדיוק ל-200 (למשל 16 ועדה / 173 יומון / 11 אחר) — ו-90 מ-106 שורות-הוועדה (החשובות, "צוטט ע"י דפנה") הוסתרו מעבר לשורה 200. אמיתי: ועדה 106 / יומון 328 / אחר 63.

התיקון

  • web-ui: limit 200 → 1000 — כל הפתוחים נטענים; ספירות-האקורדיון (מהסט הטעון) שוות כעת ל-header.
  • backend: תקרת-list 500 → 2000 כדי לאפשר זאת (תגובה נשארת מאות KB).

לוגיקה/נתון בלבד — אין שינוי ויזואלי (חריג-באג משער-העיצוב). tsc/py_compile נקיים.

Follow-up: כשהתור (יומונים גדלים יומית) יתקרב לתקרה — לעבור לספירות-per-bucket בצד-שרת + pagination/virtualization (דרך שער-העיצוב).

🤖 Generated with Claude Code

## הבעיה הטבלה משכה `limit:200`, אבל ה-header מציג את ספירת-הפתוחים האמיתית (~497, שאילתת COUNT נפרדת). עם האקורדיון זה נחשף: הסעיפים הסתכמו בדיוק ל-200 (למשל 16 ועדה / 173 יומון / 11 אחר) — ו-**90 מ-106 שורות-הוועדה** (החשובות, "צוטט ע"י דפנה") **הוסתרו** מעבר לשורה 200. אמיתי: ועדה 106 / יומון 328 / אחר 63. ## התיקון - **web-ui:** `limit` 200 → **1000** — כל הפתוחים נטענים; ספירות-האקורדיון (מהסט הטעון) שוות כעת ל-header. - **backend:** תקרת-list 500 → **2000** כדי לאפשר זאת (תגובה נשארת מאות KB). לוגיקה/נתון בלבד — אין שינוי ויזואלי (חריג-באג משער-העיצוב). `tsc`/`py_compile` נקיים. **Follow-up:** כשהתור (יומונים גדלים יומית) יתקרב לתקרה — לעבור לספירות-per-bucket בצד-שרת + pagination/virtualization (דרך שער-העיצוב). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chaim added 1 commit 2026-06-20 13:34:57 +00:00
fix(missing-precedents): load full set so accordion counts match the header
All checks were successful
G12 Leak-Guard / leak-guard (pull_request) Successful in 4s
Lint — undefined names / undefined-names (pull_request) Successful in 11s
dd0312e457
The table fetched limit:200 while the header shows the true open count (~497,
via a separate COUNT). With accordion grouping this became visible: sections
summed to exactly 200 (e.g. 16 chair / 173 digest / 11 other) — and 90 of the
106 committee rows (the high-value "cited by Dafna" ones) were hidden past row
200. True buckets: chair 106 / digest 328 / other 63.

- web-ui: list limit 200 → 1000 so all open rows load; accordion section counts
  (computed from the loaded set) now equal the header total.
- backend: list cap 500 → 2000 to allow it (response stays a few hundred KB).

Logic/data only — no visual change (bug-fix exception to the design gate).
tsc --noEmit clean; py_compile clean.

Follow-up: when the backlog (digests grow daily) approaches the cap, move to
server-side per-bucket counts + pagination/virtualization (design gate).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
chaim merged commit 2ae68c5896 into main 2026-06-20 13:35:06 +00:00
chaim deleted branch worktree-mp-loadall 2026-06-20 13:35:06 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ezer-mishpati/legal-ai#314