+ {/* Enable penalty toggle */}
+
+
(
+ {
+ field.onChange(
+ checked === "indeterminate" ? null : checked === true,
+ );
+ }}
+ disabled={isLoading || isSaving}
+ />
+ )}
+ />
+
+
+ Penalize Missing Salary
+
+
+ Reduce suitability scores for jobs that do not include salary
+ information. Jobs with any salary text (including "Competitive")
+ are not penalized.
+
+
+
+
+ {/* Penalty amount input - only shown when enabled */}
+ {currentPenalizeEnabled && (
+
+ (
+ {
+ const value = parseInt(event.target.value, 10);
+ if (Number.isNaN(value)) {
+ field.onChange(null);
+ } else {
+ field.onChange(Math.min(100, Math.max(0, value)));
+ }
+ },
+ }}
+ disabled={isLoading || isSaving}
+ helper={`Points to subtract from suitability score (0-100). Default: ${missingSalaryPenalty.default}.`}
+ current={`Effective: ${missingSalaryPenalty.effective} | Default: ${missingSalaryPenalty.default}`}
+ />
+ )}
+ />
+
+ )}
+
+
+
+ {/* Effective/Default values display */}
+
+
+
+ Penalty Enabled
+
+
+ Effective: {penalizeMissingSalary.effective ? "Yes" : "No"} |
+ Default: {penalizeMissingSalary.default ? "Yes" : "No"}
+
+
+
+
+ Penalty Amount
+
+
+ Effective: {missingSalaryPenalty.effective} | Default:{" "}
+ {missingSalaryPenalty.default}
+
+
+
+
+