Commit graph

7 commits

Author SHA1 Message Date
ac81b5e22f Move TCG gauges, badges and tooltips onto the NDS
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 25m18s
Validate and deploy Sokko G / deploy (push) Successful in 16s
- nds-progress tint variant, nds-badge sm size and tint variant
- --color-scrim and --color-bg-inset tokens
- native title attributes replaced by Tooltip
- TCG colors equal to a token now reference it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 19:44:00 +01:00
ced3bc818d Add an expedition set workshop to build sets without equipping
Some checks failed
Validate and deploy Sokko G / validate (push) Failing after 19m52s
Validate and deploy Sokko G / deploy (push) Has been skipped
- "Créer un set" opens a workshop from the explorer frame, or from the
  tab bar while preparation is hidden, even during an expedition: pick
  an explorer, draft its equipment, see the stats against its current
  gear and the tag synergies with cross-highlight, then save the set.
- The server accepts a set's equipment as a validated draft
  (SET_EQUIPMENT_INVALID for closed slots, unowned or duplicate commons).
- Tag search from the workshop opens the commons picker with that tag
  chosen; empty pickers and the empty sets window get a centered
  empty state with a clear or create action.
- Card tags read as a calm list and synergy shows inside the stats box;
  CardPicker moves to its own file.
- Tests, e2e paths and design docs cover the workshop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 15:40:19 +01:00
504c709848 Let players switch collection views from clear tiles, filter explorer and equipment pickers with a tag and name autocomplete and multi-stat builds, read card stats as gauges with art badges for affinity, tags and worn commons, see short power effects, and save expedition sets that move shared commons between explorers
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 25m6s
Validate and deploy Sokko G / deploy (push) Successful in 17s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 12:05:04 +01:00
c3e494b8a6 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>
2026-12-03 23:55:35 +01:00
aa8bb1ebaa Split dailyShare.js and document the shared exported functions with JSDoc
dailyShare.js held fillTemplate and formatCountdown, used across the whole TCG,
under a Daily Card name. They now live in textFormat.js at the root, and the
Daily Card helpers in daily/dailyFormat.js.

173 exported functions that other files call now explain what they return and
how they treat missing values: the server game rules, the toolbox storage chain,
the shared hooks and utilities, and the TCG display helpers. website/AGENTS.md
asks the same of new shared functions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:32:20 +01:00
166790245f Turn the comments that describe functions into JSDoc so the editor shows them on hover
The 669 // comments sitting right above a function, method or hook become
/** */ blocks, unchanged in wording; eslint directives stay right above the
line they target. website/AGENTS.md now asks for JSDoc on function comments
and // inside function bodies. ExpeditionPlanner.jsx grew past 300 lines and
gets its full header, as the header test requires.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:51:47 +01:00
88c7bf8317 Group Sokko TCG's interface files by Guild quest and card rendering
The 48 files of the Daily Card, Expeditions, Daily Team and race, Broken
Mirror and card rendering move to daily/, expeditions/, team/, mirror/ and
rendering/ under website/src/features/cards, with every relative import
rewritten. The root keeps the page, server calls, cache and the player
sections outside the Guild. The cards README, the quest recipe and the
current docs follow the new paths; dated audits and plans keep theirs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:35:18 +01:00
Renamed from website/src/features/cards/ExpeditionEquipmentSlots.jsx (Browse further)