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

#57 Searchable moment selector for duration endpoints

–

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

Fixes #47. - **Fixed time** endpoints show only the time field; the "Follow a moment…" button is gone. - Switching to **Follows a moment** opens a new **Choose a moment** dialog right away; closing it without choosing switches back to fixed. - A followed endpoint shows the moment, **Open moment**, and **Choose another moment…** (which reopens the selector). - The selector browses moments in time order (25 per page, cursor paging, previous/next) or searches titles and notes as you type (debounced), so it never loads a whole timeline. - Search gains `only: "moment"` in all three backends: in-memory `searchIndex`, PostgreSQL (`kind=$5` filter) and the desktop SQLite store (drops the duration union). The HTTP API rejects other values. `runSearch`'s overlay of unsaved edits was extracted into `searchPage()` and is shared by both dialogs. Tests: `search-browser.mjs` covers cancel-to-fixed, browse paging (32 moments → 25 + 7), moments-only search, choosing, and reopening/closing. Unit, HTTP, PostgreSQL search and native tests check the `only` filter. Unit, browser and offline suites pass in Chromium and Firefox; native-store tests pass. This touches the duration dialog alongside #56 (Save/Cancel); the two change different parts of it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Ti36soiZpKdSxKfvQLEcfY https://github.com/openchronology/timeline-app/pull/57

Related

Open #57 Searchable moment selector for duration endpoints in the timeline

#57 Searchable moment selector for duration endpoints