style: apply prettier 3.9.1 formatting

Mechanical reflow from the prettier 3.9.1 bump; no behaviour change.
This commit is contained in:
Marc-André Bombeck committed 2026-06-28 19:26:16 +02:00
1 parent 6329540ade
commit 0f2b548138
90 files changed
+123 -406

No files matched your search

+1 -5
View File
@@ -25,11 +25,7 @@ import type { LucideIcon } from "lucide-react";
import { cn } from "@/lib/utils";
export type SettingsInfoTileTone =
| "info"
| "warning"
| "success"
| "primary"
| "neutral";
"info" | "warning" | "success" | "primary" | "neutral";
const TONE_SURFACE: Record<SettingsInfoTileTone, string> = {
info: "border-info/40 bg-info/10",
@@ -47,8 +47,7 @@ export function resolveInitialTimezone(
* provided error text (which has no key) rides `text` verbatim.
*/
export type StatusMessage =
| { key: string; params?: Record<string, string | number> }
| { text: string };
{ key: string; params?: Record<string, string | number> } | { text: string };
export function statusText(
msg: StatusMessage,
@@ -45,11 +45,7 @@ import { cn } from "@/lib/utils";
* - disconnected → user clicked Disconnect; "Not connected" copy.
*/
export type IntegrationPillState =
| "connected"
| "warning"
| "error"
| "parked"
| "disconnected";
"connected" | "warning" | "error" | "parked" | "disconnected";
interface IntegrationStatusPillProps {
state: IntegrationPillState;
@@ -52,8 +52,7 @@ const WITHINGS_OAUTH_ERROR_KEYS: Record<string, string> = {
};
type WithingsOauthOutcome =
| { kind: "connected" }
| { kind: "error"; reason: string };
{ kind: "connected" } | { kind: "error"; reason: string };
/**
* The OAuth providers whose callbacks redirect back to the settings page with a
@@ -23,12 +23,7 @@ import { useTranslations } from "@/lib/i18n/context";
export const INTEGRATION_DOCS_BASE = "https://docs.healthlog.dev/integrations";
export type IntegrationDocsProvider =
| "whoop"
| "withings"
| "fitbit"
| "polar"
| "oura"
| "nightscout";
"whoop" | "withings" | "fitbit" | "polar" | "oura" | "nightscout";
export function integrationDocsHref(provider: IntegrationDocsProvider): string {
return `${INTEGRATION_DOCS_BASE}/${provider}`;
@@ -19,18 +19,9 @@ import { queryKeys } from "@/lib/query-keys";
// IntegrationStatusPill now owns state + last-sync presentation, and
// the actionable error message is shown inline above the action row.
export type IntegrationKey =
| "withings"
| "whoop"
| "fitbit"
| "moodlog"
| "polar"
| "oura";
"withings" | "whoop" | "fitbit" | "moodlog" | "polar" | "oura";
export type IntegrationState =
| "connected"
| "error_transient"
| "error_reauth"
| "disconnected"
| "parked";
"connected" | "error_transient" | "error_reauth" | "disconnected" | "parked";
export interface IntegrationStatusViewModel {
integration: IntegrationKey;
@@ -41,10 +41,7 @@ import { apiGet, apiPost } from "@/lib/api/api-fetch";
type ChannelType = "TELEGRAM" | "NTFY" | "WEB_PUSH" | "APNS";
type ChannelState =
| "active"
| "auto_disabled"
| "manually_disabled"
| "sending_paused";
"active" | "auto_disabled" | "manually_disabled" | "sending_paused";
interface ChannelStatus {
id: string;