diff --git a/apps/web/index.html b/apps/web/index.html index 5e3836a..050ad51 100644 --- a/apps/web/index.html +++ b/apps/web/index.html @@ -1,10 +1,11 @@ - + + - web + persona-lenz
diff --git a/apps/web/package.json b/apps/web/package.json index b370493..80e9109 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -13,7 +13,9 @@ "dependencies": { "@persona-lenz/shared": "workspace:*", "react": "^19.2.7", - "react-dom": "^19.2.7" + "react-dom": "^19.2.7", + "react-router-dom": "^7.18.1", + "recharts": "^3.9.1" }, "devDependencies": { "@eslint/js": "^10.0.1", diff --git a/apps/web/public/favicon.svg b/apps/web/public/favicon.svg index 6893eb1..5d7a2b7 100644 --- a/apps/web/public/favicon.svg +++ b/apps/web/public/favicon.svg @@ -1 +1,4 @@ - \ No newline at end of file + + + + diff --git a/apps/web/public/icons.svg b/apps/web/public/icons.svg deleted file mode 100644 index e952219..0000000 --- a/apps/web/public/icons.svg +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/apps/web/src/App.css b/apps/web/src/App.css index f90339d..560ac2a 100644 --- a/apps/web/src/App.css +++ b/apps/web/src/App.css @@ -1,184 +1,558 @@ -.counter { - font-size: 16px; - padding: 5px 10px; - border-radius: 5px; - color: var(--accent); - background: var(--accent-bg); - border: 2px solid transparent; - transition: border-color 0.3s; - margin-bottom: 24px; - - &:hover { - border-color: var(--accent-border); - } - &:focus-visible { - outline: 2px solid var(--accent); - outline-offset: 2px; - } -} - -.hero { - position: relative; - - .base, - .framework, - .vite { - inset-inline: 0; - margin: 0 auto; - } - - .base { - width: 170px; - position: relative; - z-index: 0; - } - - .framework, - .vite { - position: absolute; - } - - .framework { - z-index: 1; - top: 34px; - height: 28px; - transform: perspective(2000px) rotateZ(300deg) rotateX(44deg) rotateY(39deg) - scale(1.4); - } - - .vite { - z-index: 0; - top: 107px; - height: 26px; - width: auto; - transform: perspective(2000px) rotateZ(300deg) rotateX(40deg) rotateY(39deg) - scale(0.8); - } -} - -#center { +.app-shell { + min-height: 100svh; display: flex; flex-direction: column; - gap: 25px; - place-content: center; +} + +.app-header { + min-height: 72px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 24px; + padding: 0 32px; + border-bottom: 1px solid var(--border); + background: color-mix(in srgb, var(--surface) 86%, transparent); + backdrop-filter: blur(14px); + position: sticky; + top: 0; + z-index: 10; +} + +.brand { + min-width: 0; + display: inline-flex; + align-items: center; + gap: 12px; + color: var(--text-strong); + text-decoration: none; +} + +.brand-mark { + width: 40px; + height: 40px; + display: inline-grid; place-items: center; - flex-grow: 1; - - @media (max-width: 1024px) { - padding: 32px 20px 24px; - gap: 18px; - } + border: 1px solid var(--accent); + border-radius: 8px; + color: var(--accent); + font-size: 13px; + font-weight: 800; } -#next-steps { - display: flex; +.brand-copy { + min-width: 0; + display: grid; + gap: 2px; +} + +.brand-copy strong, +.brand-copy span { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.brand-copy strong { + font-size: 15px; +} + +.brand-copy span { + color: var(--text-muted); + font-size: 12px; +} + +.header-status, +.status-pill { + display: inline-flex; + align-items: center; + min-height: 28px; + max-width: 100%; + padding: 0 10px; + border: 1px solid var(--border); + border-radius: 999px; + color: var(--text-muted); + font-size: 12px; + font-weight: 700; + line-height: 1; + text-transform: uppercase; + white-space: nowrap; +} + +.app-main { + width: min(1180px, calc(100% - 32px)); + flex: 1; + margin: 0 auto; + padding: 48px 0; +} + +.riot-disclaimer { + padding: 18px 32px 24px; border-top: 1px solid var(--border); - text-align: left; - - & > div { - flex: 1 1 0; - padding: 32px; - @media (max-width: 1024px) { - padding: 24px 20px; - } - } - - .icon { - margin-bottom: 16px; - width: 22px; - height: 22px; - } - - @media (max-width: 1024px) { - flex-direction: column; - text-align: center; - } + color: var(--text-subtle); + font-size: 12px; + line-height: 1.55; } -#docs { - border-right: 1px solid var(--border); - - @media (max-width: 1024px) { - border-right: none; - border-bottom: 1px solid var(--border); - } +.home-view { + display: grid; + grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr); + gap: 32px; + align-items: start; } -#next-steps ul { - list-style: none; - padding: 0; +.home-copy, +.analysis-form, +.progress-panel, +.chart-section, +.champion-section, +.insight-section, +.dashboard-summary { + border: 1px solid var(--border); + border-radius: 8px; + background: var(--surface); +} + +.home-copy { + min-height: 430px; display: flex; + flex-direction: column; + justify-content: space-between; + padding: 36px; +} + +.eyebrow { + margin: 0 0 12px; + color: var(--accent); + font-size: 12px; + font-weight: 800; + letter-spacing: 0; + text-transform: uppercase; +} + +.lead-copy { + max-width: 740px; + margin: 0; + color: var(--text-muted); + font-size: 16px; + line-height: 1.7; +} + +.home-facts { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 12px; + margin: 36px 0 0; +} + +.home-facts div, +.summary-stat { + min-width: 0; + padding: 14px; + border: 1px solid var(--border); + border-radius: 8px; + background: var(--surface-soft); +} + +.home-facts dt, +.summary-stat span, +.progress-meta span, +.champion-copy span { + display: block; + color: var(--text-subtle); + font-size: 12px; + font-weight: 700; + line-height: 1.4; + text-transform: uppercase; +} + +.home-facts dd, +.summary-stat strong, +.progress-meta strong { + display: block; + margin: 6px 0 0; + color: var(--text-strong); + font-size: 15px; + line-height: 1.35; +} + +.analysis-form { + display: grid; + gap: 18px; + padding: 24px; +} + +.form-header, +.section-heading { + display: flex; + align-items: center; + justify-content: space-between; + gap: 16px; +} + +.field { + display: grid; gap: 8px; - margin: 32px 0 0; - - .logo { - height: 18px; - } - - a { - color: var(--text-h); - font-size: 16px; - border-radius: 6px; - background: var(--social-bg); - display: flex; - padding: 6px 12px; - align-items: center; - gap: 8px; - text-decoration: none; - transition: box-shadow 0.3s; - - &:hover { - box-shadow: var(--shadow); - } - .button-icon { - height: 18px; - width: 18px; - } - } - - @media (max-width: 1024px) { - margin-top: 20px; - flex-wrap: wrap; - justify-content: center; - - li { - flex: 1 1 calc(50% - 8px); - } - - a { - width: 100%; - justify-content: center; - box-sizing: border-box; - } - } } -#spacer { - height: 88px; - border-top: 1px solid var(--border); - @media (max-width: 1024px) { - height: 48px; - } +.field span { + color: var(--text-muted); + font-size: 13px; + font-weight: 700; } -.ticks { - position: relative; +.field input { width: 100%; + min-height: 48px; + box-sizing: border-box; + border: 1px solid var(--border-strong); + border-radius: 8px; + background: var(--surface-soft); + color: var(--text-strong); + font: inherit; + outline: none; + padding: 0 14px; +} - &::before, - &::after { - content: ''; - position: absolute; - top: -4.5px; - border: 5px solid transparent; +.field input:focus { + border-color: var(--accent); + box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent); +} + +.primary-action, +.secondary-action { + min-height: 44px; + display: inline-flex; + align-items: center; + justify-content: center; + border: 1px solid transparent; + border-radius: 8px; + font-size: 14px; + font-weight: 800; + text-decoration: none; + white-space: nowrap; + cursor: pointer; +} + +.primary-action { + background: var(--accent); + color: #07110e; + padding: 0 18px; +} + +.primary-action:disabled { + cursor: not-allowed; + opacity: 0.55; +} + +.secondary-action { + border-color: var(--border-strong); + background: var(--surface-soft); + color: var(--text-strong); + padding: 0 16px; +} + +.message { + margin: 0; + border-radius: 8px; + padding: 12px 14px; + font-size: 14px; + line-height: 1.55; +} + +.message-error { + border: 1px solid color-mix(in srgb, var(--danger) 52%, var(--border)); + background: color-mix(in srgb, var(--danger) 13%, var(--surface)); + color: var(--danger-strong); +} + +.message-warning { + border: 1px solid color-mix(in srgb, var(--warning) 52%, var(--border)); + background: color-mix(in srgb, var(--warning) 13%, var(--surface)); + color: var(--warning-strong); +} + +.progress-view { + display: grid; + place-items: center; + min-height: calc(100svh - 240px); +} + +.progress-panel { + width: min(760px, 100%); + padding: 32px; +} + +.progress-meter { + height: 12px; + margin: 28px 0 18px; + overflow: hidden; + border-radius: 999px; + background: var(--surface-soft); +} + +.progress-meter span { + display: block; + height: 100%; + border-radius: inherit; + background: var(--accent); + transition: width 200ms ease; +} + +.progress-meta { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 12px; + margin-bottom: 18px; +} + +.progress-meta div { + min-width: 0; + padding: 14px; + border: 1px solid var(--border); + border-radius: 8px; + background: var(--surface-soft); +} + +.action-row { + display: flex; + flex-wrap: wrap; + gap: 12px; + margin-top: 20px; +} + +.dashboard-view { + display: grid; + gap: 20px; +} + +.dashboard-summary { + display: grid; + grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr); + gap: 28px; + align-items: end; + padding: 28px; +} + +.summary-stat-grid { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 10px; +} + +.chart-section, +.champion-section, +.insight-section { + padding: 24px; +} + +.radar-frame { + min-height: 380px; + margin-top: 18px; +} + +.insight-grid { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 20px; +} + +.metric-card-list { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 10px; + margin-top: 16px; +} + +.metric-card { + min-width: 0; + min-height: 94px; + display: flex; + flex-direction: column; + justify-content: space-between; + gap: 12px; + border: 1px solid var(--border); + border-radius: 8px; + background: var(--surface-soft); + padding: 14px; +} + +.metric-card span { + color: var(--text-muted); + font-size: 13px; + line-height: 1.35; +} + +.metric-card strong { + color: var(--text-strong); + font-size: 24px; + line-height: 1; +} + +.champion-list { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 10px; + margin-top: 16px; +} + +.champion-row { + min-width: 0; + display: flex; + align-items: center; + gap: 12px; + border: 1px solid var(--border); + border-radius: 8px; + background: var(--surface-soft); + padding: 12px; +} + +.champion-icon { + width: 44px; + height: 44px; + flex: 0 0 44px; + border-radius: 8px; + background: var(--border); + object-fit: cover; +} + +.champion-placeholder { + display: inline-block; + border: 1px solid var(--border-strong); +} + +.champion-copy { + min-width: 0; + display: grid; + gap: 4px; +} + +.champion-copy strong { + overflow: hidden; + color: var(--text-strong); + font-size: 15px; + text-overflow: ellipsis; + white-space: nowrap; +} + +.empty-view { + min-height: calc(100svh - 240px); + display: grid; + place-content: center; + justify-items: start; + gap: 18px; +} + +.empty-copy { + margin: 16px 0 0; + color: var(--text-muted); +} + +.skeleton { + position: relative; + overflow: hidden; + border-radius: 8px; + background: var(--surface); +} + +.skeleton::after { + content: ''; + position: absolute; + inset: 0; + background: linear-gradient( + 90deg, + transparent, + color-mix(in srgb, var(--text-muted) 10%, transparent), + transparent + ); + animation: skeleton-sheen 1.4s linear infinite; +} + +.skeleton-title { + width: min(420px, 100%); + height: 92px; +} + +.skeleton-grid { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 20px; +} + +.skeleton-panel { + min-height: 280px; +} + +@keyframes skeleton-sheen { + from { + transform: translateX(-100%); } - &::before { - left: 0; - border-left-color: var(--border); + to { + transform: translateX(100%); } - &::after { - right: 0; - border-right-color: var(--border); +} + +@media (max-width: 900px) { + .app-main { + width: min(100% - 24px, 720px); + padding: 32px 0; + } + + .home-view, + .dashboard-summary, + .insight-grid, + .champion-list, + .skeleton-grid { + grid-template-columns: 1fr; + } + + .home-copy { + min-height: auto; + } + + .summary-stat-grid, + .metric-card-list { + grid-template-columns: repeat(3, minmax(0, 1fr)); + } +} + +@media (max-width: 640px) { + .app-header { + min-height: auto; + align-items: flex-start; + flex-direction: column; + padding: 16px; + } + + .header-status { + display: none; + } + + .home-copy, + .analysis-form, + .progress-panel, + .chart-section, + .champion-section, + .insight-section, + .dashboard-summary { + padding: 18px; + } + + .home-facts, + .progress-meta, + .summary-stat-grid, + .metric-card-list { + grid-template-columns: 1fr; + } + + .form-header, + .section-heading { + align-items: flex-start; + flex-direction: column; + } + + .radar-frame { + margin-inline: -8px; } } diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index a66b5ef..33e19e7 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -1,122 +1,62 @@ -import { useState } from 'react' -import reactLogo from './assets/react.svg' -import viteLogo from './assets/vite.svg' -import heroImg from './assets/hero.png' -import './App.css' +import { Suspense, lazy } from 'react'; +import { BrowserRouter, Link, Route, Routes } from 'react-router-dom'; +import './App.css'; +import { HomePage } from './pages/HomePage'; +import { NotFoundPage } from './pages/NotFoundPage'; +import { ProgressPage } from './pages/ProgressPage'; + +const DashboardPage = lazy(() => + import('./pages/DashboardPage').then((module) => ({ + default: module.DashboardPage, + })), +); function App() { - const [count, setCount] = useState(0) - return ( - <> -
-
- - React logo - Vite logo -
-
-

Get started

-

- Edit src/App.tsx and save to test HMR -

-
- -
+ +
+
+ + + + persona-lenz + LoL 플레이스타일 분석 + + + Ranked Solo MVP +
-
+
+ }> + + } /> + } /> + } /> + } /> + + +
-
-
- -

Documentation

-

Your questions, answered

- -
-
- -

Connect with us

-

Join the Vite community

- -
-
- -
-
- - ) + +
+
+ ); } -export default App +function RouteFallback() { + return ( +
+
+
+ ); +} + +export default App; diff --git a/apps/web/src/api/analysis.ts b/apps/web/src/api/analysis.ts new file mode 100644 index 0000000..cc579ad --- /dev/null +++ b/apps/web/src/api/analysis.ts @@ -0,0 +1,99 @@ +import type { + AnalysisJobStatusDto, + AnalysisRequestAcceptedDto, + AnalysisRequestDto, + PlayerAnalysisDto, +} from '@persona-lenz/shared'; + +export class ApiClientError extends Error { + readonly status: number; + + constructor(message: string, status: number) { + super(message); + this.name = 'ApiClientError'; + this.status = status; + } +} + +const JSON_HEADERS = { + 'Content-Type': 'application/json', +} as const; + +async function fetchJson( + input: RequestInfo | URL, + init?: RequestInit, +): Promise { + const response = await fetch(input, init); + + if (!response.ok) { + throw new ApiClientError(await readErrorMessage(response), response.status); + } + + return (await response.json()) as T; +} + +async function readErrorMessage(response: Response): Promise { + const fallback = `요청 처리에 실패했습니다. (${response.status})`; + const contentType = response.headers.get('content-type') ?? ''; + + if (!contentType.includes('application/json')) { + const text = await response.text().catch(() => ''); + return text.trim() || fallback; + } + + const payload = await response.json().catch(() => undefined); + + if (!isRecord(payload) || !('message' in payload)) { + return fallback; + } + + const { message } = payload; + + if (Array.isArray(message)) { + return message.map(String).join(', '); + } + + return typeof message === 'string' && message.trim() ? message : fallback; +} + +function isRecord(value: unknown): value is Record { + return typeof value === 'object' && value !== null; +} + +export function getReadableErrorMessage(error: unknown): string { + if (error instanceof ApiClientError) { + return error.message; + } + + if (error instanceof Error) { + return error.message; + } + + return '알 수 없는 오류가 발생했습니다.'; +} + +export async function requestAnalysis( + payload: AnalysisRequestDto, +): Promise { + return fetchJson('/api/analysis/request', { + method: 'POST', + headers: JSON_HEADERS, + body: JSON.stringify(payload), + }); +} + +export async function getAnalysisJob( + jobId: string, +): Promise { + return fetchJson( + `/api/analysis/jobs/${encodeURIComponent(jobId)}`, + ); +} + +export async function getLatestPlayerAnalysis( + puuid: string, +): Promise { + return fetchJson( + `/api/players/${encodeURIComponent(puuid)}/analysis/latest`, + ); +} diff --git a/apps/web/src/api/data-dragon.ts b/apps/web/src/api/data-dragon.ts new file mode 100644 index 0000000..4903ee4 --- /dev/null +++ b/apps/web/src/api/data-dragon.ts @@ -0,0 +1,139 @@ +const DATA_DRAGON_BASE_URL = 'https://ddragon.leagueoflegends.com'; +const CACHE_KEY = 'persona-lenz:data-dragon:champions:v1'; +const CACHE_TTL_MS = 24 * 60 * 60 * 1000; + +export interface ChampionSummary { + id: number; + imageUrl: string; + name: string; +} + +export interface ChampionCatalog { + champions: Record; + version: string; +} + +interface ChampionCatalogCache extends ChampionCatalog { + cachedAt: number; +} + +interface DataDragonChampion { + image: { + full: string; + }; + key: string; + name: string; +} + +interface DataDragonChampionResponse { + data: Record; +} + +export async function loadChampionCatalog(): Promise { + const cachedCatalog = readChampionCatalogCache(); + + if (cachedCatalog && Date.now() - cachedCatalog.cachedAt < CACHE_TTL_MS) { + return cachedCatalog; + } + + try { + const [latestVersion] = await fetchJson( + `${DATA_DRAGON_BASE_URL}/api/versions.json`, + ); + + if (!latestVersion) { + throw new Error('Data Dragon 버전 목록이 비어 있습니다.'); + } + + const championResponse = await fetchJson( + `${DATA_DRAGON_BASE_URL}/cdn/${latestVersion}/data/ko_KR/champion.json`, + ); + const champions = Object.values(championResponse.data).reduce< + Record + >((catalog, champion) => { + const championId = Number(champion.key); + + if (Number.isFinite(championId)) { + catalog[championId] = { + id: championId, + imageUrl: `${DATA_DRAGON_BASE_URL}/cdn/${latestVersion}/img/champion/${champion.image.full}`, + name: champion.name, + }; + } + + return catalog; + }, {}); + const catalog: ChampionCatalogCache = { + cachedAt: Date.now(), + champions, + version: latestVersion, + }; + + writeChampionCatalogCache(catalog); + + return catalog; + } catch (error) { + if (cachedCatalog) { + return cachedCatalog; + } + + throw error; + } +} + +function readChampionCatalogCache(): ChampionCatalogCache | null { + let rawCache: string | null; + + try { + rawCache = window.localStorage.getItem(CACHE_KEY); + } catch { + return null; + } + + if (!rawCache) { + return null; + } + + try { + const parsedCache = JSON.parse(rawCache) as Partial; + + if ( + typeof parsedCache.cachedAt === 'number' && + typeof parsedCache.version === 'string' && + parsedCache.champions && + typeof parsedCache.champions === 'object' + ) { + return parsedCache as ChampionCatalogCache; + } + } catch { + removeChampionCatalogCache(); + } + + return null; +} + +function writeChampionCatalogCache(catalog: ChampionCatalogCache): void { + try { + window.localStorage.setItem(CACHE_KEY, JSON.stringify(catalog)); + } catch { + // Champion metadata remains usable even when browser storage is restricted. + } +} + +function removeChampionCatalogCache(): void { + try { + window.localStorage.removeItem(CACHE_KEY); + } catch { + // Ignore storage failures. + } +} + +async function fetchJson(url: string): Promise { + const response = await fetch(url); + + if (!response.ok) { + throw new Error(`Data Dragon 요청에 실패했습니다. (${response.status})`); + } + + return (await response.json()) as T; +} diff --git a/apps/web/src/assets/hero.png b/apps/web/src/assets/hero.png deleted file mode 100644 index 02251f4..0000000 Binary files a/apps/web/src/assets/hero.png and /dev/null differ diff --git a/apps/web/src/assets/react.svg b/apps/web/src/assets/react.svg deleted file mode 100644 index 6c87de9..0000000 --- a/apps/web/src/assets/react.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/web/src/assets/vite.svg b/apps/web/src/assets/vite.svg deleted file mode 100644 index 5101b67..0000000 --- a/apps/web/src/assets/vite.svg +++ /dev/null @@ -1 +0,0 @@ -Vite diff --git a/apps/web/src/index.css b/apps/web/src/index.css index 5fb3313..348ddfd 100644 --- a/apps/web/src/index.css +++ b/apps/web/src/index.css @@ -1,111 +1,97 @@ :root { - --text: #6b6375; - --text-h: #08060d; - --bg: #fff; - --border: #e5e4e7; - --code-bg: #f4f3ec; - --accent: #aa3bff; - --accent-bg: rgba(170, 59, 255, 0.1); - --accent-border: rgba(170, 59, 255, 0.5); - --social-bg: rgba(244, 243, 236, 0.5); - --shadow: - rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px; + --accent: #4cc9a7; + --background: #0d1110; + --border: #2d3834; + --border-strong: #46554f; + --danger: #d86666; + --danger-strong: #f2a3a3; + --surface: #151a18; + --surface-soft: #1c2420; + --text: #d9e1dc; + --text-muted: #a6b1ab; + --text-strong: #f4f7f5; + --text-subtle: #808b85; + --warning: #d4a944; + --warning-strong: #efd18a; - --sans: system-ui, 'Segoe UI', Roboto, sans-serif; - --heading: system-ui, 'Segoe UI', Roboto, sans-serif; - --mono: ui-monospace, Consolas, monospace; - - font: 18px/145% var(--sans); - letter-spacing: 0.18px; - color-scheme: light dark; color: var(--text); - background: var(--bg); + background: var(--background); + font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, + 'Segoe UI', sans-serif; font-synthesis: none; + letter-spacing: 0; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; - - @media (max-width: 1024px) { - font-size: 16px; - } } -@media (prefers-color-scheme: dark) { - :root { - --text: #9ca3af; - --text-h: #f3f4f6; - --bg: #16171d; - --border: #2e303a; - --code-bg: #1f2028; - --accent: #c084fc; - --accent-bg: rgba(192, 132, 252, 0.15); - --accent-border: rgba(192, 132, 252, 0.5); - --social-bg: rgba(47, 48, 58, 0.5); - --shadow: - rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px; - } - - #social .button-icon { - filter: invert(1) brightness(2); - } -} - -#root { - width: 1126px; - max-width: 100%; - margin: 0 auto; - text-align: center; - border-inline: 1px solid var(--border); - min-height: 100svh; - display: flex; - flex-direction: column; +* { box-sizing: border-box; } body { + min-width: 320px; + min-height: 100svh; margin: 0; } +button, +input { + font: inherit; +} + +button, +a { + -webkit-tap-highlight-color: transparent; +} + +button:focus-visible, +a:focus-visible, +input:focus-visible { + outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent); + outline-offset: 3px; +} + h1, -h2 { - font-family: var(--heading); - font-weight: 500; - color: var(--text-h); +h2, +h3, +p { + overflow-wrap: anywhere; +} + +h1, +h2, +h3 { + margin: 0; + color: var(--text-strong); + font-weight: 800; + letter-spacing: 0; } h1 { + max-width: 860px; font-size: 56px; - letter-spacing: -1.68px; - margin: 32px 0; - @media (max-width: 1024px) { - font-size: 36px; - margin: 20px 0; - } + line-height: 1.02; } + h2 { - font-size: 24px; - line-height: 118%; - letter-spacing: -0.24px; - margin: 0 0 8px; - @media (max-width: 1024px) { - font-size: 20px; + font-size: 20px; + line-height: 1.25; +} + +img, +svg { + display: block; +} + +::selection { + background: color-mix(in srgb, var(--accent) 38%, transparent); + color: var(--text-strong); +} + +@media (max-width: 640px) { + h1 { + font-size: 34px; + line-height: 1.08; } } -p { - margin: 0; -} - -code, -.counter { - font-family: var(--mono); - display: inline-flex; - border-radius: 4px; - color: var(--text-h); -} - -code { - font-size: 15px; - line-height: 135%; - padding: 4px 8px; - background: var(--code-bg); -} diff --git a/apps/web/src/lib/analysis-request-cache.ts b/apps/web/src/lib/analysis-request-cache.ts new file mode 100644 index 0000000..c98a1c1 --- /dev/null +++ b/apps/web/src/lib/analysis-request-cache.ts @@ -0,0 +1,68 @@ +import type { AnalysisPlatformRoute, AnalysisRequestDto } from '@persona-lenz/shared'; + +const CACHE_PREFIX = 'persona-lenz:analysis-request:'; + +export function saveAnalysisRequest( + jobId: string, + request: AnalysisRequestDto, +): void { + try { + window.sessionStorage.setItem( + getCacheKey(jobId), + JSON.stringify({ + gameName: request.gameName, + matchCount: request.matchCount, + platform: request.platform, + tagLine: request.tagLine, + }), + ); + } catch { + // Retry is a convenience path; analysis itself should not depend on storage. + } +} + +export function loadAnalysisRequest(jobId: string): AnalysisRequestDto | null { + try { + const rawRequest = window.sessionStorage.getItem(getCacheKey(jobId)); + + if (!rawRequest) { + return null; + } + + const parsedRequest = JSON.parse(rawRequest) as Partial; + + if ( + typeof parsedRequest.gameName === 'string' && + typeof parsedRequest.tagLine === 'string' + ) { + return { + gameName: parsedRequest.gameName, + matchCount: + typeof parsedRequest.matchCount === 'number' + ? parsedRequest.matchCount + : undefined, + platform: + typeof parsedRequest.platform === 'string' + ? (parsedRequest.platform as AnalysisPlatformRoute) + : undefined, + tagLine: parsedRequest.tagLine, + }; + } + } catch { + clearAnalysisRequest(jobId); + } + + return null; +} + +export function clearAnalysisRequest(jobId: string): void { + try { + window.sessionStorage.removeItem(getCacheKey(jobId)); + } catch { + // Ignore storage failures. + } +} + +function getCacheKey(jobId: string): string { + return `${CACHE_PREFIX}${jobId}`; +} diff --git a/apps/web/src/lib/format.ts b/apps/web/src/lib/format.ts new file mode 100644 index 0000000..e416a8c --- /dev/null +++ b/apps/web/src/lib/format.ts @@ -0,0 +1,61 @@ +import { METRICS, type MetricId, type Role } from '@persona-lenz/shared'; + +export const ROLE_LABELS: Record = { + BOTTOM: '원딜', + JUNGLE: '정글', + MIDDLE: '미드', + TOP: '탑', + UTILITY: '서포터', +}; + +export const STAGE_LABELS: Record = { + 'build-profile': '플레이스타일 프로필 생성', + completed: '분석 완료', + enqueue: '분석 작업 등록', + 'extract-features': '매치 지표 추출', + 'fetch-match-details': '최근 랭크 게임 수집', + 'fetch-match-ids': '랭크 게임 목록 조회', + queued: '대기열 등록', + 'resolve-account': 'Riot ID 확인', +}; + +const metricLabelById = new Map( + METRICS.map((metric) => [metric.id, metric.label]), +); + +export function formatPercent(value: number): string { + return `${Math.round(value * 100)}%`; +} + +export function getMetricLabel(metricId: MetricId): string { + return metricLabelById.get(metricId) ?? metricId; +} + +export function getStageLabel(stage?: string): string { + if (!stage) { + return '작업 상태 확인'; + } + + return STAGE_LABELS[stage] ?? stage; +} + +export function formatTier({ + leaguePoints, + losses, + queueType, + rank, + tier, + wins, +}: { + leaguePoints: number; + losses: number; + queueType: string; + rank: string; + tier: string; + wins: number; +}): string { + const queueLabel = + queueType === 'RANKED_SOLO_5x5' ? '솔로랭크' : queueType.replaceAll('_', ' '); + + return `${queueLabel} ${tier} ${rank} ${leaguePoints}LP · ${wins}승 ${losses}패`; +} diff --git a/apps/web/src/pages/DashboardPage.tsx b/apps/web/src/pages/DashboardPage.tsx new file mode 100644 index 0000000..be9a439 --- /dev/null +++ b/apps/web/src/pages/DashboardPage.tsx @@ -0,0 +1,315 @@ +import { useEffect, useMemo, useState } from 'react'; +import { Link, useParams } from 'react-router-dom'; +import { + METRICS, + type ChampionPoolEntryDto, + type MetricId, + type MetricValueDto, + type PlayerAnalysisDto, + type TierInfoDto, +} from '@persona-lenz/shared'; +import { + PolarAngleAxis, + PolarGrid, + PolarRadiusAxis, + Radar, + RadarChart, + ResponsiveContainer, + Tooltip, +} from 'recharts'; +import { + getLatestPlayerAnalysis, + getReadableErrorMessage, +} from '../api/analysis'; +import { + loadChampionCatalog, + type ChampionCatalog, +} from '../api/data-dragon'; +import { + formatPercent, + formatTier, + getMetricLabel, + ROLE_LABELS, +} from '../lib/format'; + +interface RadarMetricDatum { + metricId: MetricId; + metricLabel: string; + value: number; +} + +export function DashboardPage() { + const { puuid } = useParams<{ puuid: string }>(); + const [analysis, setAnalysis] = useState(null); + const [championCatalog, setChampionCatalog] = + useState(null); + const [errorMessage, setErrorMessage] = useState(null); + const [isLoading, setIsLoading] = useState(true); + const missingPuuidMessage = puuid ? null : '플레이어 식별자가 없습니다.'; + + useEffect(() => { + if (!puuid) { + return; + } + + const currentPuuid = puuid; + let isActive = true; + + async function loadDashboard() { + setIsLoading(true); + setErrorMessage(null); + + try { + const nextAnalysis = await getLatestPlayerAnalysis(currentPuuid); + + if (isActive) { + setAnalysis(nextAnalysis); + } + } catch (error) { + if (isActive) { + setErrorMessage(getReadableErrorMessage(error)); + } + } finally { + if (isActive) { + setIsLoading(false); + } + } + } + + void loadDashboard(); + + return () => { + isActive = false; + }; + }, [puuid]); + + useEffect(() => { + let isActive = true; + + async function loadChampions() { + try { + const catalog = await loadChampionCatalog(); + + if (isActive) { + setChampionCatalog(catalog); + } + } catch { + if (isActive) { + setChampionCatalog(null); + } + } + } + + void loadChampions(); + + return () => { + isActive = false; + }; + }, []); + + const radarData = useMemo(() => { + if (!analysis) { + return []; + } + + return METRICS.filter((metric) => metric.includeInVector).map((metric) => ({ + metricId: metric.id, + metricLabel: metric.label, + value: Math.round((analysis.profile.playstyle[metric.id] ?? 0) * 100), + })); + }, [analysis]); + + if (!missingPuuidMessage && isLoading) { + return ; + } + + if (missingPuuidMessage || errorMessage || !analysis) { + return ( +
+

Analysis result

+

결과를 불러오지 못했습니다.

+

+ {missingPuuidMessage ?? errorMessage ?? '분석 결과가 없습니다.'} +

+ + 새 분석 요청 + +
+ ); + } + + const soloTier = pickSoloTier(analysis.account.tiers); + const sampleIsLow = analysis.profile.sampleGameCount < 5; + + return ( +
+
+
+

Player analysis

+

+ {analysis.account.gameName}#{analysis.account.tagLine} +

+

+ {soloTier ? formatTier(soloTier) : '랭크 정보 없음'} +

+
+
+ + + +
+
+ + {sampleIsLow ? ( +

+ 표본 부족: 유효 랭크 게임이 5게임 미만이라 지표 신뢰도가 낮습니다. +

+ ) : null} + +
+
+

플레이스타일 벡터

+ + schema v{analysis.profile.featureSchemaVersion} + +
+
+ + + + + + [`${value}%`, '정규화 값']} /> + + + +
+
+ +
+ + +
+ +
+
+

챔피언 풀

+ {championCatalog ? ( + Data Dragon {championCatalog.version} + ) : ( + metadata unavailable + )} +
+ {analysis.profile.championPool.length > 0 ? ( +
+ {analysis.profile.championPool.map((entry) => ( + + ))} +
+ ) : ( +

분석 가능한 챔피언 기록이 없습니다.

+ )} +
+
+ ); +} + +function DashboardSkeleton() { + return ( +
+
+
+
+
+
+
+ ); +} + +function SummaryStat({ label, value }: { label: string; value: string }) { + return ( +
+ {label} + {value} +
+ ); +} + +function MetricInsightList({ + title, + values, +}: { + title: string; + values: MetricValueDto[]; +}) { + return ( +
+

{title}

+
+ {values.map((metricValue) => ( +
+ {getMetricLabel(metricValue.metricId)} + {formatPercent(metricValue.value)} +
+ ))} +
+
+ ); +} + +function ChampionPoolRow({ + catalog, + entry, +}: { + catalog: ChampionCatalog | null; + entry: ChampionPoolEntryDto; +}) { + const champion = catalog?.champions[entry.championId]; + const winRate = entry.games > 0 ? entry.wins / entry.games : 0; + + return ( +
+ {champion ? ( + + ) : ( +
+ ); +} + +function pickSoloTier(tiers: TierInfoDto[]): TierInfoDto | null { + return tiers.find((tier) => tier.queueType === 'RANKED_SOLO_5x5') ?? tiers[0] ?? null; +} diff --git a/apps/web/src/pages/HomePage.tsx b/apps/web/src/pages/HomePage.tsx new file mode 100644 index 0000000..71bed75 --- /dev/null +++ b/apps/web/src/pages/HomePage.tsx @@ -0,0 +1,125 @@ +import { useState, type FormEvent } from 'react'; +import { useNavigate } from 'react-router-dom'; +import { getReadableErrorMessage, requestAnalysis } from '../api/analysis'; +import { saveAnalysisRequest } from '../lib/analysis-request-cache'; + +const DEFAULT_MATCH_COUNT = 20; +const GAME_NAME_MIN_LENGTH = 3; +const GAME_NAME_MAX_LENGTH = 16; +const TAG_LINE_MIN_LENGTH = 3; +const TAG_LINE_MAX_LENGTH = 5; + +export function HomePage() { + const navigate = useNavigate(); + const [gameName, setGameName] = useState(''); + const [tagLine, setTagLine] = useState(''); + const [errorMessage, setErrorMessage] = useState(null); + const [isSubmitting, setIsSubmitting] = useState(false); + + const trimmedGameName = gameName.trim(); + const trimmedTagLine = tagLine.trim(); + const canSubmit = + trimmedGameName.length >= GAME_NAME_MIN_LENGTH && + trimmedGameName.length <= GAME_NAME_MAX_LENGTH && + trimmedTagLine.length >= TAG_LINE_MIN_LENGTH && + trimmedTagLine.length <= TAG_LINE_MAX_LENGTH && + !isSubmitting; + + async function handleSubmit(event: FormEvent) { + event.preventDefault(); + + if (!canSubmit) { + return; + } + + setErrorMessage(null); + setIsSubmitting(true); + + try { + const requestPayload = { + gameName: trimmedGameName, + matchCount: DEFAULT_MATCH_COUNT, + platform: 'kr', + tagLine: trimmedTagLine, + } as const; + const response = await requestAnalysis(requestPayload); + + saveAnalysisRequest(response.jobId, requestPayload); + navigate(`/analysis/${response.jobId}`); + } catch (error) { + setErrorMessage(getReadableErrorMessage(error)); + } finally { + setIsSubmitting(false); + } + } + + return ( +
+
+

Riot ID 기반 스타일 벡터

+

최근 솔로랭크에서 드러난 플레이 성향을 확인하세요.

+

+ KR 서버 Riot ID를 입력하면 최근 랭크 게임을 분석해 지표별 강점, + 취약점, 주 챔피언 풀을 한 화면에 정리합니다. +

+
+
+
Queue
+
RANKED SOLO
+
+
+
Sample
+
최근 {DEFAULT_MATCH_COUNT}게임
+
+
+
Region
+
KR
+
+
+
+ +
+
+

분석 요청

+ API queued +
+ + + + + + {errorMessage ? ( +

+ {errorMessage} +

+ ) : null} + + +
+
+ ); +} diff --git a/apps/web/src/pages/NotFoundPage.tsx b/apps/web/src/pages/NotFoundPage.tsx new file mode 100644 index 0000000..03266a3 --- /dev/null +++ b/apps/web/src/pages/NotFoundPage.tsx @@ -0,0 +1,14 @@ +import { Link } from 'react-router-dom'; + +export function NotFoundPage() { + return ( +
+

404

+

페이지를 찾을 수 없습니다.

+

분석 요청 화면에서 다시 시작해 주세요.

+ + 홈으로 이동 + +
+ ); +} diff --git a/apps/web/src/pages/ProgressPage.tsx b/apps/web/src/pages/ProgressPage.tsx new file mode 100644 index 0000000..5d4eee9 --- /dev/null +++ b/apps/web/src/pages/ProgressPage.tsx @@ -0,0 +1,197 @@ +import { useEffect, useMemo, useState } from 'react'; +import { Link, useNavigate, useParams } from 'react-router-dom'; +import type { AnalysisJobStatusDto } from '@persona-lenz/shared'; +import { + getAnalysisJob, + getReadableErrorMessage, + requestAnalysis, +} from '../api/analysis'; +import { + clearAnalysisRequest, + loadAnalysisRequest, + saveAnalysisRequest, +} from '../lib/analysis-request-cache'; +import { getStageLabel } from '../lib/format'; + +const POLLING_INTERVAL_MS = 2_000; + +export function ProgressPage() { + const navigate = useNavigate(); + const { jobId } = useParams<{ jobId: string }>(); + const [job, setJob] = useState(null); + const [errorMessage, setErrorMessage] = useState(null); + const [isRetrying, setIsRetrying] = useState(false); + const missingJobIdMessage = jobId ? null : '분석 작업 ID가 없습니다.'; + + useEffect(() => { + if (!jobId) { + return; + } + + const currentJobId = jobId; + let isActive = true; + + async function pollJob() { + try { + const nextJob = await getAnalysisJob(currentJobId); + + if (!isActive) { + return; + } + + setJob(nextJob); + setErrorMessage(null); + + if (nextJob.status === 'completed') { + if (nextJob.puuid) { + clearAnalysisRequest(currentJobId); + navigate(`/players/${nextJob.puuid}`, { replace: true }); + return; + } + + setErrorMessage('분석은 완료됐지만 결과 식별자를 받지 못했습니다.'); + window.clearInterval(intervalId); + } + + if (nextJob.status === 'failed') { + window.clearInterval(intervalId); + } + } catch (error) { + if (isActive) { + setErrorMessage(getReadableErrorMessage(error)); + } + } + } + + const intervalId = window.setInterval(() => { + void pollJob(); + }, POLLING_INTERVAL_MS); + void pollJob(); + + return () => { + isActive = false; + window.clearInterval(intervalId); + }; + }, [jobId, navigate]); + + async function handleRetry() { + if (!jobId) { + navigate('/'); + return; + } + + const previousRequest = loadAnalysisRequest(jobId); + + if (!previousRequest) { + navigate('/'); + return; + } + + setIsRetrying(true); + setErrorMessage(null); + + try { + const response = await requestAnalysis(previousRequest); + + saveAnalysisRequest(response.jobId, previousRequest); + navigate(`/analysis/${response.jobId}`, { replace: true }); + } catch (error) { + setErrorMessage(getReadableErrorMessage(error)); + } finally { + setIsRetrying(false); + } + } + + const progressPercent = useMemo(() => { + if (!job) { + return 0; + } + + if (job.status === 'completed') { + return 100; + } + + if (job.progress.totalMatches <= 0) { + return job.status === 'queued' ? 8 : 18; + } + + return Math.min( + 98, + Math.round( + (job.progress.fetchedMatches / job.progress.totalMatches) * 100, + ), + ); + }, [job]); + + return ( +
+
+

Analysis job

+

분석을 진행 중입니다.

+

+ Riot API 응답과 매치 수에 따라 몇 분 정도 걸릴 수 있습니다. +

+ +
+ +
+ +
+
+ Stage + {getStageLabel(job?.stage)} +
+
+ Progress + {progressPercent}% +
+
+ Matches + + {job + ? `${job.progress.fetchedMatches}/${job.progress.totalMatches}` + : '-'} + +
+
+ + {job?.status === 'failed' ? ( +

+ {job.error ?? '분석 작업이 실패했습니다.'} +

+ ) : null} + + {missingJobIdMessage || errorMessage ? ( +

+ {missingJobIdMessage ?? errorMessage} +

+ ) : null} + +
+ {job?.status === 'failed' ? ( + + ) : null} + + 새 요청 입력 + +
+
+
+ ); +} diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index 8b0f57b..1a7c8c8 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -3,5 +3,13 @@ import react from '@vitejs/plugin-react' // https://vite.dev/config/ export default defineConfig({ + optimizeDeps: { + include: ['@persona-lenz/shared'], + }, plugins: [react()], + server: { + proxy: { + '/api': 'http://localhost:3000', + }, + }, }) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 235314b..db00ca8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -135,6 +135,12 @@ importers: react-dom: specifier: ^19.2.7 version: 19.2.7(react@19.2.7) + react-router-dom: + specifier: ^7.18.1 + version: 7.18.1(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + recharts: + specifier: ^3.9.1 + version: 3.9.1(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react-is@19.2.7)(react@19.2.7)(redux@5.0.1) devDependencies: '@eslint/js': specifier: ^10.0.1 @@ -1071,6 +1077,17 @@ packages: peerDependencies: '@redis/client': ^5.12.1 + '@reduxjs/toolkit@2.12.0': + resolution: {integrity: sha512-KiT+RzZbp6mQET+Mg+h2c97+9j1sNflUxQkIHI7Yuzf6Peu+OYpmkn6nbHWmLLWj+1ZODUJFwGZ7gx3L9R9EOw==} + peerDependencies: + react: ^16.9.0 || ^17.0.0 || ^18 || ^19 + react-redux: ^7.2.1 || ^8.1.3 || ^9.0.0 + peerDependenciesMeta: + react: + optional: true + react-redux: + optional: true + '@rolldown/binding-android-arm64@1.1.4': resolution: {integrity: sha512-EZLpf/8y7GXkkra90ML47kzik/GMP3EMcE9bPyHmRfxLC6z9+aW5A8poCsoxjrT5GfEcNAAvWwUHjvP1pUQkfw==} engines: {node: ^20.19.0 || >=22.12.0} @@ -1305,6 +1322,9 @@ packages: '@standard-schema/spec@1.1.0': resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} + '@standard-schema/utils@0.3.0': + resolution: {integrity: sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==} + '@tokenizer/inflate@0.4.1': resolution: {integrity: sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==} engines: {node: '>=18'} @@ -1348,6 +1368,33 @@ packages: '@types/cookiejar@2.1.5': resolution: {integrity: sha512-he+DHOWReW0nghN24E1WUqM0efK4kI9oTqDm6XmK8ZPe2djZ90BSNdGnIyCLzCPw7/pogPlGbzI2wHGGmi4O/Q==} + '@types/d3-array@3.2.2': + resolution: {integrity: sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==} + + '@types/d3-color@3.1.3': + resolution: {integrity: sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==} + + '@types/d3-ease@3.0.2': + resolution: {integrity: sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==} + + '@types/d3-interpolate@3.0.4': + resolution: {integrity: sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==} + + '@types/d3-path@3.1.1': + resolution: {integrity: sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==} + + '@types/d3-scale@4.0.9': + resolution: {integrity: sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==} + + '@types/d3-shape@3.1.8': + resolution: {integrity: sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==} + + '@types/d3-time@3.0.4': + resolution: {integrity: sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==} + + '@types/d3-timer@3.0.2': + resolution: {integrity: sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==} + '@types/eslint-scope@3.7.7': resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} @@ -1419,6 +1466,9 @@ packages: '@types/supertest@7.2.0': resolution: {integrity: sha512-uh2Lv57xvggst6lCqNdFAmDSvoMG7M/HDtX4iUCquxQ5EGPtaPM5PL5Hmi7LCvOG8db7YaCPNJEeoI8s/WzIQw==} + '@types/use-sync-external-store@0.0.6': + resolution: {integrity: sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==} + '@types/webidl-conversions@7.0.3': resolution: {integrity: sha512-CiJJvcRtIgzadHCYXw7dqEnMNRjhGZlYK05Mj9OyktqV8uVT8fD2BFOB7S1uwBE3Kj2Z+4UyPmFw/Ixgw/LAlA==} @@ -1965,6 +2015,10 @@ packages: resolution: {integrity: sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==} engines: {node: '>=0.8'} + clsx@2.1.1: + resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} + engines: {node: '>=6'} + cluster-key-slot@1.1.2: resolution: {integrity: sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==} engines: {node: '>=0.10.0'} @@ -2031,6 +2085,10 @@ packages: resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} engines: {node: '>= 0.6'} + cookie@1.1.1: + resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==} + engines: {node: '>=18'} + cookiejar@2.1.4: resolution: {integrity: sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==} @@ -2061,6 +2119,50 @@ packages: csstype@3.2.3: resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} + d3-array@3.2.4: + resolution: {integrity: sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==} + engines: {node: '>=12'} + + d3-color@3.1.0: + resolution: {integrity: sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==} + engines: {node: '>=12'} + + d3-ease@3.0.1: + resolution: {integrity: sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==} + engines: {node: '>=12'} + + d3-format@3.1.2: + resolution: {integrity: sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==} + engines: {node: '>=12'} + + d3-interpolate@3.0.1: + resolution: {integrity: sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==} + engines: {node: '>=12'} + + d3-path@3.1.0: + resolution: {integrity: sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==} + engines: {node: '>=12'} + + d3-scale@4.0.2: + resolution: {integrity: sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==} + engines: {node: '>=12'} + + d3-shape@3.2.0: + resolution: {integrity: sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==} + engines: {node: '>=12'} + + d3-time-format@4.1.0: + resolution: {integrity: sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==} + engines: {node: '>=12'} + + d3-time@3.1.0: + resolution: {integrity: sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==} + engines: {node: '>=12'} + + d3-timer@3.0.1: + resolution: {integrity: sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==} + engines: {node: '>=12'} + debug@4.4.3: resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} engines: {node: '>=6.0'} @@ -2070,6 +2172,9 @@ packages: supports-color: optional: true + decimal.js-light@2.5.1: + resolution: {integrity: sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==} + dedent@1.7.2: resolution: {integrity: sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==} peerDependencies: @@ -2180,6 +2285,9 @@ packages: resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==} engines: {node: '>= 0.4'} + es-toolkit@1.49.0: + resolution: {integrity: sha512-G5iZ6Pc/FNRY/soKZHC+TxGDD83rHUDXxzaWhGCX44vAv/tMs56WMusnm/KMNK+luUPsgA9U28cGr4RDlSzL2g==} + escalade@3.2.0: resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} engines: {node: '>=6'} @@ -2307,6 +2415,9 @@ packages: resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} engines: {node: '>= 0.6'} + eventemitter3@5.0.4: + resolution: {integrity: sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==} + events@3.3.0: resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} engines: {node: '>=0.8.x'} @@ -2541,6 +2652,9 @@ packages: resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==} engines: {node: '>= 4'} + immer@11.1.9: + resolution: {integrity: sha512-sc/z0Cyti70bZa0ZU4sWfAElfovFb9Ni8tArJZLuklYWxegPiK3pDOql1Rq5H0FIRAW9LSQRG6OX4KqBldbhBA==} + import-fresh@3.3.1: resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} engines: {node: '>=6'} @@ -2561,6 +2675,10 @@ packages: inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + internmap@2.0.3: + resolution: {integrity: sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==} + engines: {node: '>=12'} + ioredis@5.10.1: resolution: {integrity: sha512-HuEDBTI70aYdx1v6U97SbNx9F1+svQKBDo30o0b9fw055LMepzpOOd0Ccg9Q6tbqmBSJaMuY0fB7yw9/vjBYCA==} engines: {node: '>=12.22.0'} @@ -3311,6 +3429,35 @@ packages: react-is@19.2.7: resolution: {integrity: sha512-kZFnouyVv7eP/Phmrlo9FK+zcAdriZJvzxXHF1Sl1P377WSGe2G/JxVolhTrB/jeV47lKImhNUsijjHAAbcl/A==} + react-redux@9.3.0: + resolution: {integrity: sha512-KQopgqFo/p/fgmAs5qz6p5RWaNAzq40WAu7fJIXnQpYxFPbJYtsJPWvGeF2rOBaY/kEuV77AVsX8TsQzKm+A/g==} + peerDependencies: + '@types/react': ^18.2.25 || ^19 + react: ^18.0 || ^19 + redux: ^5.0.0 + peerDependenciesMeta: + '@types/react': + optional: true + redux: + optional: true + + react-router-dom@7.18.1: + resolution: {integrity: sha512-KaZh+X/6UtEp28x51AUYZDMg9NGoz2ja3dNHa+ta/tk40vCzKhQ/RypCWBMLbmDr6//E24Vv5uPsrqXFozdkAg==} + engines: {node: '>=20.0.0'} + peerDependencies: + react: '>=18' + react-dom: '>=18' + + react-router@7.18.1: + resolution: {integrity: sha512-GDLgg3i3uM0aeJO3Fm+TCS+sDQ7gu12T6x0qdTEzcwqEfleci7JwugVNIF3U//0FWKnJT7ptG+20B2jfDqnZAg==} + engines: {node: '>=20.0.0'} + peerDependencies: + react: '>=18' + react-dom: '>=18' + peerDependenciesMeta: + react-dom: + optional: true + react@19.2.7: resolution: {integrity: sha512-HNe9WslTbXmFK8o8cmwgAeJFSBvt1bPdHCVKtaaV+WlAN36mpT4hcRpwbf3fY56ar2oIXzsBpOAiIRHAdY0OlQ==} engines: {node: '>=0.10.0'} @@ -3323,6 +3470,14 @@ packages: resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==} engines: {node: '>= 14.18.0'} + recharts@3.9.1: + resolution: {integrity: sha512-WMcwlXcB7l+BbxiEdyClkG+1sxrMHNZpzT577LEvU4+rXPd8oTAy1wXk72hnk2KOOmxuLvw3z5DtXT7HEAydtg==} + engines: {node: '>=18'} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-is: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + redis-errors@1.2.0: resolution: {integrity: sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==} engines: {node: '>=4'} @@ -3335,6 +3490,14 @@ packages: resolution: {integrity: sha512-LDsoVvb/CpoV9EN3FXvgvSHNJWuCIzl9MiO3ppOevuGLpSGJhwfQjpEwfFJcQvNSddHADDdZaWx0HnmMxRXG7g==} engines: {node: '>= 18.19.0'} + redux-thunk@3.1.0: + resolution: {integrity: sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==} + peerDependencies: + redux: ^5.0.0 + + redux@5.0.1: + resolution: {integrity: sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==} + reflect-metadata@0.2.2: resolution: {integrity: sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==} @@ -3346,6 +3509,9 @@ packages: resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} engines: {node: '>=0.10.0'} + reselect@5.2.0: + resolution: {integrity: sha512-AgZ3UOZm3YndfrJ4OYjgrT7bmCm/1iqkjvEfH/oYjzh6PD2qw4QuT3jjnXIrpdt4MTpMXclMT3lXbmRY+XRakw==} + resolve-cwd@3.0.0: resolution: {integrity: sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==} engines: {node: '>=8'} @@ -3411,6 +3577,9 @@ packages: resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==} engines: {node: '>= 18'} + set-cookie-parser@2.7.2: + resolution: {integrity: sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==} + setprototypeof@1.2.0: resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} @@ -3618,6 +3787,9 @@ packages: resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==} engines: {node: '>=8'} + tiny-invariant@1.3.3: + resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==} + tinyglobby@0.2.17: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} @@ -3786,6 +3958,11 @@ packages: uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + use-sync-external-store@1.6.0: + resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} @@ -3800,6 +3977,9 @@ packages: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} + victory-vendor@37.3.6: + resolution: {integrity: sha512-SbPDPdDBYp+5MJHhBCAyI7wKM3d5ivekigc2Dk2s7pgbZ9wIgIBYGVw4zGHBml/qTFbexrofXW6Gu4noGxrOwQ==} + vite@8.1.3: resolution: {integrity: sha512-Ds+gBRbj0lwRO2Y5hwnUBdxSwlAve9LeRyU4sNnAr0ewW0gWF0n5bgXgUzbgZ49MV9BVUAQUFYVcDUcilUExMA==} engines: {node: ^20.19.0 || >=22.12.0} @@ -5219,6 +5399,18 @@ snapshots: dependencies: '@redis/client': 5.12.1 + '@reduxjs/toolkit@2.12.0(react-redux@9.3.0(@types/react@19.2.17)(react@19.2.7)(redux@5.0.1))(react@19.2.7)': + dependencies: + '@standard-schema/spec': 1.1.0 + '@standard-schema/utils': 0.3.0 + immer: 11.1.9 + redux: 5.0.1 + redux-thunk: 3.1.0(redux@5.0.1) + reselect: 5.2.0 + optionalDependencies: + react: 19.2.7 + react-redux: 9.3.0(@types/react@19.2.17)(react@19.2.7)(redux@5.0.1) + '@rolldown/binding-android-arm64@1.1.4': optional: true @@ -5440,6 +5632,8 @@ snapshots: '@standard-schema/spec@1.1.0': {} + '@standard-schema/utils@0.3.0': {} + '@tokenizer/inflate@0.4.1': dependencies: debug: 4.4.3 @@ -5494,6 +5688,30 @@ snapshots: '@types/cookiejar@2.1.5': {} + '@types/d3-array@3.2.2': {} + + '@types/d3-color@3.1.3': {} + + '@types/d3-ease@3.0.2': {} + + '@types/d3-interpolate@3.0.4': + dependencies: + '@types/d3-color': 3.1.3 + + '@types/d3-path@3.1.1': {} + + '@types/d3-scale@4.0.9': + dependencies: + '@types/d3-time': 3.0.4 + + '@types/d3-shape@3.1.8': + dependencies: + '@types/d3-path': 3.1.1 + + '@types/d3-time@3.0.4': {} + + '@types/d3-timer@3.0.2': {} + '@types/eslint-scope@3.7.7': dependencies: '@types/eslint': 9.6.1 @@ -5581,6 +5799,8 @@ snapshots: '@types/methods': 1.1.4 '@types/superagent': 8.1.10 + '@types/use-sync-external-store@0.0.6': {} + '@types/webidl-conversions@7.0.3': {} '@types/whatwg-url@13.0.0': @@ -6216,6 +6436,8 @@ snapshots: clone@1.0.4: {} + clsx@2.1.1: {} + cluster-key-slot@1.1.2: {} co@4.6.0: {} @@ -6264,6 +6486,8 @@ snapshots: cookie@0.7.2: {} + cookie@1.1.1: {} + cookiejar@2.1.4: {} cors@2.8.6: @@ -6294,10 +6518,50 @@ snapshots: csstype@3.2.3: {} + d3-array@3.2.4: + dependencies: + internmap: 2.0.3 + + d3-color@3.1.0: {} + + d3-ease@3.0.1: {} + + d3-format@3.1.2: {} + + d3-interpolate@3.0.1: + dependencies: + d3-color: 3.1.0 + + d3-path@3.1.0: {} + + d3-scale@4.0.2: + dependencies: + d3-array: 3.2.4 + d3-format: 3.1.2 + d3-interpolate: 3.0.1 + d3-time: 3.1.0 + d3-time-format: 4.1.0 + + d3-shape@3.2.0: + dependencies: + d3-path: 3.1.0 + + d3-time-format@4.1.0: + dependencies: + d3-time: 3.1.0 + + d3-time@3.1.0: + dependencies: + d3-array: 3.2.4 + + d3-timer@3.0.1: {} + debug@4.4.3: dependencies: ms: 2.1.3 + decimal.js-light@2.5.1: {} + dedent@1.7.2: {} deep-is@0.1.4: {} @@ -6379,6 +6643,8 @@ snapshots: has-tostringtag: 1.0.2 hasown: 2.0.4 + es-toolkit@1.49.0: {} + escalade@3.2.0: {} escape-html@1.0.3: {} @@ -6543,6 +6809,8 @@ snapshots: etag@1.8.1: {} + eventemitter3@5.0.4: {} + events@3.3.0: {} execa@5.1.1: @@ -6830,6 +7098,8 @@ snapshots: ignore@7.0.5: {} + immer@11.1.9: {} + import-fresh@3.3.1: dependencies: parent-module: 1.0.1 @@ -6849,6 +7119,8 @@ snapshots: inherits@2.0.4: {} + internmap@2.0.3: {} + ioredis@5.10.1: dependencies: '@ioredis/commands': 1.5.1 @@ -7694,6 +7966,29 @@ snapshots: react-is@19.2.7: {} + react-redux@9.3.0(@types/react@19.2.17)(react@19.2.7)(redux@5.0.1): + dependencies: + '@types/use-sync-external-store': 0.0.6 + react: 19.2.7 + use-sync-external-store: 1.6.0(react@19.2.7) + optionalDependencies: + '@types/react': 19.2.17 + redux: 5.0.1 + + react-router-dom@7.18.1(react-dom@19.2.7(react@19.2.7))(react@19.2.7): + dependencies: + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) + react-router: 7.18.1(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + + react-router@7.18.1(react-dom@19.2.7(react@19.2.7))(react@19.2.7): + dependencies: + cookie: 1.1.1 + react: 19.2.7 + set-cookie-parser: 2.7.2 + optionalDependencies: + react-dom: 19.2.7(react@19.2.7) + react@19.2.7: {} readable-stream@3.6.2: @@ -7704,6 +7999,26 @@ snapshots: readdirp@4.1.2: {} + recharts@3.9.1(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react-is@19.2.7)(react@19.2.7)(redux@5.0.1): + dependencies: + '@reduxjs/toolkit': 2.12.0(react-redux@9.3.0(@types/react@19.2.17)(react@19.2.7)(redux@5.0.1))(react@19.2.7) + clsx: 2.1.1 + decimal.js-light: 2.5.1 + es-toolkit: 1.49.0 + eventemitter3: 5.0.4 + immer: 11.1.9 + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) + react-is: 19.2.7 + react-redux: 9.3.0(@types/react@19.2.17)(react@19.2.7)(redux@5.0.1) + reselect: 5.2.0 + tiny-invariant: 1.3.3 + use-sync-external-store: 1.6.0(react@19.2.7) + victory-vendor: 37.3.6 + transitivePeerDependencies: + - '@types/react' + - redux + redis-errors@1.2.0: {} redis-parser@3.0.0: @@ -7721,12 +8036,20 @@ snapshots: - '@node-rs/xxhash' - '@opentelemetry/api' + redux-thunk@3.1.0(redux@5.0.1): + dependencies: + redux: 5.0.1 + + redux@5.0.1: {} + reflect-metadata@0.2.2: {} require-directory@2.1.1: {} require-from-string@2.0.2: {} + reselect@5.2.0: {} + resolve-cwd@3.0.0: dependencies: resolve-from: 5.0.0 @@ -7827,6 +8150,8 @@ snapshots: transitivePeerDependencies: - supports-color + set-cookie-parser@2.7.2: {} + setprototypeof@1.2.0: {} shebang-command@2.0.0: @@ -8005,6 +8330,8 @@ snapshots: glob: 7.2.3 minimatch: 3.1.5 + tiny-invariant@1.3.3: {} + tinyglobby@0.2.17: dependencies: fdir: 6.5.0(picomatch@4.0.5) @@ -8194,6 +8521,10 @@ snapshots: dependencies: punycode: 2.3.1 + use-sync-external-store@1.6.0(react@19.2.7): + dependencies: + react: 19.2.7 + util-deprecate@1.0.2: {} v8-compile-cache-lib@3.0.1: {} @@ -8206,6 +8537,23 @@ snapshots: vary@1.1.2: {} + victory-vendor@37.3.6: + dependencies: + '@types/d3-array': 3.2.2 + '@types/d3-ease': 3.0.2 + '@types/d3-interpolate': 3.0.4 + '@types/d3-scale': 4.0.9 + '@types/d3-shape': 3.1.8 + '@types/d3-time': 3.0.4 + '@types/d3-timer': 3.0.2 + d3-array: 3.2.4 + d3-ease: 3.0.1 + d3-interpolate: 3.0.1 + d3-scale: 4.0.2 + d3-shape: 3.2.0 + d3-time: 3.1.0 + d3-timer: 3.0.1 + vite@8.1.3(@types/node@24.13.2)(terser@5.48.0)(yaml@2.9.0): dependencies: lightningcss: 1.32.0