Improve toolbox module loading and goal tree previews
All checks were successful
Deploy Sokko G / deploy (push) Successful in 15s

This commit is contained in:
Shinuwa 2026-08-24 15:34:50 +02:00
parent abfa23fb3e
commit 50029b45a2
9 changed files with 259 additions and 177 deletions

View file

@ -180,6 +180,12 @@ test("toolbox module registry and modules expose expected behavior", async () =>
assert.match(moduleRegistry, /export function AddToolControls/);
assert.match(moduleRegistry, /export function ToolboxModules/);
assert.match(moduleRegistry, /MODULE_COMPONENTS/);
assert.match(moduleRegistry, /lazy\(\(\) => import\("\.\/CombosModule\.jsx"\)/);
assert.match(moduleRegistry, /lazy\(\(\) => import\("\.\/CalendarModule\.jsx"\)/);
assert.match(moduleRegistry, /lazy\(\(\) => import\("\.\/GoalTreeModule\.jsx"\)/);
assert.match(moduleRegistry, /lazy\(\(\) => import\("\.\/EquipmentPlannerModule\.jsx"\)/);
assert.match(moduleRegistry, /Suspense fallback=\{<ModuleLoadingFallback label=\{label\} \/>\}/);
assert.match(moduleRegistry, /LAZY_MODULE_TYPES/);
assert.match(moduleRegistry, /notepad:/);
assert.match(moduleRegistry, /checklist:/);
assert.match(moduleRegistry, /images:/);
@ -365,6 +371,7 @@ test("toolbox module registry and modules expose expected behavior", async () =>
assert.match(goalTreeModule, /GoalTreeIconPicker/);
assert.match(goalTreeModule, /GoalTreeContentEditor/);
assert.match(goalTreeModule, /GoalTreeNodeContentPreview/);
assert.doesNotMatch(goalTreeModule, /\.slice\(0, 3\)/);
assert.match(goalTreeModule, /GoalTreeChecklistInlineControl/);
assert.match(goalTreeModule, /GoalTreeStepLeafControl/);
assert.match(goalTreeModule, /GoalTreePrerequisitePicker/);