Code/app/personnalisation/interface.py
Stéphan Peccini 6d2e877341
feat(audit): audit qualité complet — 907→0 erreurs ruff + fix multiselect labels
- Correction des 907 erreurs ruff (pathlib, imports, nommage, simplifications, docstrings)
- Fix déduplication labels dans multiselect nœuds d'arrivée (analyse)
- Expansion 1→N label→IDs pour le Sankey (Pays d'opération)
- Ajout CLAUDE.md et document de design de l'audit
- Mise à jour .gitignore (artefacts tests exploratoires)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 11:52:01 +01:00

22 lines
843 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# interface.py app/personnalisation
import streamlit as st
from app.personnalisation.utils import ajouter_produit, importer_exporter_graph, modifier_produit
from utils.persistance import maj_champ_statut
from utils.translations import _
from utils.widgets import html_expander
def interface_personnalisation(G):
"""Point d'entree principal de l'interface de personnalisation du graphe."""
titre = f"# {str(_('pages.personnalisation.title'))}"
maj_champ_statut("pages.personnalisation.title", titre)
st.markdown(titre)
html_expander(f"{str(_('pages.personnalisation.help'))}", content="\n".join(_("pages.personnalisation.help_content")), open_by_default=False, details_class="details_introduction")
st.markdown("---")
G = ajouter_produit(G)
G = modifier_produit(G)
return importer_exporter_graph(G)