Skip to content

Commit 574bb06

Browse files
committed
Fix: Replace remaining _review_button calls with _review_form
Replace all remaining _review_button function calls with _review_form to fix generate-and-commit workflow failure. All analysis tabs now use the in-dashboard review form system. Fixes workflow error where old function calls caused generation to fail.
1 parent 0081c0a commit 574bb06

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Graph Analysis/unified_analysis.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def write_html_report(
495495
<!-- Field Degree Tab -->
496496
<div id="field-degree" class="tab-pane">
497497
<h2>JSON Field Degree Analysis</h2>
498-
""" + _review_button("field-degree") + """
498+
""" + _review_form("field-degree") + """
499499
<p class="explanation">Fields are connected when they appear together inside the same JSON object; a field's degree is the number of distinct fields it co-occurs with.</p>
500500
501501
<h3>Top Fields by Degree</h3>
@@ -529,7 +529,7 @@ def write_html_report(
529529
<!-- Path Structure Tab -->
530530
<div id="path-structure" class="tab-pane">
531531
<h2>JSON Path Structure Analysis</h2>
532-
""" + _review_button("path-structure") + """
532+
""" + _review_form("path-structure") + """
533533
<p class="explanation">Each JSON path represents a unique nested route (keys/array indices); depth shows how deeply information is nested.</p>
534534
535535
<ul class="summary-list">
@@ -563,7 +563,7 @@ def write_html_report(
563563
<!-- Centrality Tab -->
564564
<div id="centrality" class="tab-pane">
565565
<h2>Field Centrality (Co-occurrence)</h2>
566-
""" + _review_button("centrality") + """
566+
""" + _review_form("centrality") + """
567567
<p class="explanation">Centrality scores highlight fields that are well-connected (degree), act as bridges (betweenness), are close to others (closeness), or connect to other influential fields (eigenvector).</p>
568568
569569
<table>
@@ -589,7 +589,7 @@ def write_html_report(
589589
<!-- Clustering Tab -->
590590
<div id="clustering" class="tab-pane">
591591
<h2>Clustering (Field Co-occurrence Graph)</h2>
592-
""" + _review_button("clustering") + """
592+
""" + _review_form("clustering") + """
593593
<p class="explanation">Clustering measures how tightly a field's neighbors are connected to each other (higher means more triads).</p>
594594
595595
<p><strong>Average Clustering Coefficient:</strong> """)
@@ -614,7 +614,7 @@ def write_html_report(
614614
<!-- Connected Components Tab -->
615615
<div id="components" class="tab-pane">
616616
<h2>Connected Components (Field Co-occurrence Graph)</h2>
617-
""" + _review_button("components") + """
617+
""" + _review_form("components") + """
618618
<p class="explanation">Components are groups of fields that are all reachable from each other; multiple components suggest separate substructures.</p>
619619
620620
<ul class="summary-list">

0 commit comments

Comments
 (0)