### 馃幆 **Acceptance Criteria** <!-- Define the conditions that must be met for this story to be complete: --> - [ ] `/api/gallery` route accepts an optional ?tag= (or ?category=) param and applies it to the Payload query before pagination - [ ] Each page returned respects the limit (12) after filtering, not before - [ ] Changing the active filter resets the loaded image list and re-fetches from page 1 - [ ] hasMore correctly reflects whether more filtered results exist - [ ] Client-side filter UI is updated to pass the selected filter into the fetch call instead of filtering in-memory results --- ### 馃搳 **Definition of Done (DoD)** <!-- Checklist of requirements that must be fulfilled before the issue can be considered complete --> - [ ] Acceptance criteria met - [ ] Agreed tests written - [ ] Agreed documentation in GitHub wiki - [ ] PR reviewed --- ### 馃敆 **Dependencies** - #241 - #244 --- ### 馃摎 **Additional Context** <!-- Include screenshots, wireframes, or references that provide more context. -->
馃幆 Acceptance Criteria
/api/galleryroute accepts an optional ?tag= (or ?category=) param and applies it to the Payload query before pagination馃搳 Definition of Done (DoD)
馃敆 Dependencies
馃摎 Additional Context