Merge pull request 'fix(missing-precedents): load full set so accordion counts match the header' (#314) from worktree-mp-loadall into main
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 42s
G12 Leak-Guard / leak-guard (push) Successful in 4s
Lint — undefined names / undefined-names (push) Successful in 10s

This commit was merged in pull request #314.
This commit is contained in:
2026-06-20 13:35:05 +00:00
2 changed files with 6 additions and 2 deletions

View File

@@ -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();

View File

@@ -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.