Refactor task planner item panels
All checks were successful
Deploy Sokko G / deploy (push) Successful in 15s

This commit is contained in:
Shinuwa 2026-08-24 22:03:45 +02:00
parent 126c673a2d
commit a796edcb02
3 changed files with 274 additions and 207 deletions

View file

@ -161,6 +161,8 @@ test("toolbox module registry and modules expose expected behavior", async () =>
const calendarUtils = await readFile("website/src/features/toolboxes/modules/calendarUtils.js", "utf8");
const taskPlannerModule = await readFile("website/src/features/toolboxes/modules/TaskPlannerModule.jsx", "utf8");
const taskPlannerItems = await readFile("website/src/features/toolboxes/modules/TaskPlannerItems.jsx", "utf8");
const taskPlannerItemPanels = await readFile("website/src/features/toolboxes/modules/TaskPlannerItemPanels.jsx", "utf8");
const taskPlannerBundle = `${taskPlannerItems}\n${taskPlannerItemPanels}`;
const taskPlannerUtils = await readFile("website/src/features/toolboxes/modules/taskPlannerUtils.js", "utf8");
const goalTreeModule = await readFile("website/src/features/toolboxes/modules/GoalTreeModule.jsx", "utf8");
const goalTreeParts = await readFile("website/src/features/toolboxes/modules/GoalTreeParts.jsx", "utf8");
@ -365,11 +367,11 @@ test("toolbox module registry and modules expose expected behavior", async () =>
assert.match(taskPlannerModule, /reorderFeatures/);
assert.match(taskPlannerItems, /export function TaskPlannerBranch/);
assert.match(taskPlannerItems, /function TaskPlannerItem/);
assert.match(taskPlannerItems, /task-planner-warning/);
assert.match(taskPlannerItems, /useInlineEdit/);
assert.match(taskPlannerItems, /commitOnEnter: false/);
assert.match(taskPlannerItems, /categoryLabel/);
assert.match(taskPlannerItems, /prerequisite/);
assert.match(taskPlannerBundle, /task-planner-warning/);
assert.match(taskPlannerBundle, /useInlineEdit/);
assert.match(taskPlannerBundle, /commitOnEnter: false/);
assert.match(taskPlannerBundle, /categoryLabel/);
assert.match(taskPlannerBundle, /prerequisite/);
assert.match(taskPlannerUtils, /export function getTaskParentMap/);
assert.match(taskPlannerUtils, /export function applyDueResets/);
assert.doesNotMatch(taskPlannerModule, /canMoveItem:/);