Repository navigation
fix: preserve project drafts when browser storage rejects a save - #10
Merged
Merged
Conversation
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.
When browser storage rejected a project save, the project dialog still closed as though the operation succeeded. The editor now returns the actual persistence result, marks failed saves as unsaved, and the dialog keeps the draft and presents the existing storage error when saving fails.
The new browser scenario uses the production Vite/Vue UI and the browser Storage boundary. It failed before the change because the dialog disappeared. It now passes failed-save visibility, draft retention, JSON backup, successful retry and persistence after reload. Lint and both production builds passed locally.
No new API field, dependency or general error framework was added. Existing non-dialog callers continue receiving the editor notice. This addresses F1, the remaining save-feedback finding in parent #1. Full CI must pass before merge.