mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 00:12:18 +00:00
style: apply prettier 3.9.1 formatting
Mechanical reflow from the prettier 3.9.1 bump; no behaviour change.
This commit is contained in:
1 parent
6329540ade
commit
0f2b548138
90 files changed
+123
-406
No files matched your search
@@ -36,11 +36,7 @@
|
||||
|
||||
/** Lifecycle of one answered question's adopt offer. */
|
||||
export type GuidedAdoption =
|
||||
| "pending"
|
||||
| "adopted"
|
||||
| "duplicate"
|
||||
| "declined"
|
||||
| "failed";
|
||||
"pending" | "adopted" | "duplicate" | "declined" | "failed";
|
||||
|
||||
export interface GuidedOutcome {
|
||||
/** Index of the question in the session snapshot (progress label). */
|
||||
|
||||
@@ -1046,8 +1046,7 @@ interface ChatBubbleProps {
|
||||
* bubble falls back to that so the card survives reload.
|
||||
*/
|
||||
suggestedAction?:
|
||||
| import("@/lib/ai/coach/suggest-action").CoachSuggestedAction
|
||||
| null;
|
||||
import("@/lib/ai/coach/suggest-action").CoachSuggestedAction | null;
|
||||
providerType?: string | null;
|
||||
inProgress?: boolean;
|
||||
errorCode?: string | null;
|
||||
|
||||
@@ -72,8 +72,7 @@ export function GlucoseClinicalPanel() {
|
||||
if (!clinical) return null;
|
||||
|
||||
const byContext = query.data?.glucoseByContext as
|
||||
| Record<string, DataSummary>
|
||||
| undefined;
|
||||
Record<string, DataSummary> | undefined;
|
||||
|
||||
const formatGlucoseValue = (mgdl: number): string => {
|
||||
const v = convertGlucose(mgdl, glucoseUnit);
|
||||
|
||||
@@ -47,11 +47,7 @@ export type HealthScoreBand = "green" | "yellow" | "red";
|
||||
* client doesn't pull a heavy analytics import for one string union).
|
||||
*/
|
||||
export type HealthScoreComponentSource =
|
||||
| "manual"
|
||||
| "withings"
|
||||
| "appleHealth"
|
||||
| "mixed"
|
||||
| "none";
|
||||
"manual" | "withings" | "appleHealth" | "mixed" | "none";
|
||||
|
||||
export interface HealthScoreCardComponent {
|
||||
value: number | null;
|
||||
|
||||
@@ -23,11 +23,7 @@ import type { DailyBriefing as DailyBriefingPayload } from "@/lib/ai/schema";
|
||||
* `insights.derived.composite.READINESS.component.{key}` labels.
|
||||
*/
|
||||
export type ReadinessContributorKey =
|
||||
| "rhr"
|
||||
| "hrv"
|
||||
| "sleep"
|
||||
| "respiratory"
|
||||
| "mood";
|
||||
"rhr" | "hrv" | "sleep" | "respiratory" | "mood";
|
||||
|
||||
/**
|
||||
* Insights redesign hero strip.
|
||||
|
||||
@@ -86,12 +86,7 @@ export interface InsightsTabStripProps {
|
||||
* mounts / no regenerate) falls back to the prior unconditional success.
|
||||
*/
|
||||
regenerateOutcome?:
|
||||
| "fresh"
|
||||
| "empty"
|
||||
| "rate-limited"
|
||||
| "timeout"
|
||||
| "no-provider"
|
||||
| null;
|
||||
"fresh" | "empty" | "rate-limited" | "timeout" | "no-provider" | null;
|
||||
/**
|
||||
* v1.4.27 F19 — analytics + event-driven availability inputs the
|
||||
* gating helper reads. When omitted the strip falls back to its
|
||||
|
||||
@@ -21,13 +21,7 @@ import type { MoodInfluenceConfidence } from "./mood-tag-influence";
|
||||
*/
|
||||
|
||||
export type MoodFactorCrosstabDisplay =
|
||||
| "hours"
|
||||
| "score"
|
||||
| "steps"
|
||||
| "bpm"
|
||||
| "ms"
|
||||
| "kg"
|
||||
| "mmHg";
|
||||
"hours" | "score" | "steps" | "bpm" | "ms" | "kg" | "mmHg";
|
||||
export type MoodFactorCrosstabMode = "sameDay" | "nextDay";
|
||||
|
||||
export interface MoodFactorMetricCrosstabRow {
|
||||
|
||||
@@ -18,10 +18,7 @@ import { useTranslations } from "@/lib/i18n/context";
|
||||
*/
|
||||
|
||||
export type MoodStabilityBand =
|
||||
| "verySteady"
|
||||
| "steady"
|
||||
| "variable"
|
||||
| "veryVariable";
|
||||
"verySteady" | "steady" | "variable" | "veryVariable";
|
||||
|
||||
export interface MoodStabilityData {
|
||||
score: number;
|
||||
|
||||
@@ -118,8 +118,7 @@ export function MoodTimeOfDayChart({
|
||||
labelStyle={{ color: "var(--dracula-fg)" }}
|
||||
formatter={(_value, _name, item) => {
|
||||
const payload = item?.payload as
|
||||
| { avgScore: number | null; count: number }
|
||||
| undefined;
|
||||
{ avgScore: number | null; count: number } | undefined;
|
||||
if (!payload || payload.avgScore == null) {
|
||||
return [t("insights.mood.weekdayNoData"), ""];
|
||||
}
|
||||
|
||||
@@ -125,8 +125,7 @@ export function MoodWeekdayChart({ weekday }: { weekday: MoodWeekdayRow[] }) {
|
||||
labelStyle={{ color: "var(--dracula-fg)" }}
|
||||
formatter={(_value, _name, item) => {
|
||||
const payload = item?.payload as
|
||||
| { avgScore: number | null; count: number }
|
||||
| undefined;
|
||||
{ avgScore: number | null; count: number } | undefined;
|
||||
if (!payload || payload.avgScore == null) {
|
||||
return [t("insights.mood.weekdayNoData"), ""];
|
||||
}
|
||||
|
||||
@@ -217,8 +217,7 @@ function RationaleCard({
|
||||
}: {
|
||||
rationale: InsightRecommendationRationale;
|
||||
metricSource:
|
||||
| { type: string; timeRange: string; summary: string }
|
||||
| undefined;
|
||||
{ type: string; timeRange: string; summary: string } | undefined;
|
||||
referenceId: string | undefined;
|
||||
confidence: number | undefined;
|
||||
locale: Locale;
|
||||
|
||||
@@ -147,11 +147,7 @@ export function nextAdvisorPollInterval(
|
||||
* means only the transient 503 surface (provider chain unavailable).
|
||||
*/
|
||||
export type AdvisorFetchOutcome =
|
||||
| "fresh"
|
||||
| "empty"
|
||||
| "rate-limited"
|
||||
| "timeout"
|
||||
| "no-provider";
|
||||
"fresh" | "empty" | "rate-limited" | "timeout" | "no-provider";
|
||||
|
||||
interface AdvisorFetchResult {
|
||||
payload: InsightAdvisorPayload | null;
|
||||
|
||||
Reference in new issue
Block a user