feat: enhance auction interactions and player statistics UI

This commit is contained in:
dahyeon committed 2026-11-11 20:06:22 +09:00
1 parent 6c582ba3cf
commit be4de61bb7
115 files changed
+13292 -2871

No files matched your search

+4 -17
View File
@@ -1,6 +1,6 @@
import { lazy, Suspense, useState } from "react";
import { useQueryClient } from "@tanstack/react-query";
import { ArrowDown, ChevronDown, ChevronUp, RefreshCw, X } from "lucide-react";
import { ArrowDown, RefreshCw, X } from "lucide-react";
import { useLocation, useParams, useSearchParams } from "react-router";
import {
Chip,
@@ -916,7 +916,6 @@ function RecentMatchCard({
manifest: DdragonManifest | null | undefined;
ownerParticipantId: string;
}) {
const [expanded, setExpanded] = useState(false);
const multiKill = multiKillLabel(match.largestMultiKill);
const championName =
championDisplayName(manifest, match.championId) ?? String(match.championId);
@@ -974,18 +973,7 @@ function RecentMatchCard({
<ItemGrid items={match.items} trinket={match.trinket} manifest={manifest} itemKey={match.matchId} />
</div>
<MatchRoster teams={match.teams} manifest={manifest} ownerParticipantId={ownerParticipantId} />
<button
type="button"
onClick={() => setExpanded((current) => !current)}
className="ml-auto flex min-h-9 shrink-0 items-center gap-1 rounded-field px-2 text-xs font-semibold text-content-muted hover:text-content focus-visible:-outline-offset-2"
aria-expanded={expanded}
aria-label={expanded ? "상세 전적 접기" : "상세 전적 펼치기"}
>
<span className="lg:sr-only">{expanded ? "상세 접기" : "상세 보기"}</span>
{expanded ? <ChevronUp className="size-4" aria-hidden="true" /> : <ChevronDown className="size-4" aria-hidden="true" />}
</button>
</div>
{expanded && (
<div className="border-t border-line bg-card">
<div className="flex flex-wrap items-center gap-x-4 gap-y-2 border-b border-line px-4 py-3 text-xs text-content-muted">
<span>Lv.{match.championLevel}</span>
@@ -995,7 +983,6 @@ function RecentMatchCard({
</div>
<MatchDetailTabs match={match} manifest={manifest} ownerParticipantId={ownerParticipantId} />
</div>
)}
</article>
);
}
@@ -1575,12 +1562,12 @@ export default function UserHistoryPage() {
</Panel>
{profile.tierHistory.length > 0 && !isInternalQueue && (
<details className="lts-panel">
<summary className="cursor-pointer px-4 py-3 text-sm font-semibold">티어 그래프</summary>
<section className="lts-panel">
<h2 className="px-4 py-3 text-sm font-semibold">티어 그래프</h2>
<Suspense fallback={<div className="h-[180px]" />}>
<TierHistoryChart entries={profile.tierHistory} />
</Suspense>
</details>
</section>
)}
<div