diff --git a/public/script/app.js b/public/script/app.js
index 4bafbd8..4a5a6c8 100644
--- a/public/script/app.js
+++ b/public/script/app.js
@@ -509,6 +509,22 @@ angular
});
}
+ // #496 — expand every folder on first load so reviewers see the
+ // whole tree without clicking through. Folders the user has
+ // already toggled (state recorded in $scope.opens) are left
+ // alone, so collapsing a folder still works.
+ function expandAllFolders(nodes, parentPath) {
+ if (!nodes) return;
+ for (const f of nodes) {
+ if (!f.child) continue;
+ const path = `${parentPath}/${f.name}`;
+ if (!(path in $scope.opens)) {
+ $scope.opens[path] = true;
+ }
+ expandAllFolders(f.child, path);
+ }
+ }
+
$scope.$watch(
"file",
(newValue) => {
@@ -516,6 +532,7 @@ angular
if (newValue.length == 0) {
return $element.html("Empty repository");
}
+ expandAllFolders(toArray(newValue), "");
display();
},
true
diff --git a/public/script/bundle.min.js b/public/script/bundle.min.js
index cb39046..172c862 100644
--- a/public/script/bundle.min.js
+++ b/public/script/bundle.min.js
@@ -2622,4 +2622,4 @@ Expecting `+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on l
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),i instanceof Map){let e=t.htmlLabels??t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];i.forEach(t=>{gq(t.styles)||e.forEach(e=>{n+=$Fe(t.id,e,t.styles)}),gq(t.textStyles)||(n+=$Fe(t.id,"tspan",(t?.textStyles||[]).map(e=>e.replace("color","fill"))))})}return n},"createCssStyles"),RFe=mt((e,t,i,n)=>{i=LFe(e,i);return uFe(aFe(n+`{${ch(t,i,e.themeVariables)}}`),dFe)},"createUserStyles"),MFe=mt((e="",t,i)=>{let n=e;return i||t||(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=(n=nC(n)).replace(/
/g,"
")},"cleanUpSvgCode"),IFe=mt((e="",t)=>{return`