Let players use Sokko TCG from a phone through a mobile fallback mode
#/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:
parent
0262f596c9
commit
c3e494b8a6
53 changed files with 1830 additions and 123 deletions
|
|
@ -8,6 +8,7 @@ Checklist à suivre lors de l'ajout ou de la modification d'un outil, d'une page
|
|||
- Ne pas ajouter de navigation, de composant, de libellé ou de parcours réservé au téléphone.
|
||||
- Sous `768px`, vérifier uniquement que le contenu reste accessible, que la sidebar demeure utilisable et qu'aucun débordement horizontal global n'est introduit.
|
||||
- Conserver les adaptations internes nécessaires aux composants étroits, notamment les formulaires, tableaux et outils, sans en faire une interface mobile distincte.
|
||||
- Exception : le mode mobile de dépannage de Sokko TCG (`#/mobile/cards`, voir `DESIGN_SYSTEM.md`, section 24). Une modification d'une section du TCG qu'il propose se vérifie aussi en émulation de téléphone tactile (393 × 852, le téléphone de référence), sans élément coupé ni bouton sur deux lignes ; ses adaptations restent sous la classe racine du mode mobile.
|
||||
|
||||
## Outil Toolbox
|
||||
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ change affects persisted data, imports, user interaction or delivery.
|
|||
| IndexedDB, persistence or JSON import/export | Cover canonical compaction, failures, conflicts, deletion, startup recovery and at least one concurrent-page scenario. Imports must prove atomic rejection and reference remapping. | Targeted Node and Playwright suites, then `npm run check:full`. |
|
||||
| Interaction or accessible label | Search E2E locators that use the role or accessible name. Verify focus, keyboard and pointer behavior at 768 px and any other width affected by the layout. | Targeted Playwright scenario, then `npm run check:full`. |
|
||||
| Sass, component surface or layout | Run the owning NDS/layout suites and inspect the real page at the affected desktop widths. Computed-style checks may prove stable primitives; source-text assertions do not prove rendering. | `npm run check`; add `check:full` when a workflow or interactive control changes. |
|
||||
| Sokko TCG section offered in the mobile mode (`#/mobile/cards`) | Besides the desktop widths, check the section in touch phone emulation (393 × 852, the reference phone): no clipped element, no button label wrapping, every action reachable by tap, links stay inside the mobile mode. Mobile-only styles stay under the mobile root class. | Targeted Playwright scenario in phone emulation, then `npm run check:cards`. |
|
||||
| Server, workflow or deployment | Run workflow contract tests, the direct Node server cache test when headers change, and the full browser gate. Verify the public origin only after an authorized deployment. | `npm run check:full` before delivery; post-deploy SHA and HTTP health checks afterward. |
|
||||
|
||||
## Validation Layers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue