Skip to content

Add nested Cancel and canonical save examples - #18

Open
PerchAnton wants to merge 6 commits into
mainfrom
edit-session/draft-boundaries
Open

PerchAnton wants to merge 6 commits into
mainfrom
edit-session/draft-boundaries

Conversation

@PerchAnton

@PerchAnton PerchAnton commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

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.

@PerchAnton
PerchAnton marked this pull request as ready for review December 2, 2026 17:04

This branch has not been deployed

No deployments
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