Add intake auto sorting, chart intake markers, upped max daily intakes to 6, various style changes

This commit is contained in:
2026-02-09 17:08:53 +00:00
parent c41db99cba
commit 7a2a8b0b47
13 changed files with 558 additions and 293 deletions

View File

@@ -31,6 +31,9 @@ export const PROJECT_REPOSITORY_URL = 'https://git.11001001.org/cbaoth/med-plan-
export const APP_VERSION = versionInfo.version;
export const BUILD_INFO = versionInfo;
// UI Configuration
export const MAX_DOSES_PER_DAY = 6; // Maximum number of doses allowed per day
// Pharmacokinetic Constants (from research literature)
// MW ratio: 135.21 (d-amphetamine) / 455.60 (LDX dimesylate) = 0.29677
export const LDX_TO_DAMPH_SALT_FACTOR = 0.29677;
@@ -95,6 +98,7 @@ export interface UiSettings {
simulationDays: string;
displayedDays: string;
showDayReferenceLines?: boolean;
showIntakeTimeLines?: boolean;
showTherapeuticRange?: boolean;
steadyStateDaysEnabled?: boolean;
stickyChart: boolean;
@@ -167,6 +171,7 @@ export const getDefaultState = (): AppState => ({
simulationDays: '5',
displayedDays: '2',
showTherapeuticRange: false,
showIntakeTimeLines: false,
steadyStateDaysEnabled: true,
stickyChart: false,
theme: 'system',