style: prettier pass over the chart-loader touchpoints

Formatting-only: the chart-runtime import repointing left five files
with non-canonical line breaks.
This commit is contained in:
Marc-André Bombeck committed 2026-07-07 13:21:36 +02:00
1 parent 1d368b7cd2
commit 016b83da1d
5 files changed
+22 -13

No files matched your search

@@ -86,7 +86,10 @@ describe("RootLoading — single skeleton source (wiring pins)", () => {
join(process.cwd(), "src/app/loading.tsx"),
"utf8",
);
const pageSrc = readFileSync(join(process.cwd(), "src/app/page-client.tsx"), "utf8");
const pageSrc = readFileSync(
join(process.cwd(), "src/app/page-client.tsx"),
"utf8",
);
it("imports the same silhouette components the page's loading phase uses", () => {
expect(loadingSrc).toContain(
+3 -3
View File
@@ -93,9 +93,9 @@ const MoodChart = (props: React.ComponentProps<typeof MoodChartLazy>) => (
);
const MedicationComplianceChartLazy = dynamic(
() =>
importWithRetry(
() => import("@/components/charts/chart-runtime"),
).then((mod) => ({ default: mod.MedicationComplianceChart })),
importWithRetry(() => import("@/components/charts/chart-runtime")).then(
(mod) => ({ default: mod.MedicationComplianceChart }),
),
{ ssr: false, loading: () => <ChartSkeleton /> },
);
const MedicationComplianceChart = (
@@ -42,9 +42,11 @@ import type {
// off the detail page's first-load JS; the skeleton shell holds the layout.
const CustomMetricChartLazy = dynamic(
() =>
importWithRetry(() => import("@/components/charts/chart-runtime")).then((mod) => ({
default: mod.CustomMetricChart,
})),
importWithRetry(() => import("@/components/charts/chart-runtime")).then(
(mod) => ({
default: mod.CustomMetricChart,
}),
),
{ ssr: false, loading: () => <ChartSkeleton /> },
);
function CustomMetricChart(
+5 -3
View File
@@ -25,9 +25,11 @@ import { SleepDurationChart } from "./sleep-duration-chart";
// matches the card the bar paints so the layout stays stable.
const SleepStageStackedBarLazy = dynamic(
() =>
importWithRetry(() => import("@/components/charts/chart-runtime")).then((mod) => ({
default: mod.SleepStageStackedBar,
})),
importWithRetry(() => import("@/components/charts/chart-runtime")).then(
(mod) => ({
default: mod.SleepStageStackedBar,
}),
),
{ ssr: false, loading: () => <ChartSkeleton /> },
);
function SleepStageStackedBar(
@@ -38,9 +38,11 @@ import type { AssessmentRow, CrisisSet, InstrumentId } from "./types";
// holds the layout.
const AssessmentHistoryChartLazy = dynamic(
() =>
importWithRetry(() => import("@/components/charts/chart-runtime")).then((mod) => ({
default: mod.AssessmentHistoryChart,
})),
importWithRetry(() => import("@/components/charts/chart-runtime")).then(
(mod) => ({
default: mod.AssessmentHistoryChart,
}),
),
{ ssr: false, loading: () => <ChartSkeleton /> },
);
function AssessmentHistoryChart(