Add the Guilde des Veilleurs and its daily guess-the-card quest to Sokko TCG
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m57s
Validate and deploy Sokko G / deploy (push) Successful in 12s

- La Carte du jour: one zoomed card shared by all players each Paris day, six guesses with collection and rarity hints, a fixed stardust reward and an emoji result to share.
- The Guilde des Veilleurs lists the quests, with a menu entry, a home banner and an admin section for quest settings.
- The section menu folds into a dropdown below 960 px; the home pairs the guild with the best pull and moves the opening reserve under the menu.
- The shop pack share moves to the shop collection admin page, which recalls where the pack draws its cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-14 18:43:28 +01:00
parent ecc2040352
commit 0ef213cf4f
37 changed files with 1532 additions and 127 deletions

View file

@ -0,0 +1,15 @@
// Rôle : bornes des réglages de l'administration (Boutique, Guilde) et enregistrement du réglage qu'ils partagent.
import { updateShopSetting } from "../cardsApi.js";
export const MAX_VALUE = 100_000;
export const parse = (value) => (/^\d+$/.test(value) ? Number(value) : NaN);
export const inRange = (value, min, max) => Number.isInteger(value) && value >= min && value <= max;
// Les réglages de la Boutique et de la Guilde forment un seul enregistrement côté serveur : chaque panneau n'envoie que sa
// partie, le reste vient de l'état enregistré.
export function shopSettingSaver(setting, runMutation, refreshDashboard) {
return async (changes) => {
const next = { ...setting, ...changes };
if (await runMutation(() => updateShopSetting(next.stardustValues, next.openingPrice, next.shopPackPrice, next.shopPackShare, next.dailyReward))) await refreshDashboard();
};
}