Make durations first-class entities with fixed or moment-anchored endpoints
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
Durations move out of moment metadata into a top-level `durations` list. Each has its own ID, title, notes and metadata, and each endpoint is an exact time or `{"moment": id}` that follows a moment. Legacy links convert on read into durations anchored to both original moments; `npm run migrate` converts stored server timelines once. - Browser, PostgreSQL and SQLite build exact interval trees over the new definitions; PostgreSQL stores definitions on index rows and SQLite in a constrained `durations` table. Bands open by ID via a `duration` query. - Sparse server and desktop saves send `durationChanges`; deleting a moment pins durations that follow it at its last time instead of deleting them, and undo restores the anchor. Merges compare durations by ID. - A duration dialog edits title, notes, plugin fields, metadata and each endpoint (fixed time with the date/time dialog, or a chosen moment). + Duration and "New duration starting here" create them. - Plugins gain optional `targets`; colors and hover cards apply to durations by default, other plugins stay moment-only. Fixes #20 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Ti36soiZpKdSxKfvQLEcfY https://github.com/openchronology/timeline-app/commit/f2686da6ec02c8acab6d96bce4688aa0db274a67
Related
Open Make durations first-class entities with fixed or moment-anchored endpoints in the timeline