refactor(frontend): remove max_budget_per_task input element for v1 (#11921)

This commit is contained in:
Hiep Le
2025-12-06 00:50:40 +07:00
committed by GitHub
parent 4344f5ad4e
commit 7811a62491

View File

@@ -239,18 +239,20 @@ function AppSettingsScreen() {
</SettingsSwitch> </SettingsSwitch>
)} )}
<SettingsInput {!settings?.V1_ENABLED && (
testId="max-budget-per-task-input" <SettingsInput
name="max-budget-per-task-input" testId="max-budget-per-task-input"
type="number" name="max-budget-per-task-input"
label={t(I18nKey.SETTINGS$MAX_BUDGET_PER_CONVERSATION)} type="number"
defaultValue={settings.MAX_BUDGET_PER_TASK?.toString() || ""} label={t(I18nKey.SETTINGS$MAX_BUDGET_PER_CONVERSATION)}
onChange={checkIfMaxBudgetPerTaskHasChanged} defaultValue={settings.MAX_BUDGET_PER_TASK?.toString() || ""}
placeholder={t(I18nKey.SETTINGS$MAXIMUM_BUDGET_USD)} onChange={checkIfMaxBudgetPerTaskHasChanged}
min={1} placeholder={t(I18nKey.SETTINGS$MAXIMUM_BUDGET_USD)}
step={1} min={1}
className="w-full max-w-[680px]" // Match the width of the language field step={1}
/> className="w-full max-w-[680px]" // Match the width of the language field
/>
)}
<div className="border-t border-t-tertiary pt-6 mt-2"> <div className="border-t border-t-tertiary pt-6 mt-2">
<h3 className="text-lg font-medium mb-2"> <h3 className="text-lg font-medium mb-2">