feat: connect tournament views to APIs and recover archived stats

Remove development previews and complete hall of fame, match history, official results, and multi-kill API integration.

Fix active match pagination and team-ready controls, preserve basic scoreboards, and recover statistics when Riot archives arrive.

Use bounded in-process cache invalidation retries and add the Riot match lookup index migration with regression coverage.
This commit is contained in:
dahyeon committed 2026-11-11 02:00:35 +09:00
1 parent 20e1e6ec04
commit 0d7617e2d2
70 files changed
+3739 -1793

No files matched your search

+11 -16
View File
@@ -52,11 +52,11 @@ import {
RANK_FILTER_TABS,
} from "../lib/riot-history";
import {
mockLargestMultiKill,
multiKillLabel,
rankPositionRates,
} from "../lib/multi-kill";
import { ResponsiveTierLabel } from "../components/RankBadge";
import { formatRankDetail } from "../components/rankBadgeUtils";
import {
InternalGameAnalysisPanel,
InternalGameDetailTabBar,
@@ -647,8 +647,12 @@ function ParticipantRow({
>
{participantName}
</div>
{/* 티어 (임시: 백엔드 연동 전까지 비움 — 라인은 행 순서로 식별) */}
<div className="truncate text-xs text-base-content/30">—</div>
{participant.tier && (
<div className="truncate text-xs text-content-muted"
title={`저장된 티어 · ${formatLastFetched(participant.tier.fetchedAt)}`}>
{formatRankDetail(participant.tier)}
</div>
)}
</div>
</div>
@@ -782,10 +786,9 @@ function resolveInternalDetailGame(
match: ApiRecentMatchView,
) {
if (!detail) return undefined;
return (
detail.games.find((game) => game.gameNumber === match.gameNumber) ??
detail.games.find((game) => game.riotMatchId === match.matchId) ??
detail.games[0]
return detail.games.find(
(game) => game.riotMatchId === match.matchId &&
(match.gameNumber === undefined || game.gameNumber === match.gameNumber),
);
}
@@ -914,14 +917,7 @@ function RecentMatchCard({
ownerParticipantId: string;
}) {
const [expanded, setExpanded] = useState(false);
// 응답에 값이 없을 때 개발 화면에서만 목업으로 배지 모양을 확인한다.
const isMockMultiKill =
match.largestMultiKill === undefined && import.meta.env.DEV;
const multiKill = multiKillLabel(
isMockMultiKill
? mockLargestMultiKill(match.kills)
: match.largestMultiKill,
);
const multiKill = multiKillLabel(match.largestMultiKill);
const championName =
championDisplayName(manifest, match.championId) ?? String(match.championId);
const outcome = match.remake ? "remake" : match.win ? "win" : "loss";
@@ -964,7 +960,6 @@ function RecentMatchCard({
{multiKill && (
<span
className="mt-1 inline-flex h-5 items-center rounded-full border border-leaf px-2 text-[11px] font-semibold text-leaf"
title={isMockMultiKill ? "목업 데이터 (API 미지원)" : undefined}
>
{multiKill}
</span>