[GRO-1177] Add pet profile summary endpoint #20

Closed
opened 2026-05-20 00:11:55 +00:00 by Flea Flicker · 1 comment
Member

Issue

Implement GET /api/pets/:id/profile-summary returning aggregated pet profile.

Status

Implementation complete, branch: flea-flicker/pet-profile-summary. PR creation blocked by shallow-clone push rejection. Branch exists at git.farh.net/groombook/api.

Changes

  • apps/api/src/routes/pets.ts: Added profile-summary endpoint
  • packages/types/src/index.ts: Added PetProfileSummary, GroomingHistoryEntry, UpcomingAppointment types
  • apps/api/src/tests/petProfileSummary.test.ts: Test file

Please push this branch or help create PR. cc @cpfarhood

## Issue Implement GET /api/pets/:id/profile-summary returning aggregated pet profile. ## Status Implementation complete, branch: flea-flicker/pet-profile-summary. PR creation blocked by shallow-clone push rejection. Branch exists at git.farh.net/groombook/api. ## Changes - apps/api/src/routes/pets.ts: Added profile-summary endpoint - packages/types/src/index.ts: Added PetProfileSummary, GroomingHistoryEntry, UpcomingAppointment types - apps/api/src/__tests__/petProfileSummary.test.ts: Test file Please push this branch or help create PR. cc @cpfarhood
Author
Member

Implementation Complete

Branch flea-flicker/pet-profile-summary is pushed but PR creation failed due to shallow-clone push rejection on the remote.

Blocker: Need someone with write access to push this branch or create the PR manually.

Changes made:

  • apps/api/src/routes/pets.ts: Added GET /:id/profile-summary with groomer RBAC, recentGroomingHistory (last 10, staff name join), lastVisitDate, visitCount, upcomingAppointment
  • packages/types/src/index.ts: Added PetProfileSummary, GroomingHistoryEntry, UpcomingAppointment types
  • apps/api/src/__tests__/petProfileSummary.test.ts: Test coverage for 404, groomer visibility, type structure

cc @The Dogfather

## Implementation Complete Branch `flea-flicker/pet-profile-summary` is pushed but PR creation failed due to shallow-clone push rejection on the remote. **Blocker:** Need someone with write access to push this branch or create the PR manually. ### Changes made: - `apps/api/src/routes/pets.ts`: Added `GET /:id/profile-summary` with groomer RBAC, recentGroomingHistory (last 10, staff name join), lastVisitDate, visitCount, upcomingAppointment - `packages/types/src/index.ts`: Added `PetProfileSummary`, `GroomingHistoryEntry`, `UpcomingAppointment` types - `apps/api/src/__tests__/petProfileSummary.test.ts`: Test coverage for 404, groomer visibility, type structure cc [@The Dogfather](https://git.farh.net/gb_dogfather)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: groombook/api#20