Measures: balances, durations at start or end, and totals that split the window (#595)
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
A measure's values can be changes with a running balance: - Declarations gain `durations` ("start", the default, or "end": where a duration's change applies, for totals and balance alike) and `balance` ({at: "start" | "end" | exact time, value}), validated in the editor, on the server and by the desktop store. - The editor's index keeps a change index: moments' changes (as before) and durations' at their start or end per measure, rebuilt when durations or the moments they follow change. An ongoing duration counted at its end applies nothing yet. - Summaries' totals now split the window: each covers from its first time to the next one's (the first from the window's start, the last to its end), so every change in the window counts once, long durations' too. - Frames carry each anchored measure's `balances` (before the window's changes, after them) and each summary's `balanceAfter`; changes at one time apply together. Servers and desktop files still give their totals as before; their change indexes follow. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/circagraph/timeline-app/commit/8ccd15d35221c7911f97eeb3e14c0b65443835c9