feat: add public condition search filters
Quality / test (push) Canceled after 0s

Add public condition lookup options, condition filtering, and stable price/recent sorting with URL-backed catalog controls.
This commit is contained in:
2026-09-09 02:06:15 -04:00
parent f4e4685ecc
commit 6dd138260b
8 changed files with 52 additions and 10 deletions
@@ -18,6 +18,7 @@ export function normalizeSearchQuery(value) {
export function createSearchQuery({
query = '',
category,
conditionId,
minPriceMinor,
maxPriceMinor,
page = 1,
@@ -58,6 +59,7 @@ export function createSearchQuery({
return {
text,
...(typeof category === 'string' && category.trim().length > 0 ? { category: category.trim() } : {}),
...(typeof conditionId === 'string' && conditionId.trim().length > 0 ? { conditionId: conditionId.trim() } : {}),
...(typeof minPriceMinor === 'number' ? { minPriceMinor } : {}),
...(typeof maxPriceMinor === 'number' ? { maxPriceMinor } : {}),
page,