Skip to content

Preserve editor save flow on route change#363

Draft
Q1WP wants to merge 1 commit intobuildbotics:masterfrom
Q1WP:reconstruct/pr-editor-fixes
Draft

Preserve editor save flow on route change#363
Q1WP wants to merge 1 commit intobuildbotics:masterfrom
Q1WP:reconstruct/pr-editor-fixes

Conversation

@Q1WP
Copy link
Copy Markdown
Contributor

@Q1WP Q1WP commented Mar 16, 2026

Test deployment containing this change: http://bbctrl.dyndns.org:8091/

Follow-up draft. Not intended for review until the macro PR is resolved.

This PR fixes two editor issues:

  • leaving the Editor page now waits for check_save() correctly
  • save failures now show the API error message instead of an empty/misleading
    JS object string

This PR does not change editor/file-management authorization policy.

Files:

  • src/js/view-editor.js

Validation:

  • node -c src/js/view-editor.js
  • manual test: modify a file, choose Save/Discard/Cancel on navigation, and
    verify readable save-failure errors

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.

1 participant