7.9 KiB
BREEDR Quick Start Guide
Litter Management & Pedigree Visualization
Installation
1. Pull the Feature Branch
git checkout feature/litter-management-and-pedigree
2. Run Database Migration
node server/db/migrate_litter_id.js
You should see:
Running litter_id migration...
✓ Added litter_id column to dogs table
✓ Created index on litter_id
Migration completed successfully!
3. Install Dependencies
cd client
npm install
cd ..
4. Start the Application
npm run dev
The server will start on http://localhost:3000 and the client on http://localhost:5173
Feature 1: Litter Management
Creating Your First Litter
-
Navigate to Litters
- Click "Litters" in the navigation menu
- Click "Add New Litter" button
-
Fill in Litter Details
- Sire (Father): Select from dropdown of male dogs
- Dam (Mother): Select from dropdown of female dogs
- Breeding Date: Date of breeding (required)
- Whelping Date: Expected/actual birth date (optional)
- Expected Puppy Count: Estimated number of puppies
- Notes: Any additional breeding information
-
Save the Litter
- Click "Create Litter"
- Litter appears in the list with format: "Sire x Dam - Date"
Adding Puppies to a Litter
Method 1: Link to Existing Litter (Recommended)
-
Click "Add New Dog"
-
Enter Puppy Details
- Name (required)
- Breed (required)
- Sex (required)
- Birth Date
- Color
- Microchip
-
Select Parent Method
- Choose "Link to Litter" radio button
- Select the litter from dropdown
- Parents are automatically filled!
-
Save
- Click "Add Dog"
- Puppy is now linked to the litter
- Parent relationships are automatically created
Method 2: Manual Parent Selection
-
Click "Add New Dog"
-
Enter Puppy Details
-
Select Parent Method
- Choose "Manual Parent Selection" radio button
- Select Sire from male dogs dropdown
- Select Dam from female dogs dropdown
-
Save
- Puppy is created with selected parents
- No litter association
Viewing Litter Details
- Click on a Litter in the list
- See Litter Information:
- Sire and Dam details
- Breeding and whelping dates
- List of all puppies in the litter
- Actual puppy count vs expected
Editing a Litter
- Click "Edit" on the litter
- Update breeding/whelping dates
- Modify notes
- Note: Cannot change sire/dam after creation
Feature 2: Interactive Pedigree Tree
Viewing a Pedigree
-
From Dog List:
- Click on any dog
- Click "View Pedigree" button
-
Pedigree Opens in Modal
- Shows dog's ancestry tree
- 5 generations displayed
- Color-coded by sex:
- Blue nodes = Males ♂
- Pink nodes = Females ♀
Navigating the Tree
Zoom Controls
- Zoom In: Click "+" button or mouse wheel up
- Zoom Out: Click "-" button or mouse wheel down
- Reset View: Click reset button to center tree
Panning
- Click and Drag: Move the tree around
- Mouse Wheel: Zoom in/out
Node Information
Each node displays:
- Dog name (large text)
- Registration number
- Birth year
- Sex symbol (♂ or ♀)
Reading the Tree
Great-Great-Grandpa ♂
Great-Grandpa ♂
Great-Great-Grandma ♀
Grandpa ♂
Great-Great-Grandpa ♂
Great-Grandma ♀
Great-Great-Grandma ♀
Sire ♂
Great-Great-Grandpa ♂
Great-Grandpa ♂
Great-Great-Grandma ♀
Grandma ♀
Great-Great-Grandpa ♂
Great-Grandma ♀
Great-Great-Grandma ♀
Dog Name
Dam ♀
[... similar structure for dam's side]
Common Workflows
Workflow 1: Breeding a Litter
- ✓ Select breeding pair (sire and dam)
- ✓ Create litter record with breeding date
- ✓ Track whelping date when puppies are born
- ✓ Add each puppy:
- Link to the litter
- Enter individual details
- Assign registration numbers
- ✓ View pedigree of any puppy to see full ancestry
Workflow 2: Recording Historical Dogs
- ✓ Add foundation dogs (no parents)
- ✓ Add their offspring using manual parent selection
- ✓ Continue building the family tree
- ✓ View pedigrees to verify relationships
Workflow 3: Planning a Breeding
- ✓ View pedigrees of potential sire and dam
- ✓ Check for common ancestors
- ✓ Use trial pairing tool (coming soon)
- ✓ Create litter when breeding occurs
Tips & Best Practices
For Litter Management
✅ Do:
- Create the litter record BEFORE adding puppies
- Enter accurate breeding dates for record keeping
- Use meaningful notes (progesterone timing, heat cycle info)
- Link puppies to litters for automatic parent relationships
❌ Don't:
- Don't change sire/dam after litter creation (create new litter instead)
- Don't forget to update whelping date when puppies arrive
- Avoid mixing litter-linked and manually-parented puppies
For Pedigree Viewing
✅ Do:
- Zoom out to see the full tree at once
- Use drag to focus on specific branches
- Click nodes to see additional details
- Reset view if you get lost
❌ Don't:
- Don't try to edit from pedigree view (use dog edit form)
- Avoid excessive zooming (can make nodes too small)
Data Entry Tips
- Registration Numbers: Enter consistently (e.g., "AKC-12345")
- Microchips: Use full 15-digit number
- Birth Dates: Critical for age calculations and sorting
- Breed Names: Keep consistent spelling and capitalization
- Colors: Use standard color terminology for your breed
Troubleshooting
"No such column: sire" Error
Problem: Getting this error when adding a dog
Solution:
- Make sure you ran the migration:
node server/db/migrate_litter_id.js - Restart the server
- Try again
Pedigree Tree Not Loading
Problem: Pedigree modal shows "Loading..." forever
Possible Causes:
- Dog has no parents recorded
- Network issue
- Server not running
Solution:
- Check browser console for errors
- Verify server is running
- Ensure dog has at least one parent recorded
Parents Not Auto-Populating
Problem: Selected a litter but parents didn't fill in
Solution:
- Refresh the page
- Make sure litter has valid sire and dam
- Try selecting the litter again
Can't See All Generations
Problem: Pedigree tree only shows 2-3 generations
This is normal if:
- Older generations don't have parents recorded
- Foundation dogs have no ancestry
- You need to add more historical data
Keyboard Shortcuts
Coming in future release
Ctrl/Cmd + N- New DogCtrl/Cmd + L- New LitterCtrl/Cmd + P- View PedigreeEsc- Close Modal
Next Features Coming Soon
🔜 Trial Pairing Simulator
- Calculate COI before breeding
- See common ancestors
- Risk assessment
🔜 Heat Cycle Tracking
- Track progesterone levels
- Breeding date recommendations
- Calendar view
🔜 PDF Pedigree Export
- Print-ready pedigrees
- Custom formatting
- Multiple generations
Getting Help
- Documentation: FEATURE_IMPLEMENTATION.md
- Roadmap: ROADMAP.md
- Installation: INSTALL.md
- README: README.md
Video Tutorials
Coming soon - check back for video walkthroughs of these features!
- Creating Your First Litter
- Adding Puppies to a Litter
- Navigating Pedigree Trees
- Advanced Breeding Records
Congratulations!
You're now ready to use BREEDR's litter management and pedigree visualization features. Start by creating a litter or viewing a pedigree tree!
Happy Breeding! 🐶