Let players use Sokko TCG from a phone through a mobile fallback mode
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 24m57s
Validate and deploy Sokko G / deploy (push) Successful in 17s

#/mobile/cards shows the game without the site shell: a title, a footer
with the account and a discreet "Version complète" link, and a tab bar
fixed at the bottom. Phones opening #/cards are sent to the same section
in mobile mode unless the player chose the full version. Account,
History and Administration point to the computer.

The panels are the computer ones, adapted under .nebula-mobile (and
body.nebula-mobile-body for dialogs) for a 393×852 reference phone:
small cards with names under them when opening packs, a revealed card
shown large on tap, tap-to-pick team recruitment with a single Recruit
button and large stars, row lists for explorers and commons in the
expedition pickers, a race track and circuit that read at phone size,
and full-width actions throughout. Firefox no longer shows a mirrored
back on a flipped card.

Phone Playwright journeys check that every section fits the screen with
no button wrapping, then open a pack, run an expedition and recruit a
team by touch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-12-03 23:55:35 +01:00
parent 0262f596c9
commit c3e494b8a6
53 changed files with 1830 additions and 123 deletions

View file

@ -89,11 +89,12 @@ l'exemple complet à suivre. Une quête touche ces fichiers :
| Base | nouvelle migration à la fin de `MIGRATIONS` (`database.js`) |
| API | routes dans `services/cards/api.js` |
| Client | fonctions dans `website/src/features/cards/cardsApi.js` |
| Interface joueur | un sous-dossier `website/src/features/cards/<quête>/` avec `<Quête>Panel.jsx`, section dans `CardsPage.jsx` (`SUBSECTION_PARENTS`), tuile dans `GuildPanel.jsx` et `guildQuests.js` |
| Interface joueur | un sous-dossier `website/src/features/cards/<quête>/` avec `<Quête>Panel.jsx`, section dans `CardsPage.jsx` (`SUBSECTION_PARENTS`), tuile dans `GuildPanel.jsx` et `guildQuests.js` ; liens vers d'autres sections par `useCardsHref()`, jamais `#/cards/...` en dur |
| Mode mobile | si la quête se joue bien au toucher : son identifiant dans `MOBILE_SECTIONS` (`cardsRoutes.js`), ses adaptations dans `_nebula-mobile-sections.scss`, sa section dans la boucle de `e2e/nebula-cards-mobile.spec.js` ; sinon, elle affiche « Disponible sur ordinateur » en mobile |
| Administration | `admin/<Quête>Settings.jsx`, entrée dans `admin/AdminGuild.jsx` et `admin/guildQuests.js` |
| Textes et images | `site.json`, `website/public/static/img/cards/guild/quest-<quête>.webp` |
| Styles | `website/src/styles/_nebula-<quête>.scss`, ajouté à `cards-route.scss` |
| Tests | `tests/nebula-cards-<quête>.test.mjs` (à ajouter aux listes `lint:cards` et `test:cards` de `package.json`), parcours dans `e2e/nebula-cards.spec.js` |
| Tests | `tests/nebula-cards-<quête>.test.mjs` (à ajouter aux listes `lint:cards` et `test:cards` de `package.json`), parcours dans `e2e/nebula-cards.spec.js` (et `e2e/nebula-cards-mobile.spec.js` si elle est proposée en mobile) |
| Documentation | `docs/<quête>.md`, [docs/STORAGE_SCHEMA.md](docs/STORAGE_SCHEMA.md) pour les tables |
### Modifier la base du TCG