list optimization
All checks were successful
Deploy Sokko G / deploy (push) Successful in 7s

This commit is contained in:
Shinuwa 2026-07-24 17:29:08 +02:00
parent 8b9171d4f9
commit ef5f977f8a
15 changed files with 3571 additions and 272 deletions

View file

@ -54,7 +54,9 @@ test("mhwilds data and assets are available", async () => {
items.forEach((item, index) => {
assert.equal(typeof item.nom, "string", `${list.file}.${category}[${index}].nom must be a string`);
assert.ok(item.nom.trim(), `${list.file}.${category}[${index}].nom must not be empty`);
assert.equal(typeof item.description, "string", `${list.file}.${category}[${index}].description must be a string`);
if (item.description !== undefined) {
assert.equal(typeof item.description, "string", `${list.file}.${category}[${index}].description must be a string`);
}
if (item.quantite !== undefined) {
assert.ok(Number.isFinite(Number(item.quantite)), `${list.file}.${category}[${index}].quantite must be numeric`);
}

View file

@ -91,6 +91,11 @@ export function validateSiteContent(site) {
"toolboxes.modules.checklist.importModalTitle",
"toolboxes.modules.checklist.importButton",
"toolboxes.modules.checklist.hideCompletedSectionsTitle",
"toolboxes.modules.checklist.hideCompletedSectionsFullyTitle",
"toolboxes.modules.checklist.completedSectionsModeTitle",
"toolboxes.modules.checklist.completedSectionsVisibleLabel",
"toolboxes.modules.checklist.completedSectionsReducedLabel",
"toolboxes.modules.checklist.completedSectionsHiddenLabel",
"toolboxes.modules.checklist.showCompletedSectionTitle",
"toolboxes.modules.checklist.hideCompletedSectionTitle",
"toolboxes.modules.checklist.decrementLabel",

View file

@ -101,6 +101,8 @@ test("react application defines the expected local toolbox primitives", async ()
assert.match(styleIcons, /ui-icon-calculator/);
assert.match(styleIcons, /ui-icon-scrollable/);
assert.match(styleIcons, /ui-icon-hide/);
assert.match(styleIcons, /ui-icon-eye-open/);
assert.match(styleIcons, /ui-icon-eye-closed/);
assert.match(styleIcons, /ui-icon-chevron-down/);
assert.match(styleIcons, /ui-icon-chevron-up/);
assert.match(styleIcons, /ui-icon-flip/);
@ -223,8 +225,9 @@ test("react application defines the expected local toolbox primitives", async ()
assert.match(countersModule, /counter-actions/);
assert.match(linksModule, /normalizeUrl/);
assert.match(linksModule, /copyText/);
assert.match(source, /DEFAULT_SITE_CONTENT/);
assert.doesNotMatch(source, /DEFAULT_SITE_CONTENT/);
assert.match(source, /\/data\/site\.json/);
assert.match(source, /setSiteContentError/);
assert.match(source, /useIndexedToolboxes/);
assert.match(source, /getStorageEstimate/);
assert.match(source, /DEFAULT_TOOLBOX_ICON/);
@ -280,6 +283,7 @@ test("react application defines the expected local toolbox primitives", async ()
assert.match(source, /qtyTarget/);
assert.match(source, /qtyCurrent/);
assert.match(source, /hideCompletedSections/);
assert.match(source, /hideCompletedSectionsFully/);
assert.match(source, /hideWhenComplete/);
assert.match(source, /collapsed/);
assert.match(source, /module\.scrollable/);