feat: extract ScheduleManager IIFE module from JavaScript.html (Phase 1 PR6/7) - #150
Merged
Merged
Conversation
…odule Extract showFirstTimeScheduleSelector, handleEditClassroom, loadInitialSchedules, loadSchedule, saveSchedulesToLocal, handleAddSchedule, handleScheduleListClick, handleScheduleSelectChange, isCurrentUserAdmin, canManageCurrentScheduleSettings, and handleDrop from JavaScript.html into ScheduleManager.js.html IIFE module. JavaScript.html now contains only: init, applyTagFilters, printScheduleToPdf (3 methods). Convert all this.xxx references to App.xxx. Update 4 test files: - appWiringContracts: IIFE_EXTRACTED +11, empty EXTRACTED_TO_LIB, count 14→3 - syncMethodsWiring: scheduleManagerSource + App\. patterns - asyncMethodsWiring: SCHEDULE_MANAGER_ASYNC_METHODS + resolveSource - lifecycleRegression: scheduleManagerSource + App\. patterns All 1147 tests pass. ESLint 0 errors. refs #129 Closes t-20260624080352928153-40473-17 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Agend-Agent: cb-team-impl Agend-Task: t-20260624080352928153-40473-17 Agend-Branch: refactor/phase1-pr6-schedule-manager Agend-Issued-At: 2026-06-24T08:04:56.217587+00:00
Owner
Author
✅ VERIFIEDReviewed HEAD: Files Reviewed (7)
Stage 1 — Correctness
Stage 2 — Adversarial
REVIEWER.md Accessibility Test (F2 action item)✅ Path accessible: graphify skip rationaleSkipped — diff is mechanical IIFE extraction (blast_radius: caller-scan), grep sufficient for caller verification. No architecture exploration needed. Evidence
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Extract 11 schedule management methods from JavaScript.html into a new ScheduleManager.js.html IIFE module — the final PR of Phase 1 Wave B (#129).
After this PR, JavaScript.html contains only 3 methods:
init,applyTagFilters,printScheduleToPdf.Methods Extracted (11)
showFirstTimeScheduleSelectorhandleEditClassroomloadInitialSchedulesloadSchedulesaveSchedulesToLocalhandleAddSchedulehandleScheduleListClickhandleScheduleSelectChangeisCurrentUserAdmincanManageCurrentScheduleSettingshandleDropHow
ScheduleManager.js.htmlwith IIFE pattern(function(App) { ... })(App)this.xxx→App.xxxreferencesIndex.htmlafterDataIO.js, beforeApp.init()Test Updates (⚠️ most test changes in Phase 1)
appWiringContracts.test.jssyncMethodsWiring.test.jsasyncMethodsWiring.test.jslifecycleRegression.test.jsScope (7 files)
ScheduleManager.js.html(new, 300+ lines)JavaScript.html(removed 11 methods, only init + applyTagFilters + printScheduleToPdf remain)Index.html(+1 include line)tests/unit/appWiringContracts.test.jstests/unit/syncMethodsWiring.test.jstests/unit/asyncMethodsWiring.test.jstests/unit/lifecycleRegression.test.jsVerification
npm test: 1147 tests passed (36 files) ✅npx eslint --ext .html .: 0 errors (8 pre-existing warnings) ✅bash scripts/check-structure.sh: all present ✅refs #129