diff --git a/src/App.tsx b/src/App.tsx index 44a851d..2062a3c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -10,7 +10,7 @@ */ import React from 'react'; -import { GitBranch } from 'lucide-react'; +import { GitBranch, Pin, PinOff } from 'lucide-react'; // Components import DaySchedule from './components/day-schedule'; @@ -111,25 +111,36 @@ const MedPlanAssistant = () => {
{/* Both Columns - Chart */} -
-
+
+
+
+ + + +
- -
diff --git a/src/components/ui/form-numeric-input.tsx b/src/components/ui/form-numeric-input.tsx index 7299551..fd25fd8 100644 --- a/src/components/ui/form-numeric-input.tsx +++ b/src/components/ui/form-numeric-input.tsx @@ -218,12 +218,12 @@ const FormNumericInput = React.forwardRef(
{unit && {unit}} {hasError && isFocused && errorMessage && ( -
+
{errorMessage}
)} {hasWarning && isFocused && warningMessage && ( -
+
{warningMessage}
)} diff --git a/src/constants/defaults.ts b/src/constants/defaults.ts index 7fbfe45..60c58d9 100644 --- a/src/constants/defaults.ts +++ b/src/constants/defaults.ts @@ -64,6 +64,7 @@ export interface UiSettings { displayedDays: string; showDayReferenceLines?: boolean; showTherapeuticRange?: boolean; + stickyChart: boolean; } export interface AppState { @@ -133,5 +134,6 @@ export const getDefaultState = (): AppState => ({ simulationDays: '5', displayedDays: '2', showTherapeuticRange: true, + stickyChart: false, } }); diff --git a/src/locales/de.ts b/src/locales/de.ts index 6c1497d..df34d2b 100644 --- a/src/locales/de.ts +++ b/src/locales/de.ts @@ -55,6 +55,9 @@ export const de = { refLineDayShort: "T{{x}}", refLineMin: "Min", refLineMax: "Max", + pinChart: "Diagramm oben fixieren", + unpinChart: "Diagramm freigeben", + stickyChartTooltip: "Diagramm beim Scrollen durch die Einstellungen sichtbar halten, um Änderungen in Echtzeit zu sehen. Standard: aus.", tooltipHour: "Stunde", // Settings diff --git a/src/locales/en.ts b/src/locales/en.ts index 6bbe96a..b75a234 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -49,12 +49,15 @@ export const en = { refLineIrregularIntake: "Irregular", refLineDayX: "D{{x}}", refLineRegularPlanShort: "(Reg.)", - refLineNoDeviationShort: "(Reg.)", + refLineNoDeviationShort: "(Reg.)", // currently the same as above (day# > 1 with curve identical to day1 / regular plan) refLineRecoveringShort: "(Rec.)", refLineIrregularIntakeShort: "(Ireg.)", refLineDayShort: "D{{x}}", refLineMin: "Min", refLineMax: "Max", + pinChart: "Pin chart to top", + unpinChart: "Unpin chart", + stickyChartTooltip: "Keep chart visible while scrolling through settings for real-time feedback. Default: off.", // Settings diagramSettings: "Diagram Settings",