normalize_headers = st.checkbox(
"Normalize headers for comparison",
value=AppConfig.DEFAULT_NORMALIZE_HEADERS,
help="Treat 'Overall Start' and 'overall_start' as the same column"
)
expand_abbreviations = st.checkbox(
"Expand header abbreviations",
value=AppConfig.DEFAULT_EXPAND_ABBREVIATIONS,
help="Treat 'start_dt' and 'start_date' as the same column (dt→date, st→start, etc.)"
)
if expand_abbreviations:
with st.expander("📝 Supported Abbreviations"):
st.write("Common abbreviations that will be expanded:")
abbrev_text =", ".join([f"**{k}**→{v}"for k, v inlist(AppConfig.HEADER_ABBREVIATIONS.items())[:12]])
st.markdown(abbrev_text +", and more...")
Also update lines 86-90:
Replace your current ComparisonSettings creation with:
python
st.session_state.comparison_settings = ComparisonSettings(
float_tolerance=float_tolerance,
case_sensitive=case_sensitive,
normalize_headers=normalize_headers, # ADD THIS
expand_abbreviations=expand_abbreviations, # ADD THIS
max_mismatches=AppConfig.MAX_MISMATCHES_DISPLAY
)
So you're adding the new checkboxes between lines 80 and 84, and updating the settings creation at lines 86-90! 🎯