feat: expand catalog filters
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-10 03:00:20 -04:00
parent b036092775
commit 673701fa7a
12 changed files with 126 additions and 3 deletions
@@ -19,6 +19,9 @@ export function createSearchQuery({
query = "",
category,
conditionId,
setName,
eventName,
tag,
minPriceMinor,
maxPriceMinor,
page = 1,
@@ -70,6 +73,15 @@ export function createSearchQuery({
...(typeof conditionId === "string" && conditionId.trim().length > 0
? { conditionId: conditionId.trim() }
: {}),
...(typeof setName === "string" && setName.trim().length > 0
? { setName: setName.trim() }
: {}),
...(typeof eventName === "string" && eventName.trim().length > 0
? { eventName: eventName.trim() }
: {}),
...(typeof tag === "string" && tag.trim().length > 0
? { tag: tag.trim().toLowerCase() }
: {}),
...(typeof minPriceMinor === "number" ? { minPriceMinor } : {}),
...(typeof maxPriceMinor === "number" ? { maxPriceMinor } : {}),
page,