From dfd8020617f498fb999c50cee0947ef42e2ab4c3 Mon Sep 17 00:00:00 2001 From: slhx agent Date: Tue, 2 Jun 2026 07:30:30 +0200 Subject: [PATCH] docs(examples): keep inspector copy target-oriented Replace remaining beginner-facing wire contract wording in the inspector partial with generated target/effect vocabulary and guard against regressions. req: dx/006 req: examples/003 --- examples/techdemo/src/main.rs | 2 +- examples/techdemo/templates/partials/inspector_panel.heml | 2 +- slhx-test/tests/examples_contract.rs | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/techdemo/src/main.rs b/examples/techdemo/src/main.rs index 314cfef..a3520a9 100644 --- a/examples/techdemo/src/main.rs +++ b/examples/techdemo/src/main.rs @@ -684,7 +684,7 @@ mod tests { assert_eq!(document.select(&selector(".inspector-row")).count(), 3); assert!(document .select(&selector("code")) - .any(|code| code.text().collect::().contains("typed update batch"))); + .any(|code| code.text().collect::().contains("targets::*"))); } // req: html_safety/002 req: view/001 req: test/005 diff --git a/examples/techdemo/templates/partials/inspector_panel.heml b/examples/techdemo/templates/partials/inspector_panel.heml index d1852fb..88c455d 100644 --- a/examples/techdemo/templates/partials/inspector_panel.heml +++ b/examples/techdemo/templates/partials/inspector_panel.heml @@ -1,4 +1,4 @@ {+= self.selected =+}
What happened
{+ self.spotlight +}
-
Wire contract
POST __h → application/slhx → typed update batch
+
Update path
targets::* → tuple effects → DOM
Runtime
Root-scoped delegated listeners; numeric targets only.
diff --git a/slhx-test/tests/examples_contract.rs b/slhx-test/tests/examples_contract.rs index f33cfec..5a45223 100644 --- a/slhx-test/tests/examples_contract.rs +++ b/slhx-test/tests/examples_contract.rs @@ -75,6 +75,8 @@ fn canonical_examples_do_not_author_low_level_resource_plumbing() { "ui::put(", "ui::append(", "ui::replace(", + "application/slhx", + "EffectBatch", "__h=", "name=\"__h\"", "name='__h'",