diff --git a/src/components/charts/health-chart.tsx b/src/components/charts/health-chart.tsx
index 229f38a21..60cfe4cb8 100644
--- a/src/components/charts/health-chart.tsx
+++ b/src/components/charts/health-chart.tsx
@@ -71,6 +71,7 @@ import {
type MetricWindowStats,
} from "@/lib/charts/window-stats";
import { shouldFireDataReady } from "@/lib/charts/data-ready-latch";
+import { axisUnitSuffix } from "@/lib/charts/axis-unit";
// The range tabs select a CALENDAR-DAY window ending now — `days: 7` is
// "the last 7 days", not "the last 7 readings". The labels said "points"
@@ -1982,8 +1983,8 @@ export function HealthChart({
: String(value)
}
unit={
- showYAxisUnit && (yAxisUnit ?? unit)
- ? ` ${yAxisUnit ?? unit}`
+ showYAxisUnit
+ ? axisUnitSuffix(yAxisUnit ?? unit)
: undefined
}
/>
diff --git a/src/components/insights/intraday-pulse-chart.tsx b/src/components/insights/intraday-pulse-chart.tsx
index 09e1ae79a..5fac93a99 100644
--- a/src/components/insights/intraday-pulse-chart.tsx
+++ b/src/components/insights/intraday-pulse-chart.tsx
@@ -24,6 +24,7 @@ import { TileHeader } from "@/components/insights/tile-header";
import { Button } from "@/components/ui/button";
import { QueryErrorCard } from "@/components/ui/query-error-card";
import { Skeleton } from "@/components/ui/skeleton";
+import { axisUnitSuffix } from "@/lib/charts/axis-unit";
import {
BUCKET_MINUTES,
type IntradayHrBucket,
@@ -300,7 +301,7 @@ export function IntradayPulseChart({
tick={{ fontSize: 11, fill: "var(--muted-foreground)" }}
tickLine={false}
axisLine={false}
- unit=" bpm"
+ unit={axisUnitSuffix("bpm")}
width={52}
/>
", () => {
expect(html).toContain("sm:h-10");
});
+ it("gives the calendar button a 44 px touch target at its 32 px size", () => {
+ const html = render();
+ const button = /