Let temperature formatting ship without dashboard bulk
Temperature formatting was embedded in the large dashboard utility module, so small scan-terminal views had to import the heavy utility surface for simple labels. This moves the pure temperature helpers into a lightweight module while keeping dashboard-utils re-exports for compatibility. Constraint: Preserve existing temperature text output and all dashboard-utils import compatibility. Rejected: Split chart, pace, and model helpers in the same pass | those helpers have wider coupling and should move one boundary at a time. Confidence: high Scope-risk: narrow Reversibility: clean Tested: TypeScript diagnostics for temperature-utils, dashboard-utils, and OpportunityTable Tested: npm run build Not-tested: Bundle analyzer size comparison.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { memo, useMemo } from "react";
|
||||
import clsx from "clsx";
|
||||
import type { ScanOpportunityRow, ScanTerminalResponse } from "@/lib/dashboard-types";
|
||||
import { formatTemperatureValue } from "@/lib/dashboard-utils";
|
||||
import { formatTemperatureValue } from "@/lib/temperature-utils";
|
||||
import { LoadingSignal } from "@/components/dashboard/scan-terminal/LoadingSignal";
|
||||
import {
|
||||
formatRowPrice,
|
||||
|
||||
Reference in New Issue
Block a user