circagraph
Sign inSign up

openchronology/timeline-app on GitHub

The OpenChronology repository on GitHub, mirrored by och-import-github: issues and pull requests as durations (ongoing while open), what happened to them as moments, plus releases, milestones, commits and branches. The Branches view shows the most recently active branches each in a track of its own.

Source: https://github.com/openchronology/timeline-app

3,131 moments · 2026-10-05 CE 20:21:49 UTC – 2026-11-16 CE 12:10:45 UTC · by @athan · @athan

#596 Measures: balances, durations at start or end, and totals that split the window (#595)

–

  • github
  • github/openchronology/timeline-app
  • github/openchronology/timeline-app#596
  • pull request
  • state:merged

Part 1 of #595: declarations, the editor's change index, totals that split the window, and balances in the editor's frames. - **Declarations** gain two fields. Both are validated in the editor, on the server and by the desktop store: - `durations`: `"start"` (the default) or `"end"`, where a duration's change applies. It governs totals and balance alike. - `balance`: `{ at: "start" | "end" | , value }`. - **Change index:** the editor's index keeps moments' changes, as before, plus durations' changes at their start or end, as each measure says. - The durations part is rebuilt when durations, or the moments they follow, change. - An ongoing duration counted at its end applies nothing yet. - **Totals split the window:** each summary covers from its first time up to the next one's; the first starts at the window's start and the last runs to its end. Every change in the window counts once, long durations' included, which before counted in no summary. - **Balances:** frames carry each anchored measure's `balances` (before the window's changes, and after them) and each summary's `balanceAfter`. Changes at one time apply together. **Not yet:** servers and desktop files still give their totals as before. Their change indexes are parts 2 and 3, and the editor's display of balances is part 4. **Tests:** - `test/measure-balance.test.mjs` checks declarations, totals that split the window, and balances before and after the window and after each summary, against hand sums. It covers all three kinds of anchor, durations counted at their end, ongoing durations, moments moving the ends that follow them, and other edits. - The #576 test now expects long durations' values in the window's totals. - The Rust validation test covers the new keys. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/circagraph/timeline-app/pull/596

Related

Open #596 Measures: balances, durations at start or end, and totals that split the window (#595) in the timeline

#596 Measures: balances, durations at start or end, and…