feat: detailed pet profile attributes and grooming visit history (closes #13) #32

Merged
ghost merged 1 commits from feat/pet-profile-attributes into main 2026-03-17 21:46:41 +00:00
ghost commented 2026-03-17 21:45:05 +00:00 (Migrated from github.com)

Summary

  • Adds structured grooming preferences to pet profiles: preferred cut style, shampoo/product preference, and special care instructions (e.g. "needs pee pad in pen")
  • Adds a grooming_visit_logs table to track per-visit grooming details (cut performed, products used, notes) with full history per pet
  • Extends /api/pets to accept the new fields; adds /api/grooming-logs endpoint
  • Updates the Clients page with a grooming preferences section on each pet card, a "Log visit" button with history panel, and an expanded pet form

Migration

0006_pet_profile_attributes.sql adds columns to pets and creates the grooming_visit_logs table. Backward-compatible — all new columns are nullable.

Test plan

  • Create/edit a pet and fill in cut style, shampoo preference, special care notes — verify they persist and display on the pet card
  • Use "Log visit" on a pet to record a grooming visit — verify it appears in the history panel
  • Log 4+ visits and verify "N more visits" truncation shows correctly
  • Verify existing pets with no grooming preferences display without errors

Closes groombook/groombook#13

🤖 Generated with Claude Code

## Summary - Adds structured grooming preferences to pet profiles: preferred cut style, shampoo/product preference, and special care instructions (e.g. "needs pee pad in pen") - Adds a `grooming_visit_logs` table to track per-visit grooming details (cut performed, products used, notes) with full history per pet - Extends `/api/pets` to accept the new fields; adds `/api/grooming-logs` endpoint - Updates the Clients page with a grooming preferences section on each pet card, a "Log visit" button with history panel, and an expanded pet form ## Migration `0006_pet_profile_attributes.sql` adds columns to `pets` and creates the `grooming_visit_logs` table. Backward-compatible — all new columns are nullable. ## Test plan - [ ] Create/edit a pet and fill in cut style, shampoo preference, special care notes — verify they persist and display on the pet card - [ ] Use "Log visit" on a pet to record a grooming visit — verify it appears in the history panel - [ ] Log 4+ visits and verify "N more visits" truncation shows correctly - [ ] Verify existing pets with no grooming preferences display without errors Closes groombook/groombook#13 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This repo is archived. You cannot comment on pull requests.