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

@ -1,6 +1,11 @@
// Rôle : fournit un champ NDS d'autocomplete libre pour les catégories.
import { forwardRef, useId, useMemo, useRef, useState } from "react";
// Recherche sans casse ni accents : « neant » trouve « Néant ».
function searchKey(value) {
return value.normalize("NFD").replace(/\p{Diacritic}/gu, "").toLowerCase();
}
function normalizeOptions(options) {
const seen = new Set();
return (options || [])
@ -35,9 +40,9 @@ export const CategoryAutocompleteInput = forwardRef(function CategoryAutocomplet
const cleanOptions = useMemo(() => normalizeOptions(options), [options]);
const cleanValue = String(value || "");
const filteredOptions = useMemo(() => {
const query = cleanValue.trim().toLowerCase();
const query = searchKey(cleanValue.trim());
const matches = query
? cleanOptions.filter((option) => option.toLowerCase().includes(query))
? cleanOptions.filter((option) => searchKey(option).includes(query))
: cleanOptions;
return matches.slice(0, maxOptions);
}, [cleanOptions, cleanValue, maxOptions]);