feat: refresh the home page and separate match event types

Add an inhouse hero, Hall of Fame, rankings, and event-specific schedules. Carry the event type through the API and admin tools, and improve results and player history displays.
This commit is contained in:
dahyeon committed 2026-11-10 22:13:55 +09:00
1 parent 7e0cd7cb19
commit 664af15255
58 files changed
+2316 -593

No files matched your search

@@ -1,4 +1,5 @@
import mongoose, { Schema, HydratedDocument } from 'mongoose';
import type { MatchEventType } from '@lolympus/contracts';
import type {
RiotPlatformRoute,
RiotRegionalRoute,
@@ -38,6 +39,8 @@ export const MATCH_STATUSES: MatchStatus[] = [
'finished',
];
export const MATCH_EVENT_TYPES = ['inhouse', 'tournament'] as const satisfies readonly MatchEventType[];
export type TeamSide = 'blue' | 'red';
export const TEAM_SIDES: TeamSide[] = ['blue', 'red'];
@@ -686,6 +689,7 @@ export interface Match extends MongooseTimestamps {
competitionId?: mongoose.Types.ObjectId;
shortCode?: string;
title: string;
eventType?: MatchEventType;
description: string;
mapId: number; // Riot Match-V5 mapId (11=소환사의 협곡, 12=ARAM 등)
status: MatchStatus;
@@ -1954,6 +1958,7 @@ export const MatchSchema = new Schema<Match>(
maxlength: 6,
},
title: { type: String, required: true },
eventType: { type: String, enum: MATCH_EVENT_TYPES, default: 'inhouse' },
description: { type: String, required: false, default: '' },
mapId: { type: Number, required: true, default: 11 },
status: {