fix(missing-precedents): load full set so accordion counts match the header
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>
This commit is contained in:
@@ -7877,7 +7877,7 @@ async def missing_precedents_list(
|
||||
case_id=case_uuid,
|
||||
legal_topic=legal_topic.strip() or None,
|
||||
q=q.strip() or None,
|
||||
limit=max(1, min(int(limit), 500)),
|
||||
limit=max(1, min(int(limit), 2000)),
|
||||
offset=max(0, int(offset)),
|
||||
)
|
||||
# Counters useful for the sidebar badge.
|
||||
|
||||
Reference in New Issue
Block a user