From ca7f43dcd98e0eb618c2c1ad1cc06ef3f4af5118 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Thu, 7 May 2026 21:36:11 +0200 Subject: [PATCH] Bug cockpit --- backend/app/program_content.py | 2 ++ frontend/src/App.jsx | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/backend/app/program_content.py b/backend/app/program_content.py index 659609a..ccb01e0 100644 --- a/backend/app/program_content.py +++ b/backend/app/program_content.py @@ -196,6 +196,8 @@ def list_lessons() -> list[dict]: for svg_dir in sorted(CONTENT_ROOT.glob("cycle_*/*/*/**/svg")): if not svg_dir.is_dir(): continue + if "kit_adaptatif" in svg_dir.relative_to(CONTENT_ROOT).parts: + continue svg_files = sorted(svg_dir.glob("*.svg")) if not svg_files: diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 135f50a..5225276 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -247,7 +247,7 @@ function ProgramReviewPanel({ selectedNode, reviewForm, onReviewChange, onSaveRe

{selectedNode.label}

{selectedNode.path || selectedNode.key}

- {review.status && {review.status}} + {review.status && {reviewStatusLabel(review.status)}} {Object.keys(status).length > 0 && ( @@ -2390,7 +2390,7 @@ function TutorApp({ currentUser, onLogout }) { {node.label} {node.type} - {node.review?.status && {node.review.status}} + {node.review?.status && {reviewStatusLabel(node.review.status)}} ))} @@ -2499,7 +2499,7 @@ function TutorApp({ currentUser, onLogout }) {

{selectedProgramNode?.label || 'Choisis une card ou une fiche'}

{selectedProgramNode?.path || selectedProgramNode?.key || 'La zone centrale affiche le contenu à analyser en grand.'}

- {selectedProgramNode?.review?.status && {selectedProgramNode.review.status}} + {selectedProgramNode?.review?.status && {reviewStatusLabel(selectedProgramNode.review.status)}}
{selectedProgramNode?.url ? ( @@ -2714,7 +2714,7 @@ function TutorApp({ currentUser, onLogout }) { > {node.label} {node.type} - {node.review?.status && {node.review.status}} + {node.review?.status && {reviewStatusLabel(node.review.status)}} ))}