mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 22:32:04 +00:00
Drop unimported re-exports outside the barrels
Eighteen modules carried a convenience re-export of a symbol defined elsewhere. In each case the callers the comment describes now import the concrete module directly, so the line had no importer left. Where the whole re-export block went, the comment explaining it went with it — doctor-report-pdf-core, trend-card and medication-extract-prompt each claimed to be a single import surface that nothing was using. Definitions are untouched; imports that existed only to feed a removed re-export go too.
This commit is contained in:
1 parent
244a939d05
commit
0e9c5f1a00
18 files changed
+6
-76
No files matched your search
@@ -15,14 +15,8 @@ import {
|
||||
getTrendSentiment,
|
||||
sentimentColorClass,
|
||||
type TrendDirectionSentiment,
|
||||
type TrendSentimentDirection,
|
||||
} from "@/lib/insights/trend-sentiment";
|
||||
|
||||
// v1.9.0 — the metric-aware sentiment mapping moved to a shared module so the
|
||||
// range-delta caption paints the same colour for the same signal. Re-exported
|
||||
// here so existing `@/components/charts/trend-card` importers keep the type.
|
||||
export type { TrendDirectionSentiment, TrendSentimentDirection };
|
||||
|
||||
interface SecondaryMetric {
|
||||
/** Sub-value latest reading (e.g. diastolic when latest is systolic). */
|
||||
latest: number | null;
|
||||
|
||||
@@ -13,7 +13,6 @@ import { toast } from "sonner";
|
||||
import type {
|
||||
CoachConversationAttachmentDTO,
|
||||
CoachConversationDetailDTO,
|
||||
CoachConversationDTO,
|
||||
CoachConversationsPage,
|
||||
CoachProvenance,
|
||||
CoachScope,
|
||||
@@ -1118,7 +1117,6 @@ export function useSendCoachMessage(opts: UseSendCoachMessageOptions = {}) {
|
||||
// `@/lib/ai/coach/types` directly.
|
||||
export type {
|
||||
CoachConversationAttachmentDTO,
|
||||
CoachConversationDTO,
|
||||
CoachConversationDetailDTO,
|
||||
CoachProvenance,
|
||||
CoachSuggestion,
|
||||
|
||||
@@ -44,10 +44,7 @@
|
||||
*/
|
||||
|
||||
import { encodeCadence } from "@/components/medications/scheduling/cadence-picker";
|
||||
import {
|
||||
dateToIsoString,
|
||||
isoStringToDate,
|
||||
} from "@/components/medications/scheduling/course-window-row";
|
||||
import { dateToIsoString } from "@/components/medications/scheduling/course-window-row";
|
||||
import {
|
||||
type CadenceKind,
|
||||
type CadenceSubControls,
|
||||
@@ -1277,4 +1274,4 @@ function subControlsFromRrule(rrule: string): CadenceSubControls {
|
||||
// Re-exports — convenience for the dialog and tests
|
||||
// ────────────────────────────────────────────────────────────────────
|
||||
|
||||
export { dateToIsoString, isoStringToDate };
|
||||
export { dateToIsoString };
|
||||
Reference in new issue
Block a user