From 62f3fe49418bc7ffb77a8e603f9eafce26136a92 Mon Sep 17 00:00:00 2001 From: grantpitel Date: Wed, 17 Jun 2026 23:50:22 -0400 Subject: [PATCH] feat(design-requirements): default winding names to 'Winding N' and use them as row labels - Default new windings to 'Winding 1/2/3' (dynamic resize in DesignRequirements), instead of the isolation-side ordinals (Primary/Secondary/...). - Label the Isolation Sides rows with the (editable) winding name, consistent with the Turns Ratios rows, instead of the isolation-side ordinal. Pairs with a WebSharedComponents change defaulting the template winding names. Co-Authored-By: Claude Opus 4.8 --- src/components/Toolbox/DesignRequirements.vue | 4 ++-- .../Toolbox/DesignRequirements/ArrayElementFromList.vue | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/Toolbox/DesignRequirements.vue b/src/components/Toolbox/DesignRequirements.vue index 23340a80..a6c59750 100644 --- a/src/components/Toolbox/DesignRequirements.vue +++ b/src/components/Toolbox/DesignRequirements.vue @@ -116,7 +116,7 @@ export default { newElementsCoil.push(this.masStore.mas.magnetic.coil.functionalDescription[i]); } else { - newElementsCoil.push({'name': toTitleCase(isolationSideOrdered[i])}); + newElementsCoil.push({'name': 'Winding ' + (i + 1)}); } } }, @@ -168,7 +168,7 @@ export default { newElementsCoil.push(this.masStore.mas.magnetic.coil.functionalDescription[i]); } else { - newElementsCoil.push({'name': toTitleCase(isolationSideOrdered[i])}); + newElementsCoil.push({'name': 'Winding ' + (i + 1)}); } } for (var operationPointIndex = 0; operationPointIndex < this.masStore.mas.inputs.operatingPoints.length; operationPointIndex++) { diff --git a/src/components/Toolbox/DesignRequirements/ArrayElementFromList.vue b/src/components/Toolbox/DesignRequirements/ArrayElementFromList.vue index 56f34476..81828842 100644 --- a/src/components/Toolbox/DesignRequirements/ArrayElementFromList.vue +++ b/src/components/Toolbox/DesignRequirements/ArrayElementFromList.vue @@ -2,7 +2,6 @@ import { useMasStore } from '../../../stores/mas' import { toTitleCase, getMultiplier, combinedStyle, combinedClass } from 'WebSharedComponents/assets/js/utils.js' import ElementFromList from 'WebSharedComponents/DataInput/ElementFromList.vue' -import { isolationSideOrdered } from 'WebSharedComponents/assets/js/defaults.js'