in script.js [549:571]
function renderManagementGroups() {
if (!currentData || !currentData.management_groups) {
mgTreeView.innerHTML = '<p>No data loaded</p>';
return;
}
// Clear the tree view
mgTreeView.innerHTML = '';
// Add legend
addLegend();
// Build the hierarchy
const hierarchy = buildHierarchy(currentData.management_groups);
// Render the tree
hierarchy.forEach(node => {
renderNode(node, mgTreeView);
});
// Update parent select options
updateParentOptions();
}