Simplify joining a Sokko TCG group and let a test player open one locally
Some checks failed
Validate and deploy Sokko G / deploy (push) Blocked by required conditions
Validate and deploy Sokko G / validate (push) Has been cancelled

- On the local dev server, a test player can open a group on one of its destinations, with the 20 s test trip; it departs by itself after 5 minutes, since only the creator may launch it.
- While a player chooses their card to join, the expedition planner is hidden; Cancel brings it back.
- Joining and readying are one button, "Valider et se mettre en prêt", at the bottom right of the loadout frame, also after "Modifier ma préparation", which now sits next to "Quitter l'expédition".
- The redundant "you are ready" block is gone: the member list already shows the Ready badge.
- The card a player sends is called their explorer in the texts about that role.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-30 11:22:35 +01:00
parent 82cebd0fd1
commit 8eb7f2e53e
12 changed files with 196 additions and 88 deletions

View file

@ -82,7 +82,8 @@ function CardPicker({ catalog, view, destination, selectedId, needs, content, on
}
// `needs` et `pickerNeeds` : pour un groupe, ses exigences rappelées au-dessus des équipements et dans le choix de la carte.
export function ExpeditionLoadout({ catalog, state, view, destination, card, onChooseCard, content, busy, runMutation, needs = null, pickerNeeds = null }) {
// `actions` : boutons du cadre (valider, annuler…), en bas à droite.
export function ExpeditionLoadout({ catalog, state, view, destination, card, onChooseCard, content, busy, runMutation, needs = null, pickerNeeds = null, actions = null }) {
// Fenêtre ouverte : « card » (choix de la carte) ou le numéro de l'emplacement d'équipement.
const [picker, setPicker] = useState(null);
// Exigences de la destination choisie pour une carte seule : elles ne donnent que la couleur des totaux.
@ -124,6 +125,7 @@ export function ExpeditionLoadout({ catalog, state, view, destination, card, onC
</section>}
</div>
</div>
{actions && <div className="nds-toolbar nebula-loadout-actions">{actions}</div>}
{picker?.engrave && progress && <EngraveModal catalog={catalog} state={state} view={view} equipmentId={picker.engrave} characterId={progress.editionId} content={content} busy={busy} runMutation={runMutation} onClose={() => setPicker(null)} />}
{picker === "sheet" && card && <CardSheet catalog={catalog} state={state} editionId={card.editionId} content={content.cardSheet} busy={busy} runMutation={runMutation} onClose={() => setPicker(null)} />}
{picker === "card" && <CardPicker catalog={catalog} view={view} destination={destination} selectedId={card?.editionId} needs={pickerNeeds} content={content} onChoose={onChooseCard} onClose={() => setPicker(null)} />}