feat: full symptoms filtering system — backend API, megamenu pills, sidebar server-side filter, PDP tags

This commit is contained in:
parsa aghaei committed 2026-07-15 15:03:09 +03:30
1 parent 4676f3a592
commit 6dafe86344
7 files changed
+124 -27

No files matched your search

+5 -1
View File
@@ -22,7 +22,11 @@ export default async function Shop({ searchParams }: { searchParams: Promise<{ [
const category = typeof resolvedParams.category === 'string' ? resolvedParams.category : "all";
const search = typeof resolvedParams.search === 'string' ? resolvedParams.search : "";
const petType = typeof resolvedParams.petType === 'string' ? resolvedParams.petType : "all";
const symptoms = typeof resolvedParams.symptoms === 'string' ? resolvedParams.symptoms : "";
// Support both ?symptoms= (multi, from sidebar URL state) and ?symptom= (single, from megamenu/PDP links)
const symptomsParam = typeof resolvedParams.symptoms === 'string' ? resolvedParams.symptoms : "";
const symptomSingle = typeof resolvedParams.symptom === 'string' ? resolvedParams.symptom : "";
const symptoms = symptomsParam || (symptomSingle ? symptomSingle : "");
return (
<ArchivePage