Association et Memory restent affiches une fois termines, seul Recommencer bascule
Build and deploy / test-python (push) Failing after 59s
Build and deploy / test-js (push) Failing after 52s
Build and deploy / lint-python (push) Failing after 59s
Build and deploy / lint-js (push) Failing after 1m1s
Build and deploy / build-and-push (push) Skipped
Build and deploy / deploy (push) Skipped
Build and deploy / sonarqube (push) Failing after 1m4s

Les deux mini-jeux gardaient jusqu'ici un ecran de resultat separe qui
remplacait le plateau de jeu (comme le Quiz). Le plateau reste desormais
visible en permanence ; seule une barre partagee .docMinigameRestartBar
apparait/disparait. Le Quiz garde son propre comportement (ecran de
resultat separe), inchange.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
william
2026-09-20 14:43:26 +02:00
co-authored by Claude Sonnet 5
parent a34a95a3b4
commit 1b1307bb85
4 changed files with 49 additions and 43 deletions
@@ -221,11 +221,15 @@ def _render_association_player(config: dict[str, Any]) -> str:
f'<div class="docAssocColumn docAssocColumnRight"></div>'
f"</div>"
f'<div class="docAssocFeedback"></div>'
f"</div>"
f'<div class="docAssocResultCard" style="display:none;">'
f'<div class="docAssocResultBig">✓</div>'
f'<div class="docAssocResultSub">Toutes les paires sont associées !</div>'
# Le plateau reste affiché une fois toutes les paires trouvées
# (voir docs/plan/PLAN.md, retour utilisateur du 20/09/2026) —
# seul ce bouton apparaît (.is-visible posé par
# forgeDocAssociationMatchResult), jamais un écran de résultat
# séparé qui remplacerait le plateau (ça reste le comportement du
# Quiz, seul mini-jeu concerné par un écran de fin distinct).
f'<div class="docMinigameRestartBar">'
f'<button type="button" class="docAssocRestartBtn">Recommencer</button>'
f"</div>"
f"</div></div>"
)
@@ -277,11 +281,11 @@ def _render_memory_player(config: dict[str, Any]) -> str:
f'<div class="docAssocTitle docMemoryTitle"></div>'
f'<div class="docAssocMeta"><span class="docMemoryProg"></span></div>'
f'<div class="docMemoryGrid"></div>'
# Même choix que l'Association ci-dessus : le plateau reste
# affiché une fois le jeu terminé, seul ce bouton apparaît.
f'<div class="docMinigameRestartBar">'
f'<button type="button" class="docMemoryRestartBtn">Recommencer</button>'
f"</div>"
f'<div class="docAssocResultCard docMemoryResultCard" style="display:none;">'
f'<div class="docAssocResultBig">✓</div>'
f'<div class="docAssocResultSub docMemoryResultSub"></div>'
f'<button type="button" class="docAssocRestartBtn docMemoryRestartBtn">Recommencer</button>'
f"</div></div>"
)