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

#38 Wait for the fitted view before typing bounds in the summaries test

–

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

Fixes the intermittent Firefox failure on #37 (`summaries-browser.mjs:27`, `'-200/1' !== '0'`). **Cause:** importing a timeline fits the view synchronously but writes the bound fields on the next render. The test waited for the title plus one animation frame, then typed a left bound. When Firefox ran the app's render after that frame, the render, a genuine navigation to the fitted view, replaced the typed bound. The app behaves as intended: re-renders keep unapplied typing, while navigation rewrites it. **Fix (test only):** after importing, the helper computes the fitted view with the app's own `Viewport.fit` over the document's moments. It then waits until the exact bound fields (`#exact-left` and `#exact-right`, written in the same pass as the bounds) show it. The wait doesn't depend on the display format and returns as soon as the render has happened. **Testing:** `browser.mjs` and `offline-browser.mjs` pass locally in Chromium and Firefox, and the Firefox offline suite passed four further runs in a row. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Ti36soiZpKdSxKfvQLEcfY https://github.com/openchronology/timeline-app/pull/38

Related

Open #38 Wait for the fitted view before typing bounds in the summaries test in the timeline

#38 Wait for the fitted view before typing bounds in the…