Compare commits

..

1 Commits

Author SHA1 Message Date
Flea Flicker 7d27fb85c6 fix(GRO-1470): add portal PATCH /pets/:id persistence + expand GET /pets response
CI / Lint & Typecheck (pull_request) Successful in 16s
CI / Test (pull_request) Successful in 20s
CI / Build & Push Docker Image (pull_request) Successful in 30s
- Add PATCH /api/portal/pets/:id endpoint for client-facing pet profile saves
  (handlePetSave was calling this but the route didn't exist)
- Expand GET /api/portal/pets to return full pet fields including coatType,
  petSizeCategory, cutStyle, shampooPreference, specialCareNotes, customFields
- Add portalPetUpdateSchema Zod validator matching the staff-facing pets schema
- Add 404 guard for not-found updates, 403 for client-pet mismatch
- Return full updated pet record in PATCH response

Refs: GRO-1178, GRO-1470

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-21 19:28:47 +00:00

Diff Content Not Available