Repository navigation
feat(system-builder): the builder's saving and sidebar, as logic (4a2a) - #171
Merged
Merged
Conversation
sheets/builderSession.ts: createAutosave (saves the latest edit 5s after editing stops; flush saves now and keeps going until nothing is unsaved; an edit made during a save is kept and saved after it; never two saves at once; a failed save keeps the edit and is retried), the status line (DRAFT · SAVED 14:02 / UNSAVED CHANGES / SAVING… / NOT SAVED: why), the exit warning used only when the save on leaving failed, leaveNeedsAsking for the browser tab, publishBlocked / publishedMessage, and BUILDER_PAGES with a line each. systemsApi gains saveDraft and publish, and get's full answer type. The publish route now emits customSystemChanged, so open browsers fetch the new version. Decided with the user 2026-10-06: two save layers (autosave writes the draft; SAVE saves now; PUBLISH goes live); EXIT TO MAP warns only when a save failed.
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.
sheets/builderSession.ts: createAutosave (saves the latest edit 5s after editing stops; flush saves now and keeps going until nothing is unsaved; an edit made during a save is kept and saved after it; never two saves at once; a failed save keeps the edit and is retried), the status line (DRAFT · SAVED 14:02 / UNSAVED CHANGES / SAVING… / NOT SAVED: why), the exit warning used only when the save on leaving failed, leaveNeedsAsking for the browser tab, publishBlocked / publishedMessage, and BUILDER_PAGES with a line each.
systemsApi gains saveDraft and publish, and get's full answer type.
The publish route now emits customSystemChanged, so open browsers fetch the new version.
Decided with the user 2026-10-06: two save layers (autosave writes the draft; SAVE saves now; PUBLISH goes live); EXIT TO MAP warns only when a save failed.
Summary
Test plan
Pre-merge checklist
Code quality:
Version & Release:
frontend/package.jsonversiondocker-compose.ymlAPP_VERSIONCHANGELOG.mdwith release notesBefore merging to main:
Related issues