fix: relink rust web tree editor runtime

This commit is contained in:
lix-2026
2026-04-29 14:36:24 +08:00
parent 6c3d20ca55
commit 33ddda9dfd
28 changed files with 1839 additions and 303 deletions
+8 -9
View File
@@ -264,7 +264,7 @@ pub(crate) fn collect_page_tree_render_rows(projection: &Value) -> Vec<PageTreeR
.unwrap_or_default()
}
fn collect_filetree_render_rows(
pub(crate) fn collect_filetree_render_rows(
projection: &Value,
active_document_id: Option<&str>,
) -> Vec<FileTreeRenderRow> {
@@ -4654,13 +4654,9 @@ pub async fn tree_command(
None,
Some(*sort_order),
),
TreeCommandRequest::Purge { document_id, .. } => (
"purge",
document_id.clone(),
None,
None,
None,
),
TreeCommandRequest::Purge { document_id, .. } => {
("purge", document_id.clone(), None, None, None)
}
};
let effective_workspace_id = match &request {
TreeCommandRequest::Create { parent_id, .. } => {
@@ -5166,7 +5162,10 @@ mod tests {
payload["result"]["documentId"],
Value::String("page_child".into())
);
assert_eq!(payload["result"]["execution"]["deletedCount"], Value::from(1));
assert_eq!(
payload["result"]["execution"]["deletedCount"],
Value::from(1)
);
}
#[tokio::test]