Summary
Integrate CalibrationVariantAssignmentTable into the class-based calibration workflow to provide inline variant → class assignment editing, supplementing (or eventually replacing) the current CSV-only upload.
Background
Class-based calibrations currently assign variants to functional classes via CSV upload only (classes_file in the calibration editor). The CalibrationVariantAssignmentTable component — built as part of the calibration controls feature — supports inline editing and CSV upload, parameterized by assignment options. Wiring it here gives class-based calibrations the same inline editing experience without duplicating UI code.
The assignment options for this use case are dynamic: the class labels come from the calibration's defined functionalClassifications (e.g., ["GoF", "LoF", "Neutral"]).
Proposed Behavior
- Replace or supplement the existing
classes_file upload field in CalibrationFields.vue with CalibrationVariantAssignmentTable, using the calibration's functional class labels as assignmentOptions
- Inline add/remove and CSV upload both work, consistent with the controls experience
- Existing CSV-only workflow continues to work (the component already supports CSV upload)
Acceptance Criteria
Implementation Notes
- This issue is a follow-up to the calibration controls epic;
CalibrationVariantAssignmentTable must be complete before this work begins
- Consider whether to keep
classes_file CSV as a separate code path or unify through the component's CSV upload
- The backend already accepts
classes_file multipart upload; determine if an inline JSON alternative for classes is also needed on the API side
Summary
Integrate
CalibrationVariantAssignmentTableinto the class-based calibration workflow to provide inline variant → class assignment editing, supplementing (or eventually replacing) the current CSV-only upload.Background
Class-based calibrations currently assign variants to functional classes via CSV upload only (
classes_filein the calibration editor). TheCalibrationVariantAssignmentTablecomponent — built as part of the calibration controls feature — supports inline editing and CSV upload, parameterized by assignment options. Wiring it here gives class-based calibrations the same inline editing experience without duplicating UI code.The assignment options for this use case are dynamic: the class labels come from the calibration's defined
functionalClassifications(e.g.,["GoF", "LoF", "Neutral"]).Proposed Behavior
classes_fileupload field inCalibrationFields.vuewithCalibrationVariantAssignmentTable, using the calibration's functional class labels asassignmentOptionsAcceptance Criteria
CalibrationVariantAssignmentTableis used for class-based variant assignment in the calibration editorclasses_file)Implementation Notes
CalibrationVariantAssignmentTablemust be complete before this work beginsclasses_fileCSV as a separate code path or unify through the component's CSV uploadclasses_filemultipart upload; determine if an inline JSON alternative for classes is also needed on the API side