diff --git a/frontend/src/components/ContributorDashboard.tsx b/frontend/src/components/ContributorDashboard.tsx index 3b677e07..f6951e58 100644 --- a/frontend/src/components/ContributorDashboard.tsx +++ b/frontend/src/components/ContributorDashboard.tsx @@ -241,11 +241,18 @@ interface SummaryCardProps { icon: React.ReactNode; trend?: 'up' | 'down' | 'neutral'; trendValue?: string; + tooltip?: string; } -function SummaryCard({ label, value, suffix, icon, trend, trendValue }: SummaryCardProps) { +function SummaryCard({ label, value, suffix, icon, trend, trendValue, tooltip }: SummaryCardProps) { + const [showTooltip, setShowTooltip] = useState(false); + return ( -
+
tooltip && setShowTooltip(true)} + onMouseLeave={() => setShowTooltip(false)} + >
{label}
@@ -263,6 +270,15 @@ function SummaryCard({ label, value, suffix, icon, trend, trendValue }: SummaryC {trendValue}
)} + {showTooltip && tooltip && ( +
+ {tooltip} +
+
+ )}
); } @@ -793,6 +809,7 @@ export function ContributorDashboard({
@@ -814,6 +832,7 @@ export function ContributorDashboard({ />