Tree view: configurable generation depth (ancestors/descendants + All) #40

Merged
justin merged 1 commits from configurable-tree-depth into main 2026-06-08 22:21:05 -04:00
Owner

Depth was hardcoded (3 up, 2 down). Adds a Generations controls row to set ancestors (↑) and descendants (↓) independently around whoever is focused — each a slider + number stepper, with an All toggle. Changes apply to the live chart without a rebuild. Fan mode uses the ancestor depth (capped at 8 to avoid the radial 2^n blow-up); its descendants control is disabled with a note.

tsc clean; build passes.

🤖 Generated with Claude Code

Depth was hardcoded (3 up, 2 down). Adds a **Generations** controls row to set ancestors (↑) and descendants (↓) independently around whoever is focused — each a **slider + number stepper**, with an **All** toggle. Changes apply to the live chart without a rebuild. Fan mode uses the ancestor depth (capped at 8 to avoid the radial 2^n blow-up); its descendants control is disabled with a note. tsc clean; build passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
justin added 1 commit 2026-06-08 22:20:20 -04:00
Depth was hardcoded (3 ancestors, 2 descendants). Add a controls row to set
each direction independently — a slider plus a number stepper, with an "All"
toggle per direction — applied around whoever is currently focused.

- ancestor/descendant depth held in state; effective value is a large cap
  when "All" is on (the chart only renders people that exist, so the cap is
  free).
- changes apply to the live chart via setAncestryDepth/setProgenyDepth +
  updateTree without a full rebuild.
- fan mode (ancestors only) takes the ancestor depth via its `generations`
  prop, capped at 8 to avoid the radial layout's 2^n blow-up; its descendants
  control is disabled with a note.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Justin Paul <justin@jpaul.me>
justin merged commit f93327f5d3 into main 2026-06-08 22:21:05 -04:00
justin deleted branch configurable-tree-depth 2026-06-08 22:21:05 -04:00
Sign in to join this conversation.