docs(examples): hide batch internals from UI copy

Replace beginner-facing EffectBatch/slot-effect wording with generated update language while keeping wire-batch types in tests and low-level APIs.

req: dx/006

req: examples/003
This commit is contained in:
slhx agent
2026-06-02 03:40:12 +02:00
parent 49743c1a67
commit 998e15758a
10 changed files with 22 additions and 22 deletions
+5 -5
View File
@@ -21,7 +21,7 @@ use std::time::Duration;
const LANES: [(&str, &str, &str); 3] = [
("compiler", "Compiler", "Surface → generated API"),
("runtime", "Runtime", "EffectBatch → DOM"),
("runtime", "Runtime", "typed updates → DOM"),
("product", "Product", "Native UX, zero app JS"),
];
@@ -315,7 +315,7 @@ fn registry(shared: Arc<Shared>) -> impl DispatchRegistry {
}
});
if let Some(title) = title {
demo.spotlight = format!("{title} advanced without a selector: the server returned slot effects.");
demo.spotlight = format!("{title} advanced without a selector: the server returned generated slot updates.");
demo.log(format!("Advanced {title}"));
}
demo_effects(&demo, "Pipeline advanced")
@@ -382,7 +382,7 @@ fn registry(shared: Arc<Shared>) -> impl DispatchRegistry {
move |_| {
// req: push/003 req: examples/001
let mut demo = shared.demo.lock().unwrap();
demo.log("Simulated push event produced the same EffectBatch shape");
demo.log("Simulated push event produced the same generated update shape");
(
ui::put(slots::live_feed, &LiveFeed {
tick: demo.activity.len() as u64,
@@ -691,7 +691,7 @@ mod tests {
assert_eq!(document.select(&selector(".inspector-row")).count(), 3);
assert!(document
.select(&selector("code"))
.any(|code| code.text().collect::<String>().contains("EffectBatch")));
.any(|code| code.text().collect::<String>().contains("typed update batch")));
}
// req: html_safety/002 req: view/001 req: test/005
@@ -806,7 +806,7 @@ mod tests {
lane.select(&selector("p"))
.next()
.map(|paragraph| paragraph.text().collect::<String>())
.is_some_and(|text| text.contains("EffectBatch ops"))
.is_some_and(|text| text.contains("typed DOM ops"))
}));
}
}