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:
@@ -141,7 +141,11 @@ export function MissingPrecedentsTable({ status, q, legalTopic }: Props) {
|
||||
status: status === "" ? undefined : status,
|
||||
q,
|
||||
legalTopic,
|
||||
limit: 200,
|
||||
// Load the full set so the accordion section counts (chair/digest/other)
|
||||
// reflect the real totals — at limit:200 the page showed only the first
|
||||
// page (e.g. 16 of 106 committee rows) while the header showed the true
|
||||
// count, so the sections didn't sum to it. Backend caps at 2000.
|
||||
limit: 1000,
|
||||
});
|
||||
const del = useDeleteMissingPrecedent();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user