Close workbench P0 resource lifecycle gaps

This commit is contained in:
lix-2026
2026-05-20 20:48:18 +08:00
parent e0b0e70fb8
commit fe13444dbc
14 changed files with 610 additions and 7 deletions
@@ -605,6 +605,7 @@ mod tests {
asset_id: Some("image".into()),
},
],
root_uri: None,
},
state: FileTreeRuntimeState::default(),
action: FileTreeRuntimeAction::SelectRow {
@@ -645,6 +646,7 @@ mod tests {
asset_id: Some("image".into()),
},
],
root_uri: None,
},
state: FileTreeRuntimeState {
selection: FileTreeSelectionState::from_selected(&["asset:image".to_string()]),
@@ -688,6 +690,7 @@ mod tests {
asset_id: Some("image".into()),
},
],
root_uri: None,
},
state: FileTreeRuntimeState::default(),
action: FileTreeRuntimeAction::UpdateDropTarget {
@@ -726,6 +729,7 @@ mod tests {
asset_id: Some("image".into()),
},
],
root_uri: None,
},
state: FileTreeRuntimeState {
drag_row_ids: ids(&["asset:image"]),
@@ -774,6 +778,7 @@ mod tests {
document_id: Some("root".into()),
asset_id: None,
}],
root_uri: None,
},
state: FileTreeRuntimeState::default(),
action: FileTreeRuntimeAction::DispatchExternalDrop {