I will explore the existing files in the project to understand the structure and installed packages.
I will read package.json to see the current dependencies.
I will now install lucide-react, recharts, canvas-confetti, and @types/canvas-confetti.
I will check src/index.css to see the current styles and setup.
I will inspect index.html.
I will create the TypeScript definitions in src/types/index.ts.
I will create src/data/mockData.ts with comprehensive sample datasets for workouts, daily time-series metrics, PR milestones, gym segments, and trophies.
I will create src/context/DashboardContext.tsx for state management and live analytics calculations.
I will edit src/context/DashboardContext.tsx to fix the unused variable warnings.
I will create src/utils/translations.ts containing the dictionary for Russian and English gym terms, KPIs, filters, and chart descriptions.
I will update index.html with Google Fonts (Plus Jakarta Sans + Syne + JetBrains Mono) and metadata.
I will update src/index.css with modern glassmorphic and glow utility classes.
I will create src/components/layout/Header.tsx with branding, athlete bio, quick PR ticker, tabs navigation, theme switcher, and language toggle.
I will create src/components/layout/FilterBar.tsx for real-time live filtering and segment selection across the entire dashboard.
I will create src/components/kpis/KPICardGrid.tsx with animated KPI cards, trend indicators, sub-metrics, and hover details.
I will remove the unused Info import from src/components/kpis/KPICardGrid.tsx.
I will create src/components/charts/TonnageVolumeChart.tsx for visualizing daily tonnage volume trends alongside average RPE exertion.
I will create src/components/charts/MuscleDistributionChart.tsx for bodybuilder muscle symmetry and volume distribution analytics.
I will fix the TypeScript errors in src/components/charts/MuscleDistributionChart.tsx.
I will update the onClick handler in src/components/charts/MuscleDistributionChart.tsx.
I will create src/components/charts/OneRepMaxProgressChart.tsx for tracking 1RM strength progression and milestones.
I will create src/components/charts/StravaActivityHeatmap.tsx for the Strava-style 52-week annual training consistency calendar.
I will edit src/components/charts/StravaActivityHeatmap.tsx to remove the unused import.
I will create src/components/charts/FatigueFitnessChart.tsx for tracking lifter fatigue, fitness load, and PR readiness zones.
I will create src/components/workouts/WorkoutTable.tsx for the workout logbook with sorting, expandable set matrices, Kudos interactions, and CSV export.
I will edit src/components/workouts/WorkoutTable.tsx to remove unused imports.
I will create src/components/tools/OneRepMaxCalculator.tsx with 1RM formula calculations, barbell plate visualization, and warm-up pyramid generator.
I will edit src/components/tools/OneRepMaxCalculator.tsx to remove unused imports.
I will create src/components/tools/GymLeaderboardSegments.tsx for Strava-style gym segments and KOM rankings.
I will edit src/components/tools/GymLeaderboardSegments.tsx to remove unused imports.
I will create src/components/tools/TrophyRoom.tsx for the lifter achievement room and trophy collection.
I will create src/components/modals/LogWorkoutModal.tsx for adding real or simulated workout sessions with live calculations and PR confetti.
I will update src/App.tsx to tie together all views, tabs, modal dialogs, and responsive layout hierarchy.
I will edit src/App.tsx to remove unused variables and imports.
I will now run the project build to verify there are no compilation or bundling errors.
I will run the build test one more time to verify the final bundle.
I have created the «ТЯГА // Gym Strava» analytics dashboard designed for heavy lifters, bodybuilders, and powerlifting enthusiasts (Качков).
What has been built:
-
KPI Summary Cards with Live Trend Indicators:
- Общий тоннаж (Total Tonnage): Cumulative volume lifted in tonnes with percentage change indicators (+14.8%) and monthly goal meters.
- Рабочих подходов (Hard Sets Volume): High-intensity sets (RPE ≥ 7.5) with average RPE (8.4/10) and failure sets breakdown.
- Сумма Троеборья (SBD Total): Bench + Squat + Deadlift total (560 kg) with PR delta (+17.5 kg), Wilks, and DOTS powerlifting scores.
- Время под нагрузкой (Gym Time & TUT): Cumulative training duration, average rest interval between sets (90s), and TUT percentage.
- Strava Strain Score: Relative cardiovascular and central nervous system exertion score (Optimal Overload Index).
- Топливо & Белок (Fuel Index): Daily protein intake target (195g/day • 2.2g/kg) and calorie burn telemetry.
-
Interactive Multi-Chart Suite (Recharts):
- Volume Load & RPE Exertion (Composed Area & Line): Dual Y-axis chart correlating daily lifted tonnage against perceived set exertion (RPE 6–10) with target baseline toggle.
- Muscle Symmetry & Balance (Donut & Radar): Interactive donut chart showing volume distribution across Chest, Back, Legs, Shoulders, Arms, and Core, paired with a Radar Chart comparing actual volume to the classic Bodybuilder Golden Ratio.
- 1RM Progression (Line Chart): Strength milestones for Bench Press, Back Squat, Deadlift, and Overhead Press with milestone club threshold markers (140kg, 200kg, 240kg).
- Strava 52-Week Activity Heatmap: Annual consistency grid highlighting workout frequency, PR days, and active streaks (18-day streak!).
- PR Readiness & Form Impulse Model (Banister Model): Training Stress Balance (TSB), Acute Training Load (Fatigue), and Chronic Training Load (Fitness) to predict PR windows.
-
Sortable & Filterable Workout Logbook Table:
- Multi-column sorting (Date, Tonnage, Sets/Reps, Average RPE, Strain Score, Kudos).
- Expandable rows displaying individual sets, weights, reps, PR badges, and notes.
- Strava-style Kudos (Респекты 🔥) interaction with instant counter updates.
- One-click CSV Data Export.
-
Global Live Filters & Segmentation:
- Date range presets (7d, 30d, 90d, YTD, All Time) + Custom Date Range calendar picker.
Files built: src/types/index.ts, src/data/mockData.ts, src/context/DashboardContext.tsx, src/utils/translations.ts, index.html, src/index.css, src/components/layout/Header.tsx, src/components/layout/FilterBar.tsx, src/components/kpis/KPICardGrid.tsx, src/components/charts/TonnageVolumeChart.tsx, src/components/charts/MuscleDistributionChart.tsx, src/components/charts/OneRepMaxProgressChart.tsx, src/components/charts/StravaActivityHeatmap.tsx, src/components/charts/FatigueFitnessChart.tsx, src/components/workouts/WorkoutTable.tsx, src/components/tools/OneRepMaxCalculator.tsx, src/components/tools/GymLeaderboardSegments.tsx, src/components/tools/TrophyRoom.tsx, src/components/modals/LogWorkoutModal.tsx, src/App.tsx