Keep server timelines' viewport windows across page loads
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
Reopening a server timeline asked the server again for every view, though a revision's windows never change. Windows now also go to IndexedDB (openchronology-viewports), one record per window, keyed by server origin, user (or guest), timeline, revision and a fingerprint of the active plugins. Opening a timeline restores its stored windows for the confirmed revision as fresh, so its last views appear with no query. Two seconds after a window arrives, and when the page is hidden, new windows are written and released ones, or other revisions', deleted; all together keep under 64 MiB (least recently saved first) for 30 days. Signing out deletes them all, and a query refused with 401, 403 or 404 deletes the timeline's. Desktop files keep windows only in the page: their revision is a counter that does not survive the app. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/8780a72e2342ee92db90ac33208144047d8ae821
Open Keep server timelines' viewport windows across page loads in the timeline