Shift or scale times for good: everything, or what tags or relationships select
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
Closes #96. - "Shift or scale times…" in the timeline menu, and "Shift or scale these…" in a separation's bar: each time becomes (time − around) × scale + around + offset, exactly, as comparisons align (around 0 is comparison's formula). It applies to everything, to what is tagged or not, or to what is related to the moment or duration the menu was opened on: the same selection as separating (src/time-map.ts; filterMembership shared with filterDocument). Durations' fixed ends are mapped; ends that follow a moment follow it. - The dialog says ahead what will change. In the browser it is one undoable edit, chunked with a progress bar; when everything moves the view follows. - On the server (POST /api/timelines/:id/map-times) it is one save, so one revision, streaming progress as JSON lines: a slice at a time when applied in place, or each stage when the index is rebuilt. The desktop's client gets one JSON reply. - Large desktop .och files are left for #179, as range deletion is. - Tests: time-map unit tests, time-map-postgres, the in-page browser check, and time-map-live-postgres (20,000 moments, both server paths). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/7347c961db9262d1cf5baea8bf618a76c1fad7bd
Related
Open Shift or scale times for good: everything, or what tags or relationships select in the timeline