Merge branch 'component_quack' into airflow

This commit is contained in:
csawatzky 2025-07-28 15:17:17 -06:00
commit cd06fcb6dd
2 changed files with 9 additions and 9 deletions

4
package-lock.json generated
View file

@ -42,7 +42,7 @@
"mui-tel-input": "^7.0.0", "mui-tel-input": "^7.0.0",
"notistack": "^3.0.1", "notistack": "^3.0.1",
"openweathermap-ts": "^1.2.10", "openweathermap-ts": "^1.2.10",
"protobuf-ts": "git+https://gitlab+deploy-token-50627:hv8mB4WkyvtjBpJKU1rN@gitlab.com/brandx/protobuf-ts.git#master", "protobuf-ts": "git+https://gitlab+deploy-token-50627:hv8mB4WkyvtjBpJKU1rN@gitlab.com/brandx/protobuf-ts.git#airflow",
"query-string": "^9.2.1", "query-string": "^9.2.1",
"react": "^18.3.1", "react": "^18.3.1",
"react-beautiful-dnd": "^13.1.1", "react-beautiful-dnd": "^13.1.1",
@ -10911,7 +10911,7 @@
}, },
"node_modules/protobuf-ts": { "node_modules/protobuf-ts": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "git+https://gitlab+deploy-token-50627:hv8mB4WkyvtjBpJKU1rN@gitlab.com/brandx/protobuf-ts.git#ea5c01a80b896e8a22e7930780b1b3479e449c90", "resolved": "git+https://gitlab+deploy-token-50627:hv8mB4WkyvtjBpJKU1rN@gitlab.com/brandx/protobuf-ts.git#e6585789a9ae44f8ace247cff4411c79dd38c4d1",
"dependencies": { "dependencies": {
"protobufjs": "^6.8.8" "protobufjs": "^6.8.8"
} }

View file

@ -482,7 +482,7 @@ export default function ComponentForm(props: Props) {
const updateCalibrationTypes = (event: any, index: number) => { const updateCalibrationTypes = (event: any, index: number) => {
let f = cloneDeep(form); let f = cloneDeep(form);
f.component.settings.calibrations[index].type = event.target.value as quack.MeasurementType; f.component.settings.calibrations[index].measurementType = event.target.value as quack.MeasurementType;
setForm(f); setForm(f);
}; };
@ -508,7 +508,7 @@ export default function ComponentForm(props: Props) {
if (dimensions !== undefined && dimensions !== null) { if (dimensions !== undefined && dimensions !== null) {
dimensions.lengthCm = value; dimensions.lengthCm = value;
} else { } else {
dimensions = pond.Dimensions.create({ dimensions = quack.Dimensions.create({
heightCm: 0, heightCm: 0,
lengthCm: value, lengthCm: value,
widthCm: 0 widthCm: 0
@ -537,7 +537,7 @@ export default function ComponentForm(props: Props) {
if (dimensions !== undefined && dimensions !== null) { if (dimensions !== undefined && dimensions !== null) {
dimensions.heightCm = value; dimensions.heightCm = value;
} else { } else {
dimensions = pond.Dimensions.create({ dimensions = quack.Dimensions.create({
heightCm: value, heightCm: value,
lengthCm: 0, lengthCm: 0,
widthCm: 0 widthCm: 0
@ -566,7 +566,7 @@ export default function ComponentForm(props: Props) {
if (dimensions !== undefined && dimensions !== null) { if (dimensions !== undefined && dimensions !== null) {
dimensions.widthCm = value; dimensions.widthCm = value;
} else { } else {
dimensions = pond.Dimensions.create({ dimensions = quack.Dimensions.create({
heightCm: 0, heightCm: 0,
lengthCm: 0, lengthCm: 0,
widthCm: value widthCm: value
@ -788,7 +788,7 @@ export default function ComponentForm(props: Props) {
// !isMeasurementTypeValid(interaction.settings.conditions[index].measurementType) // !isMeasurementTypeValid(interaction.settings.conditions[index].measurementType)
// } // }
disabled={!component.settings.calibrate} disabled={!component.settings.calibrate}
value={calibration.type ?? quack.MeasurementType.MEASUREMENT_TYPE_INVALID} value={calibration.measurementType ?? quack.MeasurementType.MEASUREMENT_TYPE_INVALID}
onChange={event => updateCalibrationTypes(event, i)} onChange={event => updateCalibrationTypes(event, i)}
autoFocus={false} autoFocus={false}
margin="normal" margin="normal"
@ -814,8 +814,8 @@ export default function ComponentForm(props: Props) {
f.coefficients.push("0"); f.coefficients.push("0");
f.offsets.push("0"); f.offsets.push("0");
f.component.settings.calibrations.push( f.component.settings.calibrations.push(
pond.Calibration.create({ quack.Calibration.create({
type: quack.MeasurementType.MEASUREMENT_TYPE_INVALID, measurementType: quack.MeasurementType.MEASUREMENT_TYPE_INVALID,
calibrationOffset: 0, calibrationOffset: 0,
calibrationCoefficient: 0 calibrationCoefficient: 0
}) })