Compare commits

..

1 Commits

Author SHA1 Message Date
Flea Flicker a527ad5165 fix(GRO-1470): add portal PATCH /pets/:id persistence + expand GET /pets response
CI / Lint & Typecheck (pull_request) Successful in 15s
CI / Test (pull_request) Successful in 20s
CI / Build & Push Docker Image (pull_request) Successful in 13s
- Add PATCH /api/portal/pets/:id endpoint — handlePetSave was calling this
  route but it did not exist, causing persistence failures on pet profile saves
- Expand GET /api/portal/pets to return full pet fields (coatType,
  petSizeCategory, cutStyle, shampooPreference, specialCareNotes,
  customFields) instead of the previous truncated 7-field response
- Add portalPetUpdateSchema Zod validator matching staff-facing pets schema
- 404 guard when pet not found; 403 when pet belongs to different client
- Return full updated pet record in PATCH response

Refs: GRO-1178, GRO-1470

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

Diff Content Not Available