Simplify match history with filters and persistent pagination
This commit is contained in:
@@ -3,6 +3,8 @@ export const MIN_RECORDED_ROUND = 2;
|
||||
|
||||
export interface ServerMatch {
|
||||
id: number;
|
||||
game: string;
|
||||
observedRound: number | null;
|
||||
server: string;
|
||||
server_deleted_at?: string | null;
|
||||
map: string;
|
||||
@@ -42,3 +44,11 @@ export interface MatchDetail extends ServerMatch {
|
||||
startObserved: boolean;
|
||||
players: MatchPlayer[];
|
||||
}
|
||||
|
||||
export interface MatchHistoryResponse {
|
||||
matches: ServerMatch[];
|
||||
total: number;
|
||||
page: number;
|
||||
limit: number;
|
||||
maps: Array<{ key: string; name: string; game: string }>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user