Repository navigation
Add a project library with named projects stored in IndexedDB - #2
Merged
Merged
Conversation
Each project now has its own record, map-image blob, thumbnail and library entry, and the open project is remembered across reloads. A Projects dialog lists saved projects with thumbnails and switches between them, supports rename and two-step delete, and starts new projects. Projects have a name that is edited in the title bar and saved in .anal files. Opening a file or the sample adds it to the library instead of replacing the current work, so the confirmation dialog from the previous change is removed. A project saved by the single-project build moves into the library on first load. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
pythonicode
changed the base branch from
fix/audit-bugs-and-code-health
to
main
October 14, 2026 08:53
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a project library so several projects can be kept in the browser, each with a name.
This PR is stacked on #1 (
fix/audit-bugs-and-code-health). Its base is that branch, so the diff shows only the library work. It replaces the confirm-before-open dialog from #1: opening a file or the sample now adds a project to the library instead of replacing the current one, so there is nothing to confirm.What changes for users
.analfiles. Files saved before this change still open; their name defaults to the map name..analfiles, and the sample project, add a new project to the library.How it is stored
Code layout
src/persistence/library.ts: IndexedDB records and legacy migrationsrc/persistence/projectStorage.ts: zustand autosave adapter, now per projectsrc/projectLibrary.ts: create, open, import, rename and delete actionssrc/components/ProjectLibraryModal.tsx: the dialogTesting
bun run test,bun run lint,bun run buildpass..analfile adds it to the library.Notes for review
🤖 Generated with Claude Code