Save tree state

This commit is contained in:
2026-03-16 13:36:04 -05:00
parent 1e78ea2c52
commit fc4e0a6721
3 changed files with 81 additions and 2 deletions
+3 -1
View File
@@ -1,5 +1,5 @@
import { loadIssuesForCheckedPaths } from './js/issues.js';
import { getCheckedFileRefs, initializeTree, renderProductTree } from './js/tree.js';
import { getCheckedFileRefs, initializeTree, renderProductTree, restoreTreeState } from './js/tree.js';
import { applyIssueSearchFilter, getIssueTypeFilters, initializeUI } from './js/ui.js';
document.addEventListener('DOMContentLoaded', () => {
@@ -24,6 +24,8 @@ function loadProductTree() {
.then(data => {
productsData = expandFilePrefixLevel(data);
renderProductTree(productsData);
restoreTreeState();
refreshIssuesForCurrentSelection();
})
.catch(error => console.error('Error loading products:', error));
}