Skip to content

fix(mongo): confirm before discarding a dirty document editor - #862

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/782-mongo-dirty-editor-back
Sep 20, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/782-mongo-dirty-editor-back

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • Dirty MongoDocumentEditor JSON registers with UnsavedWorkRegistry, so Home / Close / tree navigation confirm before discarding.
  • Editor Back and explorer breadcrumbs that leave the document use the same unsaved-work dialog; Cancel keeps the editor.

Closes #782

Test plan

  • Open a Mongo document, edit JSON, tap Back → Cancel keeps the editor; Discard returns to the list
  • Clean (unedited) Back leaves immediately
  • Dirty editor + Home / Close / another database in the tree shows the same confirm
  • After Discard, Home/Close no longer warns

@github-actions github-actions Bot added bug Something isn't working frontend Theme parser epic label: frontend ux User experience, keyboard shortcuts and interactions labels Sep 20, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 9e786c2 into dev Sep 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend Theme parser epic label: frontend ux User experience, keyboard shortcuts and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant