fix(web): consolidate player search in stats page

This commit is contained in:
dahyeon committed 2026-11-11 02:10:37 +09:00
1 parent f6686bbf17
commit cc358697d4
6 files changed
+66 -49

No files matched your search

@@ -21,6 +21,7 @@ import {
profileIconUrl,
} from '../lib/ddragon';
import {
filterLeaderboardRows,
formatOfficialMatchResult,
getMainLane,
LEADERBOARD_MIN_GAMES,
@@ -474,13 +475,12 @@ export default function CommunityInternalStatsPage() {
sort,
);
const player = leaderboardRows.find((row) => row.userId === playerId);
const matchedUsers = leaderboardQuery.data?.matchedUserIds;
const visiblePlayers = isRanking && keyword
? leaderboardRows.filter((row) => matchedUsers?.includes(row.userId))
const visiblePlayers = isRanking
? filterLeaderboardRows(leaderboardRows, keyword, leaderboardQuery.data?.matchedUserIds)
: leaderboardRows;
const hasMatchFilters = Boolean(keyword || format || playerId);
const confirmedSideWinRate = insights?.sideWinRate.confirmed;
const title = isRanking ? '선수 순위' : '최근 내전';
const title = isRanking ? '선수 전적·순위' : '최근 내전';
if (!communityId) {
return (
@@ -562,7 +562,7 @@ export default function CommunityInternalStatsPage() {
selected={isRanking}
onClick={() => updateParam('view', 'ranking')}
>
선수 순위
선수 전적·순위
</Chip>
</div>
<label className="flex h-10 w-full items-center gap-2 rounded-full border border-line-strong bg-card px-3 text-content-muted focus-within:border-content-muted sm:w-60">