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
+3 -3
View File
@@ -173,7 +173,7 @@ fn registry(state: Arc<ExampleState>) -> impl DispatchRegistry {
// req: page_swap/002, req: examples/001
(
page_swap::put(page_slots::content, &DocsContent {
message: "This content came from an EffectBatch.",
message: "This content came from a generated update response.",
}),
page_slots::title.text("Docs"),
push("/docs"),
@@ -257,7 +257,7 @@ mod tests {
// req: html_safety/002 req: view/001 req: test/005
#[test]
fn docs_content_payload_is_rendered_by_a_hemplate_view() {
let html = render_docs_content("This content came from an EffectBatch.");
let html = render_docs_content("This content came from a generated update response.");
let document = Html::parse_fragment(html.as_str());
assert_eq!(
document
@@ -271,7 +271,7 @@ mod tests {
.select(&selector("p"))
.next()
.map(|paragraph| paragraph.text().collect::<String>()),
Some("This content came from an EffectBatch.".to_owned())
Some("This content came from a generated update response.".to_owned())
);
}