+
+
+
+
+ {t("dashboard.recentWorkouts.title")}
+
+
+
+ {t("dashboard.recentWorkouts.viewAll")}
+
+
+
+ {isLoading ? (
+
+ {t("dashboard.recentWorkouts.loading")}
+
+ ) : workouts.length === 0 ? (
+
+
+ {t("dashboard.recentWorkouts.empty.title")}
+
+
+ {t("dashboard.recentWorkouts.empty.cta")}
+
+
+ ) : (
+
+ {workouts.map((workout) => {
+ const sportLabelKey = `insights.workouts.sport.${workout.sportType}`;
+ const sportLabel = t(sportLabelKey);
+ const sportName =
+ sportLabel === sportLabelKey ? workout.sportType : sportLabel;
+ return (
+ -
+
+ {renderRow(workout, sportName)}
+
+ {formatDayLabel(workout.startedAt, locale)}
+
+
+ {formatDuration(workout.durationSec)}
+
+
+
+ );
+ })}
+
+ )}
+
+ );
+}
diff --git a/src/components/settings/dashboard-layout-section.tsx b/src/components/settings/dashboard-layout-section.tsx
index 3b445a1ec..a2338e6c6 100644
--- a/src/components/settings/dashboard-layout-section.tsx
+++ b/src/components/settings/dashboard-layout-section.tsx
@@ -46,6 +46,8 @@ const WIDGET_LABEL_KEYS: Record