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

+53 -1
View File
@@ -1,4 +1,4 @@
import type { CompetitionPhase } from "./competition.js";
import type { CompetitionDetailResponse, CompetitionOutcome, CompetitionPhase } from "./competition.js";
import type { CompetitionFormatType } from "./format.js";
import type {
CommunityId,
@@ -23,6 +23,14 @@ export type MatchGameMode =
| "double-elimination";
export type MatchEventType = "inhouse" | "tournament";
export type MatchListView = "active" | "upcoming" | "history";
export type MatchEventStage =
| "recruiting"
| "auction"
| "team-ready"
| "team-check"
| "in-progress"
| "finished";
export type GrandFinalGameCount = 1 | 3 | 5;
export type MatchPosition = "TOP" | "JGL" | "MID" | "ADC" | "SUP";
@@ -48,6 +56,13 @@ export interface MatchTierView {
fetchedAt: IsoDateTime;
}
export interface RecentMatchParticipantRank {
tier: string;
rank?: string;
leaguePoints?: number;
fetchedAt: IsoDateTime;
}
export interface MatchParticipantView {
userId: UserId;
gameName?: string;
@@ -88,6 +103,7 @@ export interface MatchDetailResponse {
description: string;
mapId: number;
status: MatchLifecycleStatus;
eventProgress?: { stage: MatchEventStage };
scheduledAt: IsoDateTime;
maxParticipants: number;
gameCount: number;
@@ -126,6 +142,42 @@ export interface MatchSummaryResponse extends MatchDetailResponse {
historyResult?: MatchHistoryResult;
}
export interface HallOfFameResponse {
match: { id: MatchId; title: string } | null;
teams: Array<{
name: string;
captainUserId?: UserId;
members: Array<{
userId: UserId;
position?: MatchPosition;
gameName?: string;
tagLine?: string;
profileIconId?: number;
}>;
}>;
}
export type InternalMatchResultPresentation =
| {
type: "official";
competitionId: CompetitionId;
sourceRevision: number;
phase: CompetitionPhase;
formatType: CompetitionFormatType;
teams: Array<{ teamId: TeamId; name: string }>;
completedSeriesCount: number;
outcome?: CompetitionOutcome;
singleSeries?: SeriesProjection;
}
| { type: "legacy" | "unavailable" };
export type InternalMatchCompetition = Pick<
CompetitionDetailResponse,
"id" | "revision" | "teams" | "projection"
>;
export type GameAnalysisAvailability = "available" | "missing";
export interface TeamTournamentCodeView {
gameSlotId: GameSlotId;
seriesId: SeriesId;