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:
@@ -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())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user