Rework the expedition screens: in-place return, illustrated bag and workshop, card sheet tabs and an engraving workshop

Expeditions
- The journey keeps the destination landscape still while a sky scenery
  (clouds, floating isles, shards, sparkles) drifts behind the cards.
- A returned expedition shows only what the player receives, in place and
  without a window; claiming it removes the card and confirms with a notice,
  and the page reloads by itself when an expedition comes back.
- The Guild Keeper slots are gone: group requirements scale with the players.
- Local development adds a 20-second test duration, a test player for groups
  and keeps the dev account stocked with every item.
- The Wind Rose has no daily limit and is used from the destinations step.
- The Guide Star opens a destination one level below the player's highest daily
  level, the Sky Chart one at that level; bonus destinations are badged with
  the item that opened them.

Bag and workshop
- The Watcher's bag is a grid of illustrated item cards, ordered from the
  destination items, with a short "Utiliser" button; the six missing item
  illustrations are added.
- The workshop opens in a window with illustrated commons, spare counts on the
  cards, cancel without spending anything, and shows the crafted card with its
  description and power.
- The engraving workshop picks a common first, then a tag from a chosen
  character card (in its tag colours) or from every tag, filtered by name and
  family; card lists filter by name, collection and stat.

Card sheet
- Two tabs: the card and its lore (default from the collection), and its
  improvement (default from the expeditions) with a summary of power, level,
  experience and stats.
- "Répartition des statistiques" offers Par défaut, Personnalisé and profiles,
  previews the change in the summary, and a Parchemin d'oubli resets it to
  Personnalisé so the next choice is free again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-18 13:36:01 +01:00
parent 7a0d19da75
commit 30413de036
48 changed files with 1506 additions and 433 deletions

View file

@ -98,7 +98,7 @@ function InviteLink({ groupId, content }) {
}
// `invited` : le joueur arrive par le lien d'invitation de cette expédition : elle est mise en vue, son inscription dépliée.
export function ExpeditionGroupCard({ catalog, group, cards, content, now, busy, limitReached, onJoin, onLeave, onDepart, invited = false }) {
export function ExpeditionGroupCard({ catalog, group, cards, content, now, busy, limitReached, onJoin, onLeave, onDepart, onTestPlayer = null, invited = false }) {
const [joining, setJoining] = useState(invited && group.canJoin && !limitReached);
const articleRef = useRef(null);
useEffect(() => { if (invited) articleRef.current?.scrollIntoView({ block: "center" }); }, [invited]);
@ -119,12 +119,13 @@ export function ExpeditionGroupCard({ catalog, group, cards, content, now, busy,
})}
{Array.from({ length: group.freeSlots }, (_, index) => <li key={`free-${index}`}><span className="nebula-expedition-group-free">{content.groupFreeRole}</span></li>)}
</ul>
{group.freeSlots > 0 && <p className="nebula-form-help">{group.members.length > 1 ? content.groupKeeper : content.soloKeeper}</p>}
{group.freeSlots > 0 && <p className="nebula-form-help">{content.groupScaling}</p>}
</section>
<div className="nds-toolbar nebula-expedition-group-actions">
{group.canJoin && !joining && <button className="nds-button" data-size="sm" data-variant="primary" type="button" disabled={busy || limitReached} onClick={() => setJoining(true)}>{content.join}</button>}
{group.isCreator && <button className="nds-button" data-size="sm" data-variant="primary" type="button" disabled={busy || !group.canDepart} onClick={() => onDepart(group.id)}>{content.depart}</button>}
{group.isMember && <button className="nds-button" data-size="sm" data-variant="secondary" type="button" disabled={busy} onClick={() => onLeave(group.id)}>{group.isCreator ? content.dissolve : content.leave}</button>}
{onTestPlayer && group.isMember && group.freeSlots > 0 && <button className="nds-button" data-size="sm" data-variant="ghost" type="button" disabled={busy} onClick={() => onTestPlayer(group.id)}>{content.testPlayer}</button>}
</div>
</div>
<div className="nebula-group-main">