From 5f67a530c2e90250b5ab5d088992e61eee003935 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Wed, 30 Sep 2026 15:24:10 +0530 Subject: [PATCH] chore(ui): comment out consistency errors section from streamlit app --- app.py | 56 +++++++++++++++++++++++++++----------------------------- 1 file changed, 27 insertions(+), 29 deletions(-) diff --git a/app.py b/app.py index 5d2ad1a..7755dd8 100644 --- a/app.py +++ b/app.py @@ -848,36 +848,34 @@ with tab_main_dashboard: df = pd.DataFrame([r.model_dump() for r in graph.relationships]) st.dataframe(df, use_container_width=True) - # Quality Assurance & Process Log - st.markdown("
🔍 Quality Assurance & Process Log
", unsafe_allow_html=True) - col_v1, col_v2 = st.columns(2) + # Quality Assurance & Process Log (Consistency Errors & Warnings commented out) + # col_v1, col_v2 = st.columns(2) + # with col_v1: + # st.subheader("Consistency Errors & Warnings") + # if reports: + # for r in reports: + # is_err = (r.get("severity") == "ERROR") + # icon = "❌" if is_err else "⚠️" + # bg_color = "#FDF2F2" if is_err else "#FEFBF0" + # border_color = "#F05252" if is_err else "#FACA15" + # title_color = "#7F1D1D" if is_err else "#713F12" + # msg_color = "#991B1B" if is_err else "#854D0E" + # st.markdown(f""" + #
+ # {icon} {r.get('rule_id', 'RULE')} (Target: {r.get('target_tag', 'N/A')})
+ # {r.get('message')} + #
+ # """, unsafe_allow_html=True) + # else: + # st.success("✓ No validation discrepancies identified.") - with col_v1: - st.subheader("Consistency Errors & Warnings") - if reports: - for r in reports: - is_err = (r.get("severity") == "ERROR") - icon = "❌" if is_err else "⚠️" - bg_color = "#FDF2F2" if is_err else "#FEFBF0" - border_color = "#F05252" if is_err else "#FACA15" - title_color = "#7F1D1D" if is_err else "#713F12" - msg_color = "#991B1B" if is_err else "#854D0E" - st.markdown(f""" -
- {icon} {r.get('rule_id', 'RULE')} (Target: {r.get('target_tag', 'N/A')})
- {r.get('message')} -
- """, unsafe_allow_html=True) - else: - st.success("✓ No validation discrepancies identified.") - - with col_v2: - st.subheader("Extraction Process History") - st.markdown(f"**Re-extraction Loops:** `{re_runs}` / `{max_retries}`") - st.markdown("**Revision History:**") - for log in revision_history: - action = log.get("action", str(log)) - st.markdown(f"- {action}") + st.markdown("
🔍 Extraction Process Log
", unsafe_allow_html=True) + st.subheader("Extraction Process History") + st.markdown(f"**Re-extraction Loops:** `{re_runs}` / `{max_retries}`") + st.markdown("**Revision History:**") + for log in revision_history: + action = log.get("action", str(log)) + st.markdown(f"- {action}") # Export & Download st.markdown("
📥 Export & Download
", unsafe_allow_html=True)