Extract table toolbar component
All checks were successful
Deploy Sokko G / deploy (push) Successful in 16s

This commit is contained in:
Shinuwa 2026-08-24 21:58:39 +02:00
parent 73e84ee703
commit 126c673a2d
3 changed files with 82 additions and 73 deletions

View file

@ -147,6 +147,8 @@ test("toolbox module registry and modules expose expected behavior", async () =>
const calculatorModule = await readFile("website/src/features/toolboxes/modules/CalculatorModule.jsx", "utf8");
const tableModule = await readFile("website/src/features/toolboxes/modules/TableModule.jsx", "utf8");
const tableGridParts = await readFile("website/src/features/toolboxes/modules/TableGridParts.jsx", "utf8");
const tableToolbar = await readFile("website/src/features/toolboxes/modules/TableToolbar.jsx", "utf8");
const tableBundle = `${tableModule}\n${tableGridParts}\n${tableToolbar}`;
const tableUtils = await readFile("website/src/features/toolboxes/modules/tableUtils.js", "utf8");
const tableFormulaEngine = await readFile("website/src/features/toolboxes/modules/tableFormulaEngine.js", "utf8");
const timerModule = await readFile("website/src/features/toolboxes/modules/TimerModule.jsx", "utf8");
@ -283,16 +285,16 @@ test("toolbox module registry and modules expose expected behavior", async () =>
assert.match(calculatorModule, /--calculator-scroll-height/);
assert.match(calculatorModule, /CalculatorEntries/);
assert.match(tableModule, /export function TableModule/);
assert.match(tableModule, /Icon name="add-row"/);
assert.match(tableModule, /Icon name="add-column"/);
assert.match(tableModule, /Icon name="remove-row"/);
assert.match(tableModule, /Icon name="remove-column"/);
assert.match(tableBundle, /Icon name="add-row"/);
assert.match(tableBundle, /Icon name="add-column"/);
assert.match(tableBundle, /Icon name="remove-row"/);
assert.match(tableBundle, /Icon name="remove-column"/);
assert.match(tableModule, /insertFormulaReferenceSelection/);
assert.match(tableModule, /startFormulaSelection/);
assert.match(tableModule, /copyTsv/);
assert.match(tableModule, /notepad-toolbar table-toolbar/);
assert.match(tableModule, /notepad-toolbar-group/);
assert.match(tableModule, /notepad-toolbar-button/);
assert.match(tableBundle, /notepad-toolbar table-toolbar/);
assert.match(tableBundle, /notepad-toolbar-group/);
assert.match(tableBundle, /notepad-toolbar-button/);
assert.match(tableModule, /selection/);
assert.match(tableModule, /draggingSelectionRef/);
assert.match(tableModule, /movingSelectionRef/);