A timeline can open separated by default, by tags or by relationships (#416)
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
Someone who can edit a timeline can make a separation its default view: separated by tags, or by Separate related or Separate all connected, it is saved as the timeline's `view` setting, and readers, embeds, shared links, imported files, desktop files and drafts open it that way. Rejoin still returns to the whole timeline. - Format: `view: {separation: {tags: [...]}}` or `{separation: {related: , depth: "direct" | "all"}}`, validated by src/default-view.ts (tags normalized like entity tags, one to forty; entity IDs as relationship ends). It is a document setting like the title and image, so saves, exports, forks, copies, merges, pull requests, drafts and history keep it. - Server: oc_timelines.view, written by saves, rebuilds and sparse saves, copied to forks, in history settings, merges, retention and log writers. - Desktop: `view` in the .och file's timeline_extras (and och-convert), and a "moment" query by ID alone to name the default's entity. - Opening: a server tab's own stored view wins on reload (separated or rejoined); otherwise the default applies. Links to an event or a search open the whole timeline, as before; comparisons ignore defaults. An entity deleted since opens the whole timeline quietly. - UI: "Make this the default view" and "Clear default view" in the separation bar for those who can edit it (not in View mode), a note that this is the default view, and what it opens separated by, with Clear, in the Separate dialog. A separated timeline keeps its own title rather than "Timeline comparison". - Docs (tags, relationships, guide, architecture), OpenAPI, unit, Rust, browser and live tests (default-view-live-postgres.mjs, in CI). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/158954933cfba2c31966d994f41c89b6afd440bb
Related
Open A timeline can open separated by default, by tags or by relationships (#416) in the timeline