Relate moments and durations, draw relationship arcs, and separate by connections
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
Entities can be linked n-to-n with undirected relationships (top-level `relationships`, canonical pairs of moment/duration references, no self-links). A "Related to" section in moment details and the duration dialog lists direct relations 25 at a time, counts everything connected through other links, links new entities found by search, and unlinks with undo. "Separate related" and "Separate all connected" move an entity and its direct or transitive relations into a read-only track above the rest. Relationships are indexed as intervals between their endpoints' times in the duration interval tree, so overviews return only the arcs touching the window (capped at 256, short arcs collapsed) without loading the timeline. PostgreSQL and SQLite store links in edge tables indexed from both ends and compute transitive reach with recursive CTEs; sparse saves send idempotent relationship changes, entity deletion removes links, and merges treat links as a set. Fixes #22 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Ti36soiZpKdSxKfvQLEcfY https://github.com/openchronology/timeline-app/commit/2f57db43d4c6154b186b1ee32fefcde064f229f3