Repository navigation
Add nested Cancel and canonical save examples - #18
Open
PerchAnton wants to merge 6 commits into
Open
PerchAnton wants to merge 6 commits into
PerchAnton wants to merge 6 commits into
Conversation
PerchAnton
marked this pull request as ready for review
December 2, 2026 17:04
This branch has not been 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.
Add host-boundary examples without expanding the public API: nested Cancel preserves the parent draft, canonical save rebuilds fields from the value actually persisted, and a host-owned request generation prevents late background results from changing a replacement draft. Document context is checked separately at confirmation.
Compare the draft lifecycle with a small local helper. The examples cover stale revisions, Undo returning to equal values, write failure/retry, late success and error, duplicate results, and counter exhaustion. A ticket guard alone can be sufficient; the library does not route workers, implement history, or roll back external effects.
Validation: 55 native tests plus one doctest pass, including eight request-generation model tests; the new executable runs; rustfmt and clippy --all-targets -D warnings pass. CI checks Rust 1.88 and stable. These are deterministic models, not native GUI reproductions or patches to external applications. No API/version/release change.
Published toolkit boundaries
Adds an independent workspace with 20 native tests against published edit-session 1.0.0 and real Dioxus, Yew, Sycamore, Vizia ID, Iced runtime, Slint model, tui-realm command and TachyonFX APIs. Cases cover non-Clone draft storage, Cancel, late/duplicate confirmation, recycled object IDs, independent effect previews and stale host state. The README states each test boundary and links the existing equivalent local helper.
Local validation on macOS ARM/Rust 1.99.1: 20/20 tests and Clippy with warnings denied; root local-helper checks also pass. Toolkit dependencies are confined to this example workspace; core dependencies, API and Rust minimum remain unchanged. A dedicated Linux CI job runs all eight recipes with
--all-features. Each recipe can also be selected independently, so other toolkit dependencies are not built. The first Linux run exposed a missing Fontconfig prerequisite for Slint; the follow-up installs it in that CI job and documents the requirement. No rendering/DOM integration or speed/adoption claim is made.