feat: Refactor specialty display logic and enhance specialty filtering

- Introduced SpecialtyChips component to manage the display of doctor's specialties with a primary specialty and a count of additional specialties.
- Updated ItemDoctor component to utilize SpecialtyChips for better UI presentation.
- Enhanced PosterLight and Poster components to display primary specialties and a text line for sub-specialties.
- Implemented nextSpecialtyFilter function to improve specialty selection logic in the Content component.
- Updated search functionality to allow searching by both doctor name and specialty.
- Added new specialties to specialties.json for better coverage.
- Created sync-specialties script to synchronize specialties data with the backend during build.
- Added tests for new components and helper functions to ensure functionality and reliability.
This commit is contained in:
hamed
2026-08-08 17:19:22 +03:30
parent 94c22de8dd
commit 56e264e44c
16 changed files with 799 additions and 52 deletions
+46 -1
View File
@@ -844,5 +844,50 @@
"status": 1,
"weight": 0,
"parent_id": 19
},
{
"id": 167,
"uuid": "86b4cebc-ca17-4c4e-9b1e-c1310ab0521f",
"name": "جراحی لاپاراسکوپی",
"slug": "جراحی-لاپاراسکوپی",
"status": 1,
"weight": 0,
"parent_id": 13
},
{
"id": 168,
"uuid": "6828d049-f0b3-421e-930a-4b6ac57c75f1",
"name": "جراح تیروئید",
"slug": "جراح-تیروئید",
"status": 1,
"weight": 0,
"parent_id": 13
},
{
"id": 169,
"uuid": "fbce44e2-d9b6-412e-a64a-bca4d27a6969",
"name": "جراح گوارش",
"slug": "جراح-گوارش",
"status": 1,
"weight": 0,
"parent_id": 13
},
{
"id": 170,
"uuid": "94fe785b-4886-4710-9619-a7d52050ed40",
"name": "جراحی سرطانها",
"slug": "جراحی-سرطانها",
"status": 1,
"weight": 0,
"parent_id": 13
},
{
"id": 171,
"uuid": "57a5cc39-602e-4e0a-80df-ffd073d8c3d2",
"name": "جراحی جنرال",
"slug": "جراحی-جنرال",
"status": 1,
"weight": 0,
"parent_id": 13
}
]
]