Dense durations: near-identical spans share a band, rows stop at what fits, the rest are listed (#316)
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
- Durations whose start and end are both closer than the grouping distance to a band's are drawn as that band ("Title + 2,340 more"). - Bands claim rows longest first (then by start, title and ID), so the order depends only on the durations and never reshuffles while panning. - At most the rows that fit beneath a centered axis are drawn (3 to 8 on a phone, 16 elsewhere); the rest, and any durations the window holds beyond the 256 sent, sit behind one "+N more durations ▾" chip. - A grouped band or the chip opens a list: paged 25 at a time, filtered by title, sorted longest first, by start or by title; each entry opens the duration or fits it in view. - Every store sends a dense window's 256 longest and counts the rest, up to 10,000: PostgreSQL and SQLite rank the first 10,001 matches by start; the browser finds the exact 256 longest best-first without visiting every match. - New "durations" list query with `overlapping` (HTTP, OpenAPI, desktop). - The timeline menu no longer closes on a page scroll that ended before it opened (#308). Closes #316 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/fc240cbc6116224060f4dd7c656b177b7dd28791