From c58afeb3745e08b01dc964628b7e7520ca76603f Mon Sep 17 00:00:00 2001 From: Adam Teichert Date: Sat, 10 Oct 2026 23:51:50 -0600 Subject: [PATCH 1/5] Update in Canvas moves an item to its file's module Creating an item put it in the module named after its folder, but updating never looked at modules, so moving a file to another module changed nothing in Canvas. After updating an assignment, quiz or page, Update in Canvas now finds the item's module items (module_item_sequence) and moves one into the right module, or adds it when it is in none. The module list is loaded first so a missing module isn't created twice. Co-Authored-By: Claude Opus 5.5 (1M context) --- docs/getting-started.html | 3 +- .../AssignmentDayItemContextMenu.tsx | 1 + .../day/itemInDay/QuizDayItemContextMenu.tsx | 1 + .../AssignmentFooterButtons.tsx | 1 + .../compare/CompareWithCanvas.tsx | 11 ++- .../page/[pageName]/EditPageButtons.tsx | 3 +- .../quiz/[quizName]/QuizButton.tsx | 2 +- .../canvas/hooks/canvasAssignmentHooks.ts | 9 +++ .../canvas/hooks/canvasModuleHooks.ts | 38 +++++++++ src/features/canvas/hooks/canvasPageHooks.ts | 23 ++++-- src/features/canvas/hooks/canvasQuizHooks.ts | 9 +++ .../services/canvasModuleService.test.ts | 77 +++++++++++++++++++ .../canvas/services/canvasModuleService.ts | 43 +++++++++++ 13 files changed, 209 insertions(+), 12 deletions(-) create mode 100644 src/features/canvas/services/canvasModuleService.test.ts diff --git a/docs/getting-started.html b/docs/getting-started.html index 9b1427c8..290c4180 100644 --- a/docs/getting-started.html +++ b/docs/getting-started.html @@ -291,7 +291,7 @@

Publishing to Canvas

Each editor’s footer says where the item stands and shows the one button you need next: