Implement Rust web sidebar title and tree interactions

This commit is contained in:
lix-2026
2026-04-30 05:46:36 +08:00
parent 559c5ce652
commit 3cc090ba5e
35 changed files with 3029 additions and 424 deletions
@@ -21,12 +21,15 @@ pub async fn mindmap_object_shell(
"mindmapId": mindmap_id,
"projection": {
"schema": "mnote.mindmap_projection.v1",
"source": "rust-web-object-shell"
"source": "rust-kernel",
"owner": "rust-kernel",
"queryName": "mindmap.projection.get"
},
"island": {
"kind": "react_mindmap_runtime",
"mountId": "mnote-mindmap-island",
"legacyCompat": "next-app-router"
"runtimeRole": "renderer_adapter",
"commandName": "mindmap.command.apply"
},
"requestId": context.trace.request_id,
"traceId": context.trace.trace_id
@@ -145,6 +148,8 @@ mod tests {
let html = String::from_utf8(body.to_vec()).expect("utf8");
assert!(html.contains("mnote.mindmap_shell.v1"));
assert!(html.contains("data-react-island=\"mindmap_runtime\""));
assert!(html.contains("rust-web-object-shell"));
assert!(html.contains("mindmap.projection.get"));
assert!(html.contains("mindmap.command.apply"));
assert!(!html.contains("next-app-router"));
}
}