• fix: BUG TOPBAR — boutons du header servis échappés sur toutes les pages (v7.42.0)
    FlowDeck CI / lint (push) Canceled after 0s
    FlowDeck CI / docker (push) Canceled after 0s
    FlowDeck CI / test (push) Canceled after 0s

    bruno released this 2026-10-02 15:39:57 -04:00

    Cause racine : {% set right_actions = '…' ~ fd_icon(…) ~ '…' %} —
    fd_icon est une macro → Markup, et Markup.radd/add ÉCHAPPE ses
    arguments str → tous les segments littéraux sortent entité-és ("/<),
    et le |safe de _header:141 est no-op sur un Markup déjà échappé.
    Régression probable depuis A10 (activation d'autoescape).

    Fix (5 templates, forme idiomatique) : conversion en block-set
    {% set right_actions %}…{{ fd_icon(…) }}…{% endset %} — source brute,
    interpolation Markup brute : gitea_workspace, page_editor,
    page_editor_collection, workspace, workspaces. (Piège script : regex
    greedy multi-lignes avalait le set suivant → matcher sur UNE ligne.)

    Tests :

    • NOUVEAU tests/test_topbar_right_actions.py (permanent) : /workspaces
      doit servir class="topbar-btn" parsé et ZÉRIE entité "
    • gate éditeur CSP : assertion .star-btn RÉTABLIE (les boutons rendent)
    • debug temporaires (DBGCLS/DBGVAL) retirés

    suite 1094/1094 (+1 nouveau test) · ruff OK · E2E 7/7 (5
    csp_preview + 2 smoke) · docs à jour (CHANGELOG détail, ROADMAP bug →
    CORRIGÉ)

    Downloads