fix(ui): use InputNumber for number-typed fields in default user settings

Adds a type === "number" case in renderEditableField so max_budget
renders as an InputNumber instead of a free-text TextInput. Prevents
string input and fixes null displaying as "null" in the field.
This commit is contained in:
Ryan Crabbe 2026-03-21 10:40:55 -07:00
parent af750949b1
commit e34b7ec490

View file

@ -386,6 +386,19 @@ const DefaultUserSettings: React.FC<DefaultUserSettingsProps> = ({
))}
</Select>
);
} else if (type === "number") {
return (
<InputNumber
style={{ width: "100%" }}
value={editedValues[key] as number | undefined}
onChange={(value) => handleTextInputChange(key, value)}
placeholder={property.description || ""}
className="mt-2"
min={0}
step={0.01}
precision={2}
/>
);
} else if (type === "string" && property.enum) {
return (
<Select