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

#523 The editor trusts only a list of hashes in its stored dismissals

–

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

Closes #512. The capacity notice's dismissals are kept in `localStorage`, which other pages of the same origin can read and write. In some browsers that's every `file://` page. **Changes:** - **Reading:** `capacityDismissed()` reads only a list of strings. A value that's anything else counts as no dismissals. Before, a non-list value made every redraw fail. - **Storing:** dismissals are kept as short hashes (FNV-1a) of the timeline and its advice, so a timeline's title or file path is no longer written there. An earlier dismissal won't match its hash, so its notice shows once more. **Tests:** `capacity-browser.mjs` checks that only hashes are stored, and that a non-list value written by another page leaves the editor working and the notice showing again. It runs in CI; this machine has no browser. Typecheck and unit tests pass here. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/pull/523

Related

Open #523 The editor trusts only a list of hashes in its stored dismissals in the timeline

#523 The editor trusts only a list of hashes in its stored…