Update settings add min<=max validation to ranges, minor text changes

This commit is contained in:
2026-02-02 13:17:35 +00:00
parent 90b0806cec
commit 02b1209c2d
4 changed files with 42 additions and 7 deletions

View File

@@ -159,7 +159,7 @@ export const getDefaultState = (): AppState => ({
}
],
steadyStateConfig: { daysOnMedication: '7' }, // kept for backwards compatibility, now sourced from pkParams.advanced
therapeuticRange: { min: '', max: '' }, // Empty by default - users should personalize based on their response
therapeuticRange: { min: '10', max: '120' }, // min for adults and max for children for maximum range (users should personalize based on their response)
doseIncrement: '2.5',
uiSettings: {
showDayTimeOnXAxis: '24h',
@@ -168,7 +168,7 @@ export const getDefaultState = (): AppState => ({
yAxisMin: '',
yAxisMax: '',
simulationDays: '5',
displayedDays: '2',
displayedDays: '1',
showTherapeuticRange: false,
steadyStateDaysEnabled: true,
stickyChart: false,