Fixes for scatterplot
Test and deploy / deploy (push) Successful in 31s

This commit is contained in:
2026-07-29 10:06:39 -05:00
parent 3c7abc1cbc
commit cf56445915
8 changed files with 77 additions and 347 deletions
+18
View File
@@ -62,6 +62,24 @@ export function getCheckedFileRefs() {
};
}
export function selectAddressedRelease(product, release) {
if (!productTree || !product || !release) return false;
const node = findAddressedReleaseNode(productTree.nodesById.values(), product, release);
if (!node) return false;
productTree.setSelectedIds([node.id]);
pushTreeState();
return true;
}
export function findAddressedReleaseNode(nodes, product, release) {
const filename = `${release}.md`;
return Array.from(nodes).find(candidate =>
candidate.metadata?.path?.[0] === product &&
candidate.metadata?.addressed?.includes(filename)
);
}
// State restoration now happens when setData renders the generic tree.
export function restoreTreeState() {}