Power curve: show record holder in tooltip and add records table

Find the activity that holds each MMP record by scanning per-activity
mmp arrays. Activity title appears in the chart hover tooltip. A table
below the chart lists every duration with the record watts, activity
title (linked), and date. The table has its own all-time/365d/90d toggle
independent of the chart overlays.
This commit is contained in:
Davide Scaini
2026-05-16 22:25:30 +02:00
parent 003b540481
commit 08e8e54c36
2 changed files with 118 additions and 4 deletions
+1 -1
View File
@@ -210,7 +210,7 @@
{#if activeTab === 'power'}
{#if athlete.power_curve.all_time}
<div class="bg-zinc-900 rounded-xl p-4 border border-zinc-800">
<MmpChart {athlete} {activities} />
<MmpChart {athlete} {activities} {base} />
</div>
{:else}
<p class="text-zinc-500 text-sm">No power data found. Make sure your activities include power meter data.</p>