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
This commit is contained in:
@@ -684,7 +684,7 @@ mod tests {
|
|||||||
assert_eq!(document.select(&selector(".inspector-row")).count(), 3);
|
assert_eq!(document.select(&selector(".inspector-row")).count(), 3);
|
||||||
assert!(document
|
assert!(document
|
||||||
.select(&selector("code"))
|
.select(&selector("code"))
|
||||||
.any(|code| code.text().collect::<String>().contains("typed update batch")));
|
.any(|code| code.text().collect::<String>().contains("targets::*")));
|
||||||
}
|
}
|
||||||
|
|
||||||
// req: html_safety/002 req: view/001 req: test/005
|
// req: html_safety/002 req: view/001 req: test/005
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{+= self.selected =+}
|
{+= self.selected =+}
|
||||||
<div class="inspector-row"><b>What happened</b><br>{+ self.spotlight +}</div>
|
<div class="inspector-row"><b>What happened</b><br>{+ self.spotlight +}</div>
|
||||||
<div class="inspector-row"><b>Wire contract</b><br><code>POST __h → application/slhx → typed update batch</code></div>
|
<div class="inspector-row"><b>Update path</b><br><code>targets::* → tuple effects → DOM</code></div>
|
||||||
<div class="inspector-row"><b>Runtime</b><br>Root-scoped delegated listeners; numeric targets only.</div>
|
<div class="inspector-row"><b>Runtime</b><br>Root-scoped delegated listeners; numeric targets only.</div>
|
||||||
|
|||||||
@@ -75,6 +75,8 @@ fn canonical_examples_do_not_author_low_level_resource_plumbing() {
|
|||||||
"ui::put(",
|
"ui::put(",
|
||||||
"ui::append(",
|
"ui::append(",
|
||||||
"ui::replace(",
|
"ui::replace(",
|
||||||
|
"application/slhx",
|
||||||
|
"EffectBatch",
|
||||||
"__h=",
|
"__h=",
|
||||||
"name=\"__h\"",
|
"name=\"__h\"",
|
||||||
"name='__h'",
|
"name='__h'",
|
||||||
|
|||||||
Reference in New Issue
Block a user