Commit Graph

10 Commits

Author SHA1 Message Date
gbanyan
fb0be3964f Add collision detection for family overlaps and second line labels
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
Major changes:
- Implement intelligent collision detection and resolution for complex
  family structures (divorce/remarriage scenarios)
- Rewrite generation assignment with constraint propagation algorithm
  to ensure spouses are always in the same generation
- Add FamilyUnit concept for grouping parents and children
- Add second line label support with custom text, birth year, death year,
  and age display options

Files modified:
- PedigreeLayout.ts: Add collision detection, family units, and improved
  generation assignment
- types.ts: Add FamilyUnit interface and extend PersonMetadata
- useD3Pedigree.ts: Render second line labels
- PropertyPanel.tsx: Add UI for editing second line labels
- PropertyPanel.module.css: Add styles for inline form groups

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 01:23:14 +08:00
gbanyan
597ca0eaa7 Fix label and connection line positioning
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
- Move label closer to symbol (y = symbolSize/2 + 15)
- Increase childDropHeight from 30 to 50 to place connection lines below labels

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 11:26:31 +08:00
gbanyan
f86cf3b887 Adjust the label a little
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
2025-12-16 11:18:50 +08:00
gbanyan
7c2a624130 Add welcome modal with author info and privacy policy
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
Features:
- Display welcome popup on first visit
- Auto-detect browser language (Chinese/English)
- Show author motivation (Usher syndrome research support)
- Privacy policy: no data collection, browser-only operations
- Use localStorage to remember dismissal
- Responsive design for mobile devices

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 01:20:24 +08:00
gbanyan
b72b8e2811 Add Online Demo link to README
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 23:34:31 +08:00
gbanyan
41333f74ad Add GitHub Actions workflow for GitHub Pages deployment
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
- Auto-deploy on push to main branch
- Manual trigger via workflow_dispatch
- Uses Node.js 20, npm ci for reproducible builds
- Deploys dist/ folder to GitHub Pages

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 23:30:38 +08:00
gbanyan
820679df66 Add Traditional Chinese README with language switching
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
- Create README.zh-TW.md with full Traditional Chinese translation
- Keep professional terms (NSGC, PED, Phenotype, etc.) in English
- Add language switching links at the top of both README files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 23:18:24 +08:00
gbanyan
9ba52db8b5 Fix parent-child connection lines and PED export label
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
Fixes:
- Connection lines now start directly from the spouse line (parentY)
  instead of below the parent symbols (parentY + halfSymbol), ensuring
  lines connect properly without gaps
- PED export now uses metadata.label instead of internal ID, so user-
  defined labels are preserved in exported files. Parent references
  (fatherId, motherId) also use the label mapping for consistency.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 21:18:19 +08:00
gbanyan
07a4902e45 Add relationship child creation, auto-align, delete shortcut, and improve UX
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
Features:
- Add "Add Child" buttons (Male/Female/Unknown) in RelationshipPanel
  to create children directly from a selected relationship
- Add "Auto Align" button in toolbar to reset all element positions
- Add Delete/Backspace keyboard shortcut to delete selected elements
- Add text labels to all toolbar buttons for better discoverability

Documentation:
- Update README with Node.js installation instructions for beginners
- Add npm install step for first-time setup
- Document keyboard shortcuts and relationship editing features
- Add Windows-specific instructions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-14 22:19:13 +08:00
gbanyan
8b07e483d2 Initial commit
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
2025-12-14 21:53:34 +08:00