#565 Leave duration notes out of a server's windows
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#565
- pull request
- state:merged
Part 3 of the lag fixes for the openchronology/timeline-app timeline on timescale.info (after #564). A window's duration bands each carried a notes preview of up to 2,000 characters, most of their size. The 146 issues and PRs in that timeline's whole-timeline window came to 228 KB, and without the notes they are 80 KB. ## Changes - **Server** (`lighterBands` in `server/store.mjs`): overview bands, summarized durations and ongoing ones leave out `description`, unless an enabled plugin shows notes on the timeline (`hover` or `source`, the same rule `pluginMetadata` uses for moments). This uses the request's plugins, or else the timeline's. A `duration` lookup still reads the whole duration. - **Client:** opening a band from a compared or separated track used to show the band's own metadata. Now `wholeBand` reads the duration through its track's source and keeps the band if that read fails. Other paths already read durations by ID. - **Docs:** `docs/durations.md` and the OpenAPI `DurationBand` description. ## Tests - `test/durations-postgres.mjs`: bands and summarized durations come without notes, keeping title and tags. With Focus on hover enabled they include them, and a lookup returns them whole. - `test/separated-arcs-live-postgres.mjs`: a duration with notes longer than the old preview, opened from its separated track, shows them in full. - Locally: the unit tests (525), the PostgreSQL tests and the live test pass. `sql-oracle` needs `psql`, which isn't installed here. This PR touches the same live test as #564, in different places. I'll merge main into whichever lands second. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/circagraph/timeline-app/pull/565
Related
Open #565 Leave duration notes out of a server's windows in the timeline