Turn the Guild page into a guild hall and put the race circuit forward
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 23m7s
Validate and deploy Sokko G / deploy (push) Successful in 17s

The Guild page becomes a guild hall: a counter with the Watchers' dragon and
the day's quest progress, the Expeditions highlighted as the main mission,
the player's team with golden stars and balms, and a quest board whose
illustrations are clickable. The race page now opens on the day's circuit,
explained for newcomers, and the team and race pages drop their links to
each other.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-26 15:39:14 +01:00
parent b179a40a04
commit 327337075b
18 changed files with 331 additions and 212 deletions

View file

@ -26,3 +26,23 @@ export function guildQuests(state, now = Date.now()) {
}
export const pendingQuestCount = (state) => guildQuests(state).filter((quest) => quest.pending).length;
// Quête quotidienne terminée aujourd'hui.
export function questDone({ id, summary }) {
if (id === "daily") return summary.status !== "playing" && !summary.rewardPending;
if (id === "race") return summary.race === "finished";
return false;
}
// Ce que dit la Guilde au comptoir : la prochaine chose à faire, dans l'ordre du jour, puis le butin d'une expédition revenue.
export function guildGreeting(state, now = Date.now()) {
const { daily, team, expeditions } = state;
const teamOpen = Boolean(team?.enabled);
if (daily?.rewardPending) return "reward";
if (daily?.status === "playing") return teamOpen && team.status !== "ready" ? "dailyFirst" : "daily";
if (teamOpen && team.status === "recruiting") return "recruiting";
if (teamOpen && team.status !== "ready") return "recruit";
if (teamOpen && team.race !== "finished") return "race";
if (expeditions && (expeditions.returned > 0 || (expeditions.nextReturnAt != null && expeditions.nextReturnAt <= now))) return "loot";
return "done";
}