From f3590f89b0799c5d31a75938e2678ecb5ebfe73d Mon Sep 17 00:00:00 2001 From: kiminkim724 Date: Tue, 29 Apr 2025 20:33:10 -0400 Subject: [PATCH 1/2] Increase refinement limit --- components/search/common.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/components/search/common.tsx b/components/search/common.tsx index abc654e26..fb6a15522 100644 --- a/components/search/common.tsx +++ b/components/search/common.tsx @@ -30,7 +30,7 @@ export function getServerConfig(): TypesenseInstantsearchAdapterOptions["server" } function RefinementList({ attribute }: { attribute: string }) { - useRefinementList({ attribute }) + useRefinementList({ attribute, limit: 500 }) return null } @@ -39,13 +39,13 @@ export function VirtualFilters({ type }: { type: "bill" | "testimony" }) { type === "testimony" ? ["authorDisplayName", "court", "position", "billId", "authorRole"] : [ - "court", - "currentCommittee", - "city", - "primarySponsor", - "cosponsors", - "topics.lvl1" - ] + "court", + "currentCommittee", + "city", + "primarySponsor", + "cosponsors", + "topics.lvl1" + ] return ( <> From 9a1e95af9852335e6698c7682813de25a1872294 Mon Sep 17 00:00:00 2001 From: kiminkim724 Date: Tue, 29 Apr 2025 20:41:33 -0400 Subject: [PATCH 2/2] Fix prettier --- components/search/common.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/search/common.tsx b/components/search/common.tsx index fb6a15522..357d35423 100644 --- a/components/search/common.tsx +++ b/components/search/common.tsx @@ -39,13 +39,13 @@ export function VirtualFilters({ type }: { type: "bill" | "testimony" }) { type === "testimony" ? ["authorDisplayName", "court", "position", "billId", "authorRole"] : [ - "court", - "currentCommittee", - "city", - "primarySponsor", - "cosponsors", - "topics.lvl1" - ] + "court", + "currentCommittee", + "city", + "primarySponsor", + "cosponsors", + "topics.lvl1" + ] return ( <>