Skip to content

Persistent recent-files list & IndexedDB-backed autosave#290

Merged
milanofthe merged 7 commits into
mainfrom
feature/indexeddb-autosave
May 18, 2026
Merged

Persistent recent-files list & IndexedDB-backed autosave#290
milanofthe merged 7 commits into
mainfrom
feature/indexeddb-autosave

Conversation

@milanofthe
Copy link
Copy Markdown
Member

@milanofthe milanofthe commented May 18, 2026

Closes #288.

Summary

  • Autosave storage moved from localStorage to IndexedDB — removes the ~5–10 MB per-origin cap; large graphs no longer fail silently. One-time migration of any existing pathview_autosave localStorage entry.
  • On load, if an autosave snapshot exists and no ?model= URL is present, a confirmation dialog offers to restore the previous session (replaces the silent clearAutoSave() at startup).
  • FileSystemFileHandles are persisted to IndexedDB as an LRU (max 10) on every successful Save/Save-As/Open.
  • Open-button (toolbar) reveals a Recent-files menu on hover. Click an entry → permission re-prompt → load in place. Stale entries auto-evict on failure; per-item "x" removes manually. Hidden on browsers without the File System Access API (Firefox/Safari) — current behaviour preserved.

@milanofthe milanofthe merged commit d3a5ef3 into main May 18, 2026
4 checks passed
@milanofthe milanofthe deleted the feature/indexeddb-autosave branch May 18, 2026 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Persistent recent-files list & IndexedDB-backed autosave

1 participant