Skip to content

Commit 1cb4c3e

Browse files
committed
refactor(clinical-scheduler): drop orphaned store cluster (Phase 2)
- Delete schedule.ts + schedule-{actions,cache,state}.ts: a 549-line state-management refactor landed in Sep 2025 ("Phase 4 - Frontend state management refactoring") was never wired in. `useScheduleStore` has zero importers anywhere in the codebase; RotationScheduleView and ClinicianScheduleView talk to services directly. - Delete stores/permissions/index.ts: shadowed by sibling stores/permissions.ts (TypeScript resolves the .ts file before the directory index), making it structurally unreachable. - Drop 5 redundant named exports from use-schedule-normalization.ts (normalizeSemesterWeeks, filterExcludedRotations, getAssignedRotationNames, normalizeClinicianSchedule, normalizeRotationSchedule). All five are only accessed via the useScheduleNormalization() composable; the module-level duplicates had no importers. normalizeWeek and normalizeScheduleSemesters stay exported — tests import them directly.
1 parent b0ed219 commit 1cb4c3e

6 files changed

Lines changed: 1 addition & 567 deletions

File tree

VueApp/src/ClinicalScheduler/composables/use-schedule-normalization.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,4 @@ function useScheduleNormalization() {
106106
}
107107
}
108108

109-
// Export all functions together
110-
export {
111-
normalizeWeek,
112-
normalizeSemesterWeeks,
113-
normalizeScheduleSemesters,
114-
filterExcludedRotations,
115-
getAssignedRotationNames,
116-
normalizeClinicianSchedule,
117-
normalizeRotationSchedule,
118-
useScheduleNormalization,
119-
}
109+
export { normalizeWeek, normalizeScheduleSemesters, useScheduleNormalization }

VueApp/src/ClinicalScheduler/stores/permissions/index.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

VueApp/src/ClinicalScheduler/stores/schedule-actions.ts

Lines changed: 0 additions & 250 deletions
This file was deleted.

VueApp/src/ClinicalScheduler/stores/schedule-cache.ts

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)