chore(ui): comment out consistency errors section from streamlit app

This commit is contained in:
Abhinav Gupta
2026-09-30 15:27:23 +05:30
parent 2b70ff2deb
commit 5f67a530c2
+27 -29
View File
@@ -848,36 +848,34 @@ with tab_main_dashboard:
df = pd.DataFrame([r.model_dump() for r in graph.relationships]) df = pd.DataFrame([r.model_dump() for r in graph.relationships])
st.dataframe(df, use_container_width=True) st.dataframe(df, use_container_width=True)
# Quality Assurance & Process Log # Quality Assurance & Process Log (Consistency Errors & Warnings commented out)
st.markdown("<div class='section-header'>🔍 Quality Assurance & Process Log</div>", unsafe_allow_html=True) # col_v1, col_v2 = st.columns(2)
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"""
# <div style='background-color: {bg_color}; padding: 12px; border-left: 5px solid {border_color}; border-radius: 6px; margin-bottom: 10px; font-family: sans-serif;'>
# <strong style='color: {title_color}; font-size: 0.95rem;'>{icon} {r.get('rule_id', 'RULE')} (Target: {r.get('target_tag', 'N/A')})</strong><br/>
# <span style='font-size: 0.9rem; color: {msg_color}; line-height: 1.4; display: block; margin-top: 4px;'>{r.get('message')}</span>
# </div>
# """, unsafe_allow_html=True)
# else:
# st.success("✓ No validation discrepancies identified.")
with col_v1: st.markdown("<div class='section-header'>🔍 Extraction Process Log</div>", unsafe_allow_html=True)
st.subheader("Consistency Errors & Warnings") st.subheader("Extraction Process History")
if reports: st.markdown(f"**Re-extraction Loops:** `{re_runs}` / `{max_retries}`")
for r in reports: st.markdown("**Revision History:**")
is_err = (r.get("severity") == "ERROR") for log in revision_history:
icon = "❌" if is_err else "⚠️" action = log.get("action", str(log))
bg_color = "#FDF2F2" if is_err else "#FEFBF0" st.markdown(f"- {action}")
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"""
<div style='background-color: {bg_color}; padding: 12px; border-left: 5px solid {border_color}; border-radius: 6px; margin-bottom: 10px; font-family: sans-serif;'>
<strong style='color: {title_color}; font-size: 0.95rem;'>{icon} {r.get('rule_id', 'RULE')} (Target: {r.get('target_tag', 'N/A')})</strong><br/>
<span style='font-size: 0.9rem; color: {msg_color}; line-height: 1.4; display: block; margin-top: 4px;'>{r.get('message')}</span>
</div>
""", 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}")
# Export & Download # Export & Download
st.markdown("<div class='section-header'>📥 Export & Download</div>", unsafe_allow_html=True) st.markdown("<div class='section-header'>📥 Export & Download</div>", unsafe_allow_html=True)