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

#561 Summarize separated tracks like moments, and hide the empty ones

–

  • github
  • github/openchronology/timeline-app
  • github/openchronology/timeline-app#561
  • feature/track-summaries
  • pull request
  • state:merged

Closes #560. ## Empty tracks A separation's track with nothing in view (no group or band meeting the view) isn't drawn. The tracks below close up, and the stage shrinks with them (#558). The rest of the timeline is always drawn. Panning or zooming to a separation's events brings its track back. ## Spans too close to draw apart A separation that disjoins at d and unites into track Y at u, where u − d is less than the grouping distance (`viewport.threshold`, as moments group): - **Summary:** its groups that meet [d, u] and the bands that begin in it become one summary on Y, e.g. `3 moments · 1 duration`. A lone moment or duration moves as itself. - **Neighbours:** the summary takes in Y's groups while the whole stays narrower than the grouping distance. - **Chains:** spans uniting into spans that are themselves too narrow collapse in turn (X into Y into main). - **Drawing:** its disjoin and union curves aren't drawn. Arcs to what it held end on Y's axis, and arcs to a hidden track on the rest. - **Empty after collapsing:** if that leaves X with nothing in view, X isn't drawn. - **Opening the summary:** it lists its members from the tracks they came from. A `ComparisonGroup` now carries `sources`, which `ComparisonView.events` reads instead of its own track. Zooming in opens it back out into its own track. ## Where - `src/track-summaries.ts` (pure, exported from the core): `collapseTrackSpans` and `shownTracks`. - `src/app.ts`: - `separatedFrame` applies them to each joined separation frame and keeps a `trackPlan` (`collapsed` spans, `hidden` tracks); - `comparisonRows` skips hidden tracks; - `renderAxis` gives the baseline and ticks to the first shown track; - the fork curves and `arcAxes` follow `drawnTrack`. - `docs/tags.md`: "Tracks as you zoom". ## Tests - `test/track-summaries.test.mjs`: collapse and merge with neighbours, wide spans left alone, lone entries, chains, and shown tracks. - `test/track-summaries-browser.mjs` (in `browser.mjs`): - across the whole timeline, two blips two units apart are a `2 moments` summary on the main timeline, listed from their own track, with no curves and no blip track; - zoomed in, they're their own track with both curves; - a track out of view isn't drawn. The full browser suite passes locally. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/pull/561

Related

Open #561 Summarize separated tracks like moments, and hide the empty ones in the timeline

#561 Summarize separated tracks like moments, and hide the…