release/86 #2

Merged
dahyeon merged 108 commits from release/86 into main 2026-07-15 08:56:05 +00:00
6 changed files with 1248 additions and 365 deletions
Showing only changes of commit e50a683336 - Show all commits

No files matched your search

@@ -191,4 +191,54 @@ describe('CommunityStatsService', () => {
response,
);
});
it('includes internal match route fields in user internal history matches', async () => {
const communityId = new mongoose.Types.ObjectId();
const matchId = new mongoose.Types.ObjectId();
const userId = new mongoose.Types.ObjectId();
const participant = record(matchId);
participant.userId = userId.toString();
participant.gameNumber = 2;
participant.riotMatchId = 'KR_1234';
const cacheService = {
get: jest.fn().mockResolvedValue(null),
set: jest.fn().mockResolvedValue(undefined),
} as unknown as jest.Mocked<CommunityStatsCacheService>;
const service = new CommunityStatsService(
{} as ConnectionService,
cacheService,
{} as MatchStatsRepository,
{} as MatchStatsService,
);
(service as unknown as { buildBaseDataset: jest.Mock }).buildBaseDataset =
jest.fn().mockResolvedValue({
season: {
id: 'all',
label: '전체',
startTime: null,
endTime: null,
},
matches: [],
records: [participant],
detailsByMatchId: new Map(),
});
const response = await service.getUserInternalHistory({
communityId,
userId,
filters: { limit: 5 },
});
expect(response.matches[0]).toMatchObject({
matchId: 'KR_1234',
internalMatchId: matchId.toString(),
gameNumber: 2,
queueLabel: '내전',
});
expect(cacheService.set).toHaveBeenCalledWith(
expect.stringContaining(`userInternal:v2:${userId.toString()}`),
response,
);
});
});
@@ -293,7 +293,7 @@ export class CommunityStatsService {
filters: CommunityStatsFilters;
}): Promise<UserInternalHistoryResponse> {
const key = this.cacheKey(
`userInternal:${params.userId.toString()}`,
`userInternal:v2:${params.userId.toString()}`,
params.communityId,
params.filters,
);
@@ -789,6 +789,8 @@ export class CommunityStatsService {
?.find((game) => game.riotMatchId === record.riotMatchId);
return {
matchId: record.riotMatchId,
internalMatchId: record.matchId,
gameNumber: record.gameNumber,
queueId: 0,
queueLabel: '내전',
gameCreation: record.gameCreation,
@@ -135,6 +135,8 @@ export interface RecentMatchTeamParticipantView {
export interface RecentMatchView {
matchId: string;
internalMatchId?: string;
gameNumber?: number;
queueId: number;
queueLabel: string;
gameCreation: number;
+2
View File
@@ -661,6 +661,8 @@ export interface ApiRecentMatchTeam {
export interface ApiRecentMatchView {
matchId: string;
internalMatchId?: string;
gameNumber?: number;
queueId: number;
queueLabel: string;
gameCreation: number;
+45
View File
@@ -122,6 +122,51 @@ body {
--color-base-300: oklch(95% 0 0); /* 구분선/보더 */
}
/* ── 실시간 입찰 피드백 모션 ──
입찰가 갱신 시 pop(스케일 펄스), 내가 밀렸을 때 shake(주의 환기). */
@keyframes lts-bid-pop {
0% {
transform: scale(1);
}
35% {
transform: scale(1.14);
}
100% {
transform: scale(1);
}
}
@keyframes lts-outbid-shake {
0%,
100% {
transform: translateX(0);
}
20% {
transform: translateX(-3px);
}
40% {
transform: translateX(3px);
}
60% {
transform: translateX(-2px);
}
80% {
transform: translateX(2px);
}
}
.animate-bid-pop {
animation: lts-bid-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
transform-origin: right center;
}
.animate-outbid-shake {
animation: lts-outbid-shake 0.4s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
.animate-bid-pop,
.animate-outbid-shake {
animation: none;
}
}
/* poro.gg style: 모든 모서리 각지게 */
*,
*::before,
File diff suppressed because it is too large. Load diff