Add a loot legend, a foldable Watcher's bag and a mythic halo, and move card sheet and power texts to site.json

- The destinations step opens with a legend of the four loots and what the
  green and red arrows mean.
- The Watcher's bag folds into a strip of item art and counts; the choice is
  kept by the browser.
- Mythic cards wear a slowly turning prismatic ring across the expedition
  screens; it is visual only.
- The card sheet and the stats distribution read their texts from
  cards.cardSheet, and power descriptions and their figures from
  cards.expeditions.powerText and powerDetails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-18 15:44:44 +01:00
parent 84b0d69b1f
commit 98ffe6562c
20 changed files with 361 additions and 129 deletions

View file

@ -16,7 +16,7 @@ import { formatStardust } from "./stardustFormat.js";
const OWNERSHIP_OPTIONS = [{ value: "owned", label: "Possédées" }, { value: "missing", label: "Manquantes" }, { value: "duplicates", label: "Doublons" }];
const countDuplicates = (count) => `${count} doublon${count > 1 ? "s" : ""}`;
export function CollectionPanel({ catalog, state, runMutation, busy, headingContent, recyclingContent: content, onStartTransfer }) {
export function CollectionPanel({ catalog, state, runMutation, busy, headingContent, recyclingContent: content, cardSheetContent, onStartTransfer }) {
const [search, setSearch] = useState("");
const [collectionIds, setCollectionIds] = useState([]);
const [rarities, setRarities] = useState([]);
@ -126,6 +126,6 @@ export function CollectionPanel({ catalog, state, runMutation, busy, headingCont
>
<ul className="nebula-shop-rates" aria-label={content.ratesLabel}>{catalog.rarities.map((rarity) => <li key={rarity.id} data-rarity={rarity.id}><span>{rarity.label}</span><StardustBalance value={shop.stardustValues[rarity.id] ?? 0} /></li>)}</ul>
</ConfirmModal>}
{selected && <CardDetailModal catalog={catalog} state={state} entry={selected} runMutation={runMutation} busy={busy} onClose={() => setSelected(null)} onStartTransfer={onStartTransfer} />}
{selected && <CardDetailModal catalog={catalog} state={state} entry={selected} content={cardSheetContent} runMutation={runMutation} busy={busy} onClose={() => setSelected(null)} onStartTransfer={onStartTransfer} />}
</>;
}