Let players who join a group set up their card and say when they are ready
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m30s
Validate and deploy Sokko G / deploy (push) Successful in 13s

Joining a group froze the card's stats at once and locked its
equipment, so a joining player could not equip anything. Joining now
uses the same card frame as the preparation: card, equipment and
"Améliorer la carte". Everything stays editable after joining, and the
group counts the card as it is, until the player clicks "Prêt". That
freezes the card's stats. "Modifier ma préparation" reopens it.

The creator sees each member as "Prêt" or "En préparation", with a
ready count, and can still leave at any time. A player who is not
ready leaves with their card as it is at departure. A migration marks
existing members as ready, since their stats were already frozen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-19 19:24:23 +01:00
parent dac0bdd6a7
commit c73a118ffb
16 changed files with 272 additions and 50 deletions

View file

@ -218,6 +218,9 @@
.nebula-expedition-group-members li, .nebula-expedition-report-team li { min-width: 0; }
.nebula-expedition-group-members li { display: grid; gap: var(--space-1); justify-items: center; color: var(--color-text-secondary); font-size: var(--font-size-xs); text-align: center; }
.nebula-expedition-group-members strong { color: var(--color-text-primary); }
// État de chaque membre (« Prêt », « En préparation ») : il revient à la ligne plutôt que d'élargir la place et sa carte.
.nebula-group-team .nebula-expedition-group-members li { grid-template-columns: minmax(0, 1fr); }
.nebula-expedition-group-members .nds-badge { max-width: 100%; white-space: normal; text-align: center; }
.nebula-expedition-group-free { display: grid; place-items: center; width: 100%; aspect-ratio: 5 / 7; padding: var(--space-2); border: 2px dashed var(--color-border); border-radius: 16px; background: rgba(0, 0, 0, 0.18); }
// Rappel des exigences d'une expédition en préparation : une ligne par stat, puis condition et dangers, pouce vert ou rouge.
.nebula-group-recap { display: grid; gap: var(--space-3); width: 100%; box-sizing: border-box; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.18); }
@ -231,7 +234,9 @@
.nebula-group-recap-row strong[data-met="true"] { color: var(--color-success); }
.nebula-group-recap-row strong[data-met="false"] { color: var(--color-danger); }
.nebula-expedition-group-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.nebula-expedition-join { display: grid; gap: var(--space-3); justify-self: stretch; padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
// Carte du joueur qui rejoint ou est inscrit : sous toute la largeur du groupe.
.nebula-expedition-join { display: grid; grid-column: 1 / -1; gap: var(--space-3); justify-self: stretch; padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.nebula-expedition-join h5, .nebula-expedition-join > .nebula-form-help { margin: 0; }
// Répartition des statistiques, dans un cadre : « Par défaut » ou « Personnalisé » (ses points juste dessous) dans un premier
// sous-cadre, les profils (étoile or sur le plus adapté) dans un second ; celui du choix en cours est souligné d'or. Puis la