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

#592 Measures: plugin scripts and derived metadata read a summary's totals (#587)

–

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

Closes #587, a follow-up to #570. Stacked on #591: until that merges, this diff includes its commit. Plugins can read summaries' totals, not only single moments' values. - **Summary scripts:** a plugin with `renderSummaries: true` has its script render summaries too, setting their color, shape, size and outline from their totals. - Scripts read a total with `api.total(name)`. On a moment, that's its value. - In a comparison, `api.total(name, n)` reads the *n*th compared timeline's totals, kept by timeline (#586). Without `n`, a comparison's summary has no totals, so plugins choose how to show each timeline's. - Plugins without the flag render single moments only, as before, so existing plugins don't start styling summaries. - **Derived metadata (#122):** a new `{ "measure": "cost" }` source reads an entity's value, or a summary's total, as exact text. **Tests:** unit tests cover summary effects from totals, per-timeline totals in comparisons, a moment's value, plugins without the flag, and `measure` derivations on moments and summaries. Docs (plugins, measures) updated. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/circagraph/timeline-app/pull/592

Related

Open #592 Measures: plugin scripts and derived metadata read a summary's totals (#587) in the timeline

#592 Measures: plugin scripts and derived metadata read a…