Bilan du match : page, courbe des chances de gagner le match, listes et accès

Page #/matchs/<id>/bilan (en-tête, courbe continue lue au doigt, partie par
partie, jeu, videau, moment décisif, décision à revoir, export SGF, prompt).
Un match tient en une ligne dans Mes parties et la progression ; le bilan et
l'analyse d'une partie de match y renvoient. Test navigateur d'un match en
5 points remonté de 0–4. ADR 0007 et 0013 amendés, plan clos.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pierre MARTIN
2026-11-13 00:21:24 +01:00
co-authored by Claude Opus 5.5
parent 68664dc3f7
commit 3b0107af1b
26 changed files with 2273 additions and 97 deletions
+265
View File
@@ -3948,3 +3948,268 @@ html.landscape .prompting .prompt-text {
.viewer-actions {
flex-wrap: wrap;
}
/* ------------------------------------------- Bilan du match (1l) */
/* Charte, ecrans-etape-1.md, « Bilan du match » : une page qui défile ; en
* paysage, deux colonnes (l'en-tête, la courbe et les parties à gauche ; le
* jeu, le videau, le moment décisif, la décision à revoir et les actions à
* droite). */
.match-summary {
max-width: var(--page-width);
}
html.landscape .match-summary {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
column-gap: var(--space-6);
align-items: start;
max-width: 60rem;
}
.match-column {
min-width: 0;
}
.match-head .overline {
margin-top: var(--space-3);
}
.match-head .progression-title {
margin-top: var(--space-1);
}
/* La courbe : la zone tactile est tout son cadre. */
.match-curve {
height: 196px;
}
.match-crawford { fill: var(--surface-sunken); }
.match-separator { stroke: var(--border); stroke-width: 1; }
.match-score { fill: var(--text); font-weight: 700; }
.match-mark-ring { fill: none; stroke: var(--last-move); stroke-width: 3; }
.match-mark-review { fill: var(--verdict-bad); }
.match-mark-end { fill: var(--text); }
.match-mark-end.won { fill: var(--verdict-good); }
.match-bubble { cursor: pointer; }
.match-bubble-box { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1; }
.match-bubble-text { fill: var(--text); font-size: 13px; font-weight: 700; }
.match-bubble-hint { fill: var(--accent); font-size: 12px; text-decoration: underline; }
/* La légende : trois marques, sans autre couleur. */
.match-legend {
display: flex;
flex-wrap: wrap;
gap: var(--space-1) var(--space-3);
margin: var(--space-2) 0 0;
padding: 0;
list-style: none;
font-size: 13px;
color: var(--muted);
}
.match-legend li {
display: inline-flex;
gap: 6px;
align-items: center;
}
.match-mark {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%;
}
.match-mark.decisive { border: 3px solid var(--last-move); }
.match-mark.review { background: var(--verdict-bad); }
.match-mark.end { background: var(--text); }
.match-mark.end.won { background: var(--verdict-good); }
/* « Partie par partie » : une ligne de 52 px par partie, le score après
* la partie en chiffres gras à droite. */
.match-games {
margin: 0 0 var(--space-4);
}
.match-games > .caption {
margin-top: var(--space-2);
}
.match-game {
min-height: 52px;
}
.match-game-score {
flex: none;
font-size: 22px;
line-height: 26px;
font-weight: 800;
font-variant-numeric: tabular-nums;
}
/* « Votre jeu sur le match » : trois tuiles, puis les jauges. */
.match-tiles {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: var(--space-2);
margin-bottom: var(--space-3);
}
.match-tile {
display: flex;
flex-direction: column;
padding: var(--space-2);
background: var(--surface-sunken);
border-radius: var(--radius-sm);
}
.match-tile strong {
font-size: 24px;
line-height: 30px;
font-variant-numeric: tabular-nums;
}
.match-sentence {
margin: 0 0 var(--space-2);
}
.match-cube-list {
display: flex;
flex-direction: column;
gap: var(--space-1);
margin: 0 0 var(--space-2);
padding: 0;
list-style: none;
}
.match-cube-row {
display: flex;
gap: var(--space-3);
align-items: center;
min-height: 52px;
color: inherit;
text-decoration: none;
border-top: 1px solid var(--border);
}
.match-cube-row > .icon {
flex: none;
width: 20px;
height: 20px;
color: var(--muted);
}
/* Une perte, colorée comme le verdict. */
.match-loss {
flex: none;
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.match-loss[data-verdict="doubtful"] { color: var(--verdict-doubtful); }
.match-loss[data-verdict="bad"],
.match-loss[data-verdict="veryBad"] { color: var(--verdict-bad); }
.match-agreement {
margin: 0;
}
.match-summary .summary-review {
padding-top: var(--space-3);
border-top: 1px solid var(--border);
}
.match-summary .summary-verdict {
display: inline-flex;
gap: 6px;
align-items: center;
margin: 0;
font-weight: 700;
}
.match-summary .summary-master {
margin: var(--space-1) 0 0;
font-style: italic;
}
.match-export {
margin: 0 0 var(--space-3);
}
.match-actions {
margin-bottom: var(--space-4);
}
.match-actions > * {
flex: 1 1 0;
height: var(--button-height);
padding: 0 12px;
}
/* Sous l'en-tête du bilan d'une partie de match. */
.summary-match {
margin: 0;
}
.summary-match a {
display: inline-flex;
align-items: center;
min-height: 44px;
color: var(--accent);
}
/* En tête de l'analyse d'une partie de match : « ‹ Partie 2 sur 5 · 0–2 › ». */
.analysis-match {
margin: 0 0 var(--space-3);
}
#analysis-previous-game .icon {
transform: rotate(180deg);
}
.analysis-match .viewer-step:not([href]) {
opacity: 0.35;
pointer-events: none;
}
/* Un match en une ligne (« Mes parties », progression) : un trait par
* partie, vert si vous l'avez gagnée ; en pointillés, la partie à venir
* d'un match en cours. */
.match-line {
display: flex;
gap: var(--space-2);
align-items: center;
}
.match-line-link {
flex: 1;
min-width: 0;
}
.match-strokes {
display: flex;
gap: 3px;
margin: 3px 0;
}
.match-stroke {
width: 18px;
height: 0;
border-top: 4px solid var(--border-strong);
border-radius: 2px;
}
.match-stroke.won { border-top-color: var(--verdict-good); }
.match-stroke.next { border-top: 3px dashed var(--border-strong); }
.match-resume {
flex: none;
margin-right: var(--space-2);
padding: 0 16px;
}
.games-match .match-line {
padding: var(--space-1) 0;
}
+4
View File
@@ -114,6 +114,10 @@
parties terminées, construite par app/src/ui/progression-view.ts. -->
<section id="progression" class="analysis progression page" hidden></section>
<!-- Le bilan d'un match entier (#/matchs/<id>/bilan, étape 1l), construit
par app/src/ui/match-summary-view.ts. -->
<section id="match-summary" class="analysis match-summary page" hidden></section>
<!-- L'aide : un onglet par adresse (#/aide, #/glossaire, #/a-propos). -->
<section id="help" class="help page" hidden>
<!-- La barre haute de l'aide reste en vue quand la page défile. -->