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

#425 A timeline's settings page opens when it no longer keeps saved history

–

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

A timeline's **Sharing & settings** page fails with "The page is temporarily unavailable" for any timeline that has stopped keeping saved history. This was found while staging the operations pitch video, and it's live on timescale.info. ## Cause `platform/components/timeline-settings.jsx` attached its backdrop handling to the saved-history confirmation dialog once, on mount, with `useEffect(() => dismissOnBackdrop(historyDialog.current), [])`. That dialog renders only while history is kept, so for a timeline that stopped keeping it the ref is `null`, `dismissOnBackdrop(null)` throws, and the page's client render fails. ## Fix The effect runs whenever `timeline.keep_history` changes and attaches only when the dialog exists. Turning history back on also gets backdrop dismissal again, which it didn't before. ## Test `test/labels-live-postgres.mjs`, which already opens the settings page in a browser, now: 1. stops keeping saved history through the dialog; 2. reloads the page, which is the crash; 3. turns history back on; 4. checks that the confirmation dialog closes on a backdrop click. The test fails without the fix (the page never renders after the reload) and passes with it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/pull/425

Related

Open #425 A timeline's settings page opens when it no longer keeps saved history in the timeline

#425 A timeline's settings page opens when it no longer…