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

@ -14,6 +14,7 @@ import { openingSettingFor, withoutOpeningSetting } from "./catalogSettings.js";
import { MythicEditor } from "./MythicEditor.jsx";
import { MythicOpeningFields } from "./MythicOpeningFields.jsx";
import { DropRatesEditor, PackAvailability, RechargeSetting } from "./PackSettings.jsx";
import { ShopPackContent } from "./ShopPackContent.jsx";
const CARD_FILTERS = [{ value: "retired", label: "Retirées des tirages" }, { value: "promotional", label: "Promotionnelles" }];
const plural = (count, singular, pluralForm = `${singular}s`) => `${count} ${count > 1 ? pluralForm : singular}`;
@ -166,7 +167,7 @@ function CollectionCards({ catalog, lookup, collection, dashboard, onConfigure }
</section>;
}
function CollectionPage({ catalog, lookup, collection, dashboard, mutateCatalog, busy }) {
function CollectionPage({ catalog, lookup, collection, dashboard, mutateCatalog, runMutation, refreshDashboard, busy }) {
const [expandedCardId, setExpandedCardId] = useState(null);
const { cards, editions, activeMythics } = collectionStats(catalog, lookup, collection);
@ -187,6 +188,8 @@ function CollectionPage({ catalog, lookup, collection, dashboard, mutateCatalog,
<dl className="nebula-admin-collection-stats"><div><dt>Cartes</dt><dd>{cards.length}</dd></div><div><dt>Variations</dt><dd>{editions.length}</dd></div><div><dt>Mythiques tirables</dt><dd>{activeMythics}</dd></div></dl>
</div>
</article>
{/* Le paquet de la boutique puise dans les autres collections : rappel de ses sources et part de ses propres cartes. */}
{collection.packCategory === "shop" && <ShopPackContent catalog={catalog} collection={collection} dashboard={dashboard} busy={busy} runMutation={runMutation} refreshDashboard={refreshDashboard} />}
{/* Taux de tirage et ouverture mythique côte à côte quand la place le permet, empilés sinon. */}
<div className="nebula-admin-collection-settings">
<section className="nds-panel nebula-admin-drop-rates" aria-labelledby="nebula-admin-drop-rates-title">
@ -206,5 +209,5 @@ export function AdminCollections({ catalog, lookup, dashboard, mutateCatalog, ru
const collection = lookup.collections.get(collectionId);
if (!collection) return <div className="nds-empty-state"><p>Cette collection n’existe pas.</p><a className="nds-button" data-variant="secondary" href="#/cards/admin/collections">Retour aux collections</a></div>;
// La clé remet à zéro filtres et panneaux ouverts quand on change de collection.
return <CollectionPage key={collection.id} catalog={catalog} lookup={lookup} collection={collection} dashboard={dashboard} mutateCatalog={mutateCatalog} busy={busy} />;
return <CollectionPage key={collection.id} catalog={catalog} lookup={lookup} collection={collection} dashboard={dashboard} mutateCatalog={mutateCatalog} runMutation={runMutation} refreshDashboard={refreshDashboard} busy={busy} />;
}